Skip to content
Devtoolry

CSS Formatter

Format CSS, SCSS and Less stylesheets into readable, consistently indented code.

About the CSS Formatter

The CSS Formatter makes compressed or inconsistent stylesheets readable again, one declaration per line with consistent indentation. It understands CSS, SCSS and Less.

Everything runs in your browser, so your input is never uploaded to a server.

How to use the CSS Formatter

  1. Paste your stylesheet or open a file.
  2. Choose the syntax (CSS, SCSS or Less) and indentation.
  3. Copy or download the formatted code.

Frequently asked questions

Can I format SCSS with nesting and variables?

Yes. Choose SCSS (or Less) and nested rules, variables and mixins are formatted correctly.

Does it remove unused rules?

No. Formatting never removes or reorders rules; it only changes whitespace and layout.