CSS Beautifier
Beautify minified or messy CSS with one rule per block and one declaration per line. Choose 2 spaces, 4 spaces or tabs. Free online CSS formatter.
Runs in your browser. Nothing is uploaded.
About CSS Beautifier
CSS Beautifier takes compressed or badly indented CSS and lays it out cleanly, with one declaration per line, consistent indentation and a blank line between rules. It's the fastest way to read a minified stylesheet from a live site.
Pick the indentation style your project uses, then copy the result back into your editor.
How to use CSS Beautifier
- Type or paste your text into the input box. Press Sample to see an example.
- Adjust the options. The result updates as you type.
- Copy the result, or press Use as input to chain another transformation.
Frequently asked questions
Can it handle media queries?
Yes, though nested blocks such as @media get simple formatting. For heavy refactoring, a full formatter like Prettier is best.
Does it change any values?
No. Only whitespace and line breaks change.
Is CSS Beautifier free and private?
Yes. CSS Beautifier is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.