Developer tool

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

  1. Paste your CSS.
  2. Press “Minify”.
  3. 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 →
Esc