CSS Minifier
Minify CSS by removing comments, whitespace and redundant characters. Shows before and after size with the percentage saved. Free and in-browser.
Input
Result
The result appears here as you type.
What this tool is for
Every byte of CSS blocks the first paint, because a stylesheet is a render blocking resource. Minifying strips comments, whitespace and the last semicolon in each block, typically cutting a hand-written stylesheet by a fifth, and the tool shows you exactly what you saved.
How to use it
- Paste your CSS.
- Read the size comparison: original, minified, and percentage saved.
- Copy or download the minified file.
Frequently asked questions
Will minifying break my stylesheet?
The transformation is conservative: it removes only characters that carry no meaning. Comments used as directives by other tools are the one thing to watch, since those disappear with the rest.
Is minification still worth it with gzip?
Yes, though the gain is smaller. Compression handles repetition well but cannot remove content, and minified plus compressed is always smaller than compressed alone.