Toolgeist › Developer

JS Minifier — Free Online Minifier

JS Minifier strips out whitespace, comments and other redundancy to shrink your JS for production. Everything is computed locally in your browser — your data never leaves your device. Completely free, with no account required.

How to use JS Minifier

  1. Paste your JS.
  2. Run the minifier.
  3. Copy the compressed output and check how much you saved.

Frequently asked questions

Will minifying break my code?
It preserves behaviour while removing whitespace and comments, but always test the minified output before deploying.
How much smaller will my file get?
Typically 20-60% before gzip, depending on how many comments and how much whitespace the original had.
Can I reverse it?
Run the output through a formatter to make it readable again, though original comments cannot be recovered.

Related Developer tools

Browse all 738 free tools on Toolgeist →