Strip comments and unnecessary whitespace from CSS without touching selectors, values, or cascade order, so your stylesheet renders identically while transferring faster.
Output
All processing happens in this browser tab. Nothing is sent to a server.
GUIDE
How to minify CSS
What is removed and what is not
Comments and insignificant whitespace disappear; semicolons before a closing brace are dropped; every declaration, selector, and at-rule is untouched. Quoted strings such as font family names keep their internal spaces.
Why whitespace matters less in CSS
CSS treats whitespace between tokens as optional in almost every position, so squeezing it never changes which rules apply. The exceptions live inside strings and URLs, which the minifier protects by extracting them before compressing.
Order is preserved by design
The cascade means declaration order can decide the winner between conflicting rules. A minifier that reordered anything would change rendering; this one never reorders, it only removes bytes.
Keep the readable source
Minified CSS is nearly impossible to edit. Keep the formatted version as your working file and minify at deployment. If you need to reverse a minified file later, the CSS formatter here will re-indent it readably.
HELP / FAQ
CSS minifier questions
How much smaller will my CSS get?
Well-commented stylesheets routinely shrink 20 to 40 percent. Already-compact files save only a few percent, mostly from dropped semicolons and collapsed spaces.
Does it shorten colors or units?
No. Values like 0px, #ffffff, or 0.5em are left exactly as written. Aggressive value rewriting is where minifiers occasionally change rendering; this tool stays on the safe side.
Will media queries survive?
Yes. At-rules are treated as blocks: their headers, bodies, and nesting are preserved; only whitespace inside them is squeezed.
Is my CSS uploaded anywhere?
No. Minification happens in this browser tab and nothing is transmitted.
EXPLORE BY CATEGORY · BFOTKIT
More tools like this
Pick a category to see every tool in it — then open one and discover related tools.