CSS Formatter / Minifier

Beautify CSS with indentation, or minify to strip redundant whitespace in one click

How to use

  1. Paste the CSS into the "CSS code" box.
  2. Click "Format" to beautify with indentation, or "Minify" to strip redundant whitespace and comments.
  3. The result is in "Result"; click "Copy" to take it.
  4. Tip: use Minify before production to shrink size; comments are removed too.

FAQ

Does minify remove comments?

Yes. Minify mode removes /* */ comments and all redundant whitespace, significantly shrinking size for production.

Does minification change the styling effect?

No. It only removes whitespace where syntax allows, producing an equivalent compression.