JavaScript Minifier / Beautifier

Minify and beautify JavaScript code instantly in your browser.

All processing happens in your browser. Your code is never sent to any server.
Mode:
Minified output will appear here...

About JavaScript Minification

Minification removes whitespace, comments, and shortens variable names to reduce file size. Beautification makes code readable.

Example:

function hello(name) {
console.log('Hello, ' + name + '!')
}

Use cases: Web optimization, code review, debugging