CSS Minifier
Minify CSS safely โ strip comments and whitespace, nothing rewritten.
About this minifier
Paste CSS, copy it back smaller โ comments gone, whitespace collapsed, trailing
semicolons dropped, with the byte count and percentage saved shown live. It's
deliberately conservative: strings, url(โฆ) contents and
calc() expressions pass through untouched, and no values are rewritten,
so the minified file behaves exactly like the original. Free, local, no account.
What minification is worth (honestly)
Typical hand-written CSS shrinks 15โ30% โ comments and indentation are most of it. That matters less than it used to (gzip on the server compresses whitespace well too), but minified + gzipped still beats gzipped alone, and build-less sites โ the kind where you paste CSS into a CMS box โ have no other minify step. Aggressive minifiers chase the last few percent by rewriting values (colours, shorthands, units); that's where minifier bugs live, which is why this one doesn't.
Frequently asked questions
Is this minifier safe for any CSS?
It only removes comments, whitespace and redundant semicolons โ never rewriting values or shorthands, and leaving strings, url() and calc() untouched. The output behaves identically to the input.
How much smaller will my CSS get?
Typically 15-30% for hand-written CSS, mostly from comments and indentation. Already-compact or generated CSS shrinks less.
Does minifying still matter if my server uses gzip?
Less than it used to, but minified-then-gzipped is still smaller than gzipped alone โ and if you're pasting CSS into a CMS with no build step, this is the only minification you'll get.
Can I un-minify CSS?
Formatting can be re-created by a beautifier, but comments are gone for good โ keep your source file and treat minified output as build artefact.