Skip to main content
>_devtools

CSS Minifier

Minify CSS with csso: strip whitespace and comments, shorten values, merge duplicate rules, and see the size and gzip savings.

How to use it

Minify CSS with csso: strip whitespace and comments, shorten values, merge duplicate rules, and see the size and gzip savings. Paste CSS above and choose whether rules may be merged or reordered.

Example

Input: .card { color: red; margin: 0; }
Output: .card{color:red;margin:0}

Limits and behavior

  • Rule restructuring is optional because it may affect cascade order.
  • Input is limited to 1 MiB of UTF-8 text.