📦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.