JavaScript Minifier

Compress JavaScript for production with Terser, the minifier used by webpack and Vite.

● Your files are processed locally in your browser and are not uploaded to our servers.

How it works

Terser (about 1 MB, loaded the first time) parses your code, applies safe optimizations, renames local variables to short names and prints the smallest equivalent code. Syntax errors are reported with their line and column.

FAQ

Can minified code be reversed?

It can be re-indented with the JavaScript Formatter, but original variable names and comments are gone.