CSS Minifier / Beautifier

Shrink CSS by stripping comments and whitespace, or expand it back into cleanly indented, readable code — both directions, live.

911 views

CSS, Compressed or Readable

Minify strips comments and collapses whitespace to shrink file size for production. Beautify does the reverse — takes minified or messy CSS and re-indents it with one rule per line, easy to read and diff.

This is a lightweight, regex-based tool rather than a full CSS parser — it handles standard CSS correctly, but content values containing literal {, } or ; inside quotes (rare in practice) may not format perfectly.

Frequently Asked Questions

Does minifying break my CSS?

No — it only removes comments and collapses whitespace around punctuation; every selector, property, value and rule stays functionally identical.

Does this handle SCSS or LESS syntax?

It's built for plain CSS. Sass/Less-specific syntax (nesting, variables, mixins) will pass through largely unchanged rather than being processed, since those aren't valid CSS on their own.

Similar Tools