Output appears here...Beautify several CSS files
Add several files, put them in order, then process them all with the options above. Files stay in your browser.
How to use
Paste or upload CSS
Paste your stylesheet into the Input pane, or click Upload .css to load a file, which is formatted straight away. Try sample loads a one-line stylesheet with a media query.
Set options and click Beautify
Pick an Indent and tick the layout options you want, including Sort properties A to Z. Click Beautify, or turn on Live mode so the output follows your edits. Minify instead squeezes the same input onto one line.
Copy, download or batch
Click Copy, or Download to save a .css file named after your upload. To format several stylesheets, add them under Beautify several CSS files and download a ZIP or one combined file.
Why CSS Beautifier
- Unminifies a whole stylesheet, even one on a single line.
- Indent, selector, combinator and blank-line options, plus A to Z property sorting.
- Beautify or minify in the same pane, with Live mode.
- Batch formatting with a ZIP download, without anything leaving your browser.
Before and after: unminify CSS in one click
The sample is a small stylesheet squeezed onto one line: .hero{padding:16px;background:#fff;color:#000}.hero h1{font-size:48px;margin:0} followed by a media query and a hover rule.
After you click Beautify, each block opens with its selector and a brace on one line, every declaration sits on its own indented line with a space after the colon, and each closing brace gets its own line. The rule inside @media (max-width:600px) is indented one level further. The two selectors in .btn:hover,.btn:focus land on separate lines. The options change only the layout:
| Option | What it does |
|---|---|
| Indent: 2 spaces | Indents declarations by two spaces. The default. |
| Indent: 4 spaces | Indents declarations by four spaces. |
| Indent: Tab | Indents with one tab character per level. |
| Blank line between rules | Adds an empty line after each closing brace. Untick it for a more compact file. |
| Each selector in a list on its own line | Splits .a,.b onto separate lines. Untick to keep lists on one line. |
| Keep existing blank lines | Keeps empty lines you already had between rules. |
| Spaces around > + ~ | Writes .nav > li + li instead of .nav>li+li. |
| Sort properties A to Z | Orders declarations alphabetically inside each rule. |