CSS minifier

Minify CSS by removing comments and whitespace that cannot change meaning.

CSS stays in this browser. Up to 500,000 characters. This minifier only removes comments and whitespace that cannot change meaning — it never rewrites values or selectors. Comments starting with /*! are kept. Custom properties are copied verbatim.

How to use

  1. Paste CSS.
  2. Minify and check the size change.
  3. Copy or download the result.

What it supports

Never rewrites values, selectors, or declarations — output stays valid whenever the input is. Comments starting with /*! (licenses) are kept, custom property values are copied verbatim, and malformed input is rejected with a line number instead of guessed. Up to 500,000 characters.

Related tools