CSS Minifier
Compress CSS by stripping comments and spaces.
Free
Runs in your browser
About this tool
CSS Minifier removes comments, spaces and line breaks that browsers do not need, so stylesheets load faster. Strings and /*! licence */ comments are kept.
How to use CSS Minifier
- Paste your CSS.
- Press “Minify”.
- Copy or download the minified CSS.
Questions people ask
What does it remove?
Comments, line breaks, indentation, spaces around { } : ; , and the last semicolon in each block.
Does it merge rules or shorten colours?
No. It is a safe whitespace and comment minifier. It does not rewrite values, so the output always behaves the same.
Why keep /*! comments?
Comments starting with /*! usually hold licence text that must stay in the file.
More developer tools
See all 24 →
JavaScript MinifierRemove comments and whitespace from JavaScript.
Cron Expression ExplainerExplain cron schedules in plain English with next runs.
JSON to YAMLConvert JSON to clean YAML instantly.
YAML to JSONConvert YAML to formatted or minified JSON.
JSON to CSVTurn a JSON array into a CSV spreadsheet.
CSV to JSONConvert CSV with headers into a JSON array.