Shrink your CSS instantly — strip comments, whitespace, and bloat.
Options
Savings
Original size
1.1 KB
Minified size
774 B
Saved
309 B
Reduction
29%
CSS Minifier strips comments, collapses whitespace, removes trailing semicolons, shortens hex colors, and eliminates zero units — all entirely in your browser without uploading a single byte. Paste raw CSS from your stylesheet or framework and get production-ready minified output in milliseconds, with a clear size-reduction report so you know exactly how much bandwidth you saved.
Minification removes everything a browser doesn't need to parse a stylesheet: comments, indentation, newlines, spaces around braces and colons, redundant semicolons before closing braces, and verbose values like '0px' (shortened to '0') or '#aabbcc' (shortened to '#abc'). The result is functionally identical CSS that transfers faster over the network.
No. Minification is a lossless process — it only removes characters that have no effect on how the browser renders the page. All selectors, properties, and values remain intact. If styles break after minification it usually means the original CSS had a syntax error that was masking a pre-existing issue.
License comments start with '/*!' and are used by open-source CSS libraries (Bootstrap, Normalize.css, etc.) to embed copyright and license notices. Some licenses legally require you to keep those notices in distributed files. The 'Preserve license comments' option keeps them intact while still removing all regular comments.
Typical hand-authored CSS shrinks by 20–40%. Verbose frameworks or files with lots of inline documentation can see 50% or more. On top of minification, serving CSS with gzip or Brotli compression (standard on most hosts) reduces transfer size further, and minified files compress even better than their unminified counterparts.