About the CSS Formatter
Turn a compressed one-line stylesheet back into readable CSS with one rule per block and one declaration per line — or go the other way and minify your CSS, removing comments and whitespace. The size difference is shown so you can see the savings at a glance.
Features
- Beautify with configurable indentation
- Minify with size savings report
- Handles media queries, nesting and custom properties
- Optional blank line between rules
How to use it
- Paste CSS into the input pane.
- Choose Beautify or Minify.
- Copy or download the result.
Frequently asked questions
Does minifying change how my CSS works?
No. Only comments and insignificant whitespace are removed. Selectors, values and rule order stay the same.
Does it support SCSS or LESS?
Basic SCSS/LESS nesting is beautified correctly, but the tool does not compile them to CSS.