CSS Minify
Minify CSS code to reduce file size by removing whitespace, comments and redundancy. Faster-loading stylesheets.
Loading tool…
How to use the CSS Minify
Minified CSS loads faster because every unnecessary space, line break and comment is removed. Paste your stylesheet to get a compact version ready for production, along with the size saved.
- 1Paste your CSS code into the input box.
- 2Click "Minify".
- 3Review the original and minified sizes and the percentage saved.
- 4Copy the minified CSS or download it as a .css file.
Frequently asked questions
Will minifying break my CSS?
No. Only whitespace and comments are removed; the rules and values are preserved exactly.
Should I keep an unminified copy?
Yes. Keep the readable version for editing and deploy the minified one.