CSS Minifier

Minify CSS by removing comments, whitespace and redundant semicolons, without touching strings.

Runs in your browser. Your input is processed on your device and is not uploaded to our server.

How to use the CSS Minifier

  1. Paste your code or open a file.
  2. Choose the options and click Minify.
  3. Check the result and the size change, then copy or download it.

The minifier removes comments (except /*! … */ licence comments if you choose), collapses whitespace and removes the last semicolon in each block. It does not merge rules or rewrite values, which keeps the output safe.

Frequently asked questions

Will it break my CSS?
It only removes characters that have no effect, but always test the result in your site.