CSS Minifier / Formatter

Clean, compress, and format CSS in seconds for faster loading and easier editing.
Input CSS
Runs in your browser
Tip: use Format for readability and Minify for production.
Output

          
Privacy note: formatting happens locally in your browser.

Why minify CSS

Minification removes whitespace and comments to reduce file size and speed up page loads.

Why format CSS

Formatting makes styles easier to read and maintain, especially for teams and reviews.

Limitations

This formatter uses safe, basic formatting rules. Complex edge cases may need manual review.

How to minify or format CSS

Paste CSS and choose Minify or Format.

  1. Paste your CSS into the input box.
  2. Click Minify or Format.
  3. Copy the output CSS.

FAQ

Does this tool upload my CSS?
No. Everything runs locally in your browser.
Will minification change behavior?
It should not, but always test your output.
Does it support modern CSS?
Yes, it preserves syntax and values as-is.