Text UtilitiesText FormattersFree Tool
CSS Minifier
Compress CSS by stripping comments, collapsing whitespace, and removing unnecessary spaces around punctuation.
How to Use CSS Minifier
- 1Paste your CSS
- 2Click Convert
- 3Copy the minified output
Frequently Asked Questions
/* comments */, extra whitespace (collapsed to single spaces), and spacing immediately around {, }, ;, :, ,, >, +, and ~.
No — only whitespace and comment removal; it doesn't merge duplicate selectors, shorten hex colors, or remove unused rules.
A separate (near-identical) implementation with the same purpose — either works the same way.
No — minification happens entirely in your browser.
Related Tools
JSON Formatter
Pretty-print JSON with real 2-space indentation using the browser's native JSON parser — shows the exact parse error if your JSON is invalid.
JSON Minifier
Compress JSON to its smallest valid form by removing all whitespace, using the native JSON parser.
XML Formatter
Reformat XML with proper nested indentation based on tag depth — a lightweight tag-based indenter, not a full XML parser.
XML Minifier
Compress XML by stripping comments and collapsing whitespace between tags.