/ TOOL · JavaScript minify & beautify

JS Minifier

Paste JavaScript code. Minify for production or beautify for debugging — your code never leaves the browser.

waiting for input
Input · JavaScript 0 chars · 0 B
Output · Compressed 0 B
/ FAQ

Frequently asked questions

What is JavaScript minification?

JavaScript minification removes unnecessary characters (whitespace, comments, newlines) and shortens variable names to reduce file size without changing functionality.

Does this tool send my code to a server?

No. Everything runs entirely in your browser using Terser for minification and js-beautify for formatting.

What is the difference between minify and prettify?

Minify removes unnecessary characters for production. Prettify adds indentation and spacing to make code readable for debugging.