CSS minifier
Paste your CSS and get the minified version with the size saved.
CSS minifier
This tool minifies CSS: it removes comments and unnecessary whitespace and compacts the rules to shrink the file size, which speeds up page load. It all runs in your browser, with nothing uploaded.
What minification does
- Removes
/* ... */comments. - Collapses spaces, line breaks and tabs.
- Strips spaces around
{ } : ; ,and the trailing semicolon.
Why it matters
Smaller CSS downloads faster and improves metrics like LCP. In production also serve it with gzip/brotli, which compresses it further.
Frequently asked questions
Does it change the visual result? No: it only removes irrelevant characters; the CSS works the same.
Is it a full minifier? It’s a fast, safe minify; for large builds use tools like cssnano.