JavaScript Minifier
Shrink JS by stripping comments and whitespace
Minified JavaScript appears here…Basic minifier: it removes comments and collapses whitespace, but it does not rename variables or apply advanced optimizations, so a dedicated tool like Terser will produce smaller output. Always test the minified code before using it in production. Everything runs in your browser, nothing is sent or stored anywhere.
About this tool
Every kilobyte of JavaScript costs load time. This basic minifier strips comments and redundant whitespace to shrink your scripts quickly.
It is honest about being basic: for production builds, a proper bundler minifies more aggressively. But for quick snippets, embeds and experiments, it is instant and free.
How to use the javascript minifier
- 1Paste your JavaScript.
- 2Click Minify.
- 3Copy the smaller output and check savings.
Frequently asked questions
Related tools
More free tools you might find useful.
Part of Developer Tools on JoliTools, free tools, no sign-up.