Beautify minified CSS with 2-space, 4-space or tab indent, or minify it to a single line. Preserves string values and data URIs.
Minified CSS ships faster but becomes unreadable the moment something breaks. A production stylesheet compiled from Sass or PostCSS can land as a single 80 KB line with no whitespace at all. CSS Formatter & Beautifier restores the structure in one paste. Each rule gets its own line, each property is indented consistently, so the declaration that is overriding your layout is actually findable.
Minify mode runs the reverse trip, removing comments, collapsing whitespace, stripping the last semicolons before closing braces, and shrinking space around punctuation. The character saving counter in the output header shows the exact byte reduction so you can decide whether the pass is worth a build step.
Click Load Sample to paste a minified stylesheet containing a .hero block, nested selectors for the heading and paragraph, and a @media query. With 2 spaces indent and Beautify active, the formatter expands the flat string into a properly indented file — the media-query contents sit at two levels of nesting so it is immediately clear which rules apply only on narrow viewports.
content: properties andurl() functions are preserved intact — quotes and spaces inside them are never touched. This is the non-obvious difference that causes naive formatters to break SVG data URIs.@media / @keyframes / @supports at-rules, and all block comments. Every comment is placed on its own line at the correct indent level.{ and }, and the line break after every property declaration. The output is deterministic for any given input and indent choice./* */), all whitespace runs, spaces around : ; { } and,, and the trailing semicolon before each closing brace.Mode
Indent
Paste CSS above, or hit Load Sample to beautify a responsive hero component.