JS Minifier: JavaScript Minifier to Minify JavaScript
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.
How to use the JavaScript Minifier
- 1Paste your JavaScript into the input box.
- 2The minified output appears instantly on the right.
- 3Check the bytes-saved stat.
- 4Click Copy and ship.
What you can do with the JavaScript Minifier
Minify JavaScript online.
Strip whitespace, comments, and dead syntax from any JS file in seconds.
Compress a third-party snippet before embedding.
Slim down GA, pixel, or chat-widget code before pasting it into your site.
Minify JS for WordPress.
Paste a custom script, copy the minified version into your theme or caching plugin.
Shrink inline JS in HTML.
Run your <script> contents through the tool, then paste the result back inline.
JavaScript Minifier FAQs
Is my code uploaded anywhere?+
No. Minification runs entirely in your browser. Your source never leaves your device.
Does the minifier change how my code behaves?+
No. Only whitespace, comments, and redundant syntax are removed, the program runs identically.
How much smaller will my JS get?+
Typically 30–60%. Heavily commented or formatted code shrinks the most.
Does it mangle variable names?+
This is a safe minifier, it does not rename identifiers, so the output is debuggable and won't break globals.
Should I also gzip?+
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 done-for-you website speed optimization services .

