JS Minifier — Free Online
Strip comments and whitespace from JavaScript. Works in your browser, no install needed.
Free with a CeevTech Tools account — no credit card required.
How to use JS Minifier
Paste your JavaScript into the input box.
Click Minify JS.
Check the size saving and click Copy.
Why use CeevTech JS Minifier?
Need to shrink a JavaScript file quickly without setting up a build tool? CeevTech JS Minifier strips comments and unnecessary whitespace from your code while keeping string and template literals intact. It shows the size before and after with the percentage saved, and it runs entirely in your browser so your code stays on your device.
- Fast: processes your URL or code in seconds.
- Private: runs in your browser, so nothing is uploaded.
- Works everywhere: desktop, tablet and phone, in any modern browser.
- One account, 79+ tools: PDF, image, office, AI, developer and business tools in one place.
Frequently asked questions
Does it shorten variable names?
No. This is safe minification: it removes comments and whitespace only. For variable renaming and heavier compression, use a build-step tool.
Why might the minified code fail to run?
Line breaks are collapsed, so code that relies on automatic semicolon insertion can break. End statements with semicolons, and test the output, especially if it contains regular expressions.
Is JS Minifier free?
Free with a CeevTech Tools account — no credit card required.
Do I need to install anything?
No. JS Minifier runs online in your browser on Windows, Mac, Linux, Android and iPhone.
Is my data private?
Yes. JS Minifier runs entirely in your browser, so your data never leaves your device.