About the CSS Formatter
Inspecting a minified stylesheet from a website or a library is painful when every rule is on one line. The CSS formatter puts each declaration on its own line, indents nested blocks such as media queries, and separates rules with blank lines.
It also works on SCSS and Less syntax for basic tidying.
How to use the CSS Formatter
- Paste CSS or open a .css file.
- Choose indentation.
- Press Convert and copy or download.
Features
- One declaration per line
- Indents @media and nested blocks
- Blank line between rules
- Handles SCSS/Less basics
Supported formats
- CSS
- .css
- .scss
- .less
Frequently asked questions
Is my code uploaded?
No. Formatting and minifying run in your browser, so proprietary code and secrets never leave your device.
Will it fix CSS errors?
No. It only changes whitespace. Use your browser’s developer tools to find invalid properties.
Added · Last reviewed · Maintained by Sohail Khax · How we test tools