JS minifier and JavaScript minifier that lets you minify JavaScript in your browser. Smaller bundles, faster parse, better INP.

For production builds use a full parser-based minifier like Terser. This tool is for quick one-offs.
Strip whitespace, comments, and dead syntax from any JS file in seconds.
Slim down GA, pixel, or chat-widget code before pasting it into your site.
Paste a custom script, copy the minified version into your theme or caching plugin.
Run your <script> contents through the tool, then paste the result back inline.
No. Minification runs entirely in your browser. Your source never leaves your device.
No. Only whitespace, comments, and redundant syntax are removed — the program runs identically.
Typically 30–60%. Heavily commented or formatted code shrinks the most.
This is a safe minifier — it does not rename identifiers, so the output is debuggable and won't break globals.
Yes. Minify first, then let your CDN gzip or Brotli the result — the two combined can cut transfer size by 80%+.
Want your whole site this fast? Our team offers full website speed optimization — done for you .