📦 HTML / CSS / JavaScript Minifier
Minify or beautify HTML, CSS, and JavaScript. Strips comments, collapses whitespace, shows size savings.
✅ 100% free, no signup, runs entirely in your browser
🔗 Related Tools
📖 How to Use
-
1
Choose language and actionSelect auto-detect, HTML, CSS, or JavaScript, then choose minify or beautify.
-
2
Enter your codePaste code into the left input. Use the Sample button to see example code.
-
3
Check size savings and copyThe minified output and size savings are shown. Click Copy to copy the result to your clipboard.
❓ FAQ
Does minification change code behavior?
When done correctly, behavior does not change. This tool removes comments and collapses whitespace. It does not rename variables or obfuscate code.
Are CSS calc() and var() handled correctly?
Yes. The CSS minifier safely compresses whitespace within property values.
Can I change the indent size for beautify?
Yes. Use the indent option to choose between 2 spaces, 4 spaces, or tab.