JavaScript Minifier

Minify modern JavaScript with Terser, preserving strings, regular expressions and language syntax.

Workspace

How to use this tool

Paste JavaScript, select Minify and copy or download the result. Syntax errors are reported.

What to know

Code is parsed but never executed. Test the minified output within your own application before production use.

Frequently asked questions

How do I use JavaScript Minifier?

Paste JavaScript, select Minify and copy or download the result. Syntax errors are reported.

What should I check before using the result?

Code is parsed but never executed. Test the minified output within your own application before production use.

Is an account required?

No. This tool is free and the calculation takes place in your browser.