Minified selector block
Beautifying .card{color:#111;padding:8px 12px;border-radius:6px} puts each declaration on its own line inside the .card rule.
Beautify and format minified CSS online with clean indentation — free CSS formatter.
About
Paste minified or inconsistently formatted CSS and get it back readable, with one selector or declaration per line — which makes it much easier to spot duplicate or overridden rules by eye than a single compressed line ever would.
Minified CSS packs every rule onto one line, like .btn{color:#fff;padding:8px 16px}. Beautifying gives each selector its own block and each declaration its own line, which makes it much easier to find the rule you want, spot a property that's set twice, or copy one block into another stylesheet.
Examples
4 worked examples
Beautifying .card{color:#111;padding:8px 12px;border-radius:6px} puts each declaration on its own line inside the .card rule.
Beautifying a{color:blue}b{color:red} splits it into two separate blocks, one for a and one for b.
Beautifying @media(max-width:600px){.card{padding:4px}} indents the .card rule inside the media query to reflect its nesting.
.a{color:red} becomes .a { on one line, color: red indented four spaces on the next, and a closing brace on the third.
FAQ
Quick answers to common questions about the CSS Beautifier.
Paste your CSS code above, make sure CSS is selected, then click Beautify. The formatted output appears in the box below it — everything runs in your browser, using js-beautify.
Yes. It's free, with no sign-up and no limit on how much code you format.
Yes — that's one of its most common uses. Paste minified CSS in and it comes back with one selector or declaration per line and proper indentation restored.
No — it only changes whitespace and line breaks; the actual selectors and declarations, and how they render, stay exactly the same.
No. Formatting runs entirely in your browser after js-beautify loads from this site — your code never leaves your device.
Yes — switch the language dropdown, or use the dedicated JavaScript beautifier or HTML beautifier page.
Yes. The Indent size box accepts 1 to 8 spaces; it starts at 2, and many teams use 4.
No. It only adds line breaks and indentation — property order and values stay exactly as you wrote them. Use the CSS Minifier if you want duplicate rules merged.
Yes. Comments stay in the output on their own lines, so notes in your stylesheet survive formatting.
Did CSS Beautifier work for you?