How to use CSS Minifier — Compress CSS Online Free
- 1Paste your CSS into the left-hand box.
- 2The minified version appears on the right, with the size saving shown.
- 3Copy it, or download it as a file.
About CSS Minifier
Minified CSS is what you want in production: the browser does not read your comments or your indentation, so every byte spent on them is a byte the visitor waits for. This strips all of it and reports the saving so you can judge whether it was worth doing.
It is worth knowing when the saving stops mattering. If your server sends CSS with gzip or brotli enabled, repeated whitespace compresses away almost completely, and minifying first saves far less than the raw byte counts suggest. Where it still helps is CSS inlined into a page, stored in a database, or served without compression.
The process is reversible: the formatter turns minified CSS back into readable, indented rules, so nothing is lost by minifying a stylesheet you may want to edit later.