π¦JavaScript Minifier
Minify and mangle JavaScript with Terser, including identifier shortening and dead-code elimination. Useful for library publishing, npm packages, and static site optimization.
π Browser-basedβ No watermarkβ No signup
How to use
- 1Paste your JS and click minify.
- 2Copy the result and ship it.
FAQ
Does it support ES6+ syntax?+
Yes β up to ES2022, including async/await, optional chaining, and other modern features.
What does mangle mean?+
It shortens variable and function names (longUserName β a). Hard to debug, but the size drops significantly.
What is dead code elimination?+
Unused code (if(false), unreachable branches) is removed automatically. Pairs powerfully with library tree-shaking.
How much smaller does it get?+
Typical JS shrinks 40β70%. With gzip on top, an additional 60β80% reduction is common.
What about source maps?+
This tool only minifies. For production, use Webpack/esbuild/terser-cli, which generate source maps for easier debugging.