Minify JS - Free JavaScript Minifier
Paste a script and get a minified version that keeps the same behavior while dropping comments and whitespace. The size report shows how much you saved, with everything processed in your browser.
JavaScript Minifier
Minify JavaScript code to reduce file size and improve load times
Smart minifier: full parse with variable mangling, expression compression, and dead-code elimination for maximum size reduction. Requires syntactically valid JavaScript.
Quick Start
- 1Paste your JavaScript into the input area
- 2Click Minify to compress the code
- 3Check the before and after size reduction
- 4Copy the minified output
More Minify Tools
All minifiers →Minify CSS Online
Compress CSS code by removing whitespace, comments, and redundant rules. Free online CSS minifier with size comparison.
Minify JavaScript Online
Compress JavaScript code by removing whitespace and shortening variables. Free online JS minifier with size comparison.
Minify & Optimize SVG Online
Optimize SVG files by removing metadata, comments, and unnecessary attributes. Free online SVG minifier.
Minify CSS Online Free
Minify CSS online free to shrink file size and speed up your site. Strips whitespace and comments in your browser, no upload, no signup.
Minify SVG Online Free
Minify and clean SVG code online for free. Removes editor metadata, comments, and redundant attributes to reduce SVG file size, no upload.
Looking for FAQs and advanced options? Visit the full JavaScript Minifier page →