Does minifying change how my code executes?
No — output is behaviorally identical. Variable and function names are shortened and dead code may be removed, but program behavior doesn't change.
JavaScript Minifier
Compress modern JavaScript while preserving its behavior.
Compress modern JavaScript while preserving its behavior.
Your JavaScript is processed locally in the browser. Nothing is uploaded or stored.
No — output is behaviorally identical. Variable and function names are shortened and dead code may be removed, but program behavior doesn't change.
Yes — this runs Terser itself, with compression and mangling both enabled, the same engine widely used in production JS build pipelines.
Minifying strips and mangles the source permanently; Gzip compresses the file during transfer on the server. They stack — use both in production.
The JavaScript Formatter will re-indent it, but original variable names and structure are gone once mangled — this isn't a deobfuscator, just a beautifier for whatever code remains.
Depends on the original — heavily commented, loosely spaced code shrinks the most; already-tight code sees smaller gains.
No — minification runs 100% locally in your browser.