JS Minifier
Compress JavaScript by removing comments and collapsing whitespace — with before/after size stats.
Lightweight minifier: strips comments and collapses whitespace while preserving strings, regexes and template literals. For production builds, also run your bundler.
How to use
Paste your JavaScript and click Minify. The output plus size savings appear instantly.
Frequently asked questions
Is this JS minifier free?
Yes, free with no signup.
Is it safe for production code?
It removes comments and redundant whitespace while preserving strings and template literals. For production builds, also test with your bundler.
Is my code uploaded?
No, it all runs locally.
☕
ToolZap is free forever
Every tool runs 100% in your browser — no uploads, no signups. If a tool saved you time, consider supporting us with a small donation.
💛 Donate via PayPal