CSS Minifier
Compress CSS stylesheets for production — strip whitespace, shorten color codes, remove comments, and see the exact bytes saved.
Free · No credit card · 50 credits/day
What minification removes
Whitespace
Removes spaces, tabs, and newlines between selectors, properties and values — the biggest single saving in most stylesheets.
Comments
Strips /* block comments */ that document your CSS. Keep them in source; strip them in production.
Long color values
Shortens #ffffff → #fff and rgb(0,0,0) → #000. Saves bytes on color-heavy stylesheets.
Unnecessary zeros
Removes leading zeros (0.5rem → .5rem) and trailing zeros in decimal values.
Duplicate rules
Merges identical selectors that appear in multiple places — safe when order does not matter.
Redundant units
Drops the unit from zero values (0px → 0) where CSS allows it, per spec.
Frequently asked questions
Related dev tools
Minify the rest of your front-end assets too.
Shrink your CSS for production
Free account. 50 credits per day. Access to 75+ tools instantly.
Create free account →