Minifier
Strip whitespace and comments from JSON, JS and CSS for the smallest payload.
How to use the Minifier
-
Choose the language you're minifying.
-
Paste your code into the input.
-
Click Minify and copy the compact output.
What does a minifier do?
Minification removes everything a machine doesn't need — whitespace, line breaks and comments — to make files smaller and faster to download, without changing behaviour. This tool minifies JavaScript with Terser, CSS with a safe whitespace collapser, and JSON via the native parser. Smaller assets mean quicker page loads and lower bandwidth.
Key features
- Minify JavaScript, CSS and JSON
- Real JavaScript compression powered by Terser
- Live byte-savings so you see the reduction
- 100% client-side — nothing is uploaded
Frequently asked questions
Does minifying change how my code works?
No. Minification only removes whitespace and comments; the program's behaviour stays identical.
What's the difference between minify and beautify?
Beautify makes code readable for humans; minify makes it as small as possible for machines and faster delivery.
Is there a file-size limit?
No hard limit — it runs in your browser, so very large files depend only on your device's memory.