CSS Minifier & Beautifier

Minify and compress CSS stylesheets online for free. Strip comments and whitespace to reduce CSS file size for production.

Optimize your CSS stylesheets by stripping unnecessary whitespace, comments, and line breaks. Switch between Minify for production performance and Beautify for clean readability.

How to use

  1. Paste your raw CSS code into the input editor.
  2. Click "Format CSS" to indent rules neatly with line breaks.
  3. Click "Minify CSS" to strip comments, redundant spaces, and reduce payload size.
  4. Copy the result or inspect the character reduction percentage.

Frequently asked questions

Does minifying CSS break media queries or vendor prefixes?

Standard media queries, keyframe animations, and browser vendor prefixes (-webkit, -moz) are cleanly preserved.

Related tools