CSS Formatter & Beautifier

Paste minified or untidy CSS and get a consistently indented, readable stylesheet back.

Formatting rules

Every { opens a level of indentation, every } closes one, and each ; ends a line. At-rules nest naturally, so a media query keeps its inner rules indented inside it.

Frequently asked questions

Does it validate CSS?

No — it formats what it finds; syntax errors pass through unchanged.

Comments preserved?

Yes — /* */ comments are kept on their own line.

Can it minify instead?

This tool only beautifies; use a minifier for the reverse.