JS

JavaScript Minifier

Compress and mangle JavaScript with Terser for smaller, faster bundles.

Advertisement
728×90 Leaderboard Ad

JavaScript Input

Minified JS Output

Minified JavaScript will appear here.

About JavaScript Minification

JavaScript minification reduces the size of your JS files by removing whitespace, renaming variables to shorter names (mangling), removing dead code, and applying various code optimizations — all while keeping the code functionally identical.

Our tool uses Terser — the same compressor used by Webpack, Vite, and esbuild — with both compress and mangle options enabled for maximum compression.

JS Minifier FAQ

Will minification break my JavaScript? +
For standard JavaScript, minification is safe. However, code that relies on Function.prototype.name or specific variable names at runtime may behave differently after mangling. Always test minified code before deploying to production.
Is my code sent to your server? +
Yes, minification happens server-side for accuracy, but your code is never stored, logged, or retained. It's processed immediately and the result is returned — nothing is saved.
How much can JS files be compressed? +
Typical JavaScript files see 40–60% reduction with Terser's full compress and mangle options. Code with lots of comments and verbose variable names sees the most savings.