CSS Minifier

Make your stylesheet smaller for a faster website. The minifier removes what browsers do not need while keeping your CSS working exactly the same.

Loading tool…

How to use the CSS Minifier

  1. Paste your CSS (it minifies as you type).
  2. Check the size saved and the gzip estimate.
  3. Copy the minified CSS or download it as a .min.css file.

Frequently asked questions

Will minifying break my CSS?

No. Strings, url(...) values (including data: URLs) and the spaces needed inside calc() are kept exactly. Only comments, extra spaces and redundant characters are removed.

Are license comments kept?

Yes. Comments that start with /*! are kept, as most licenses require.

What gets shortened?

Colors like #ffaa00 become #fa0, 0px becomes 0 (except inside functions like calc()), 0.5 becomes .5, and the last semicolon in each rule is dropped.

Can I make minified CSS readable again?

Yes — use our CSS Formatter to expand minified CSS back into neat, indented code.