CSS Minifier

Minify CSS by removing comments and whitespace to shrink file size, with a before-and-after character count.

How to use CSS Minifier

  1. Paste your CSS.
  2. Copy or download the minified result.

Supported features and limitations

Safe minification: comments are removed (except /*! … */ licence comments), whitespace is collapsed and the last semicolon in a block is dropped. It does not merge rules or rewrite values.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

Will minifying break my CSS?

This conservative minifier keeps strings and values intact, but always test the output.

Should I minify manually?

For production sites, a build step is better; this tool suits quick jobs.

Related tools

More Developer & Webmaster Tools · All free tools