Developer tool

CSS Formatter

Beautify minified CSS into readable rules.

Free Runs in your browser

About this tool

CSS Formatter expands compressed stylesheets so each selector and property sits on its own line. It handles media queries and nested at-rules.

How to use CSS Formatter

  1. Paste your CSS.
  2. Choose an indent size.
  3. Press “Beautify”, then copy or download.

Questions people ask

Does it support SCSS or Less?

Simple SCSS and Less usually format well because the syntax is close to CSS. Complex mixins may not indent perfectly.

Are comments kept?

Yes. Beautifying keeps comments. Use the CSS Minifier if you want them removed.

Will it reorder my properties?

No. The order of rules and properties stays the same, because order matters in CSS.

More developer tools

See all 24 →
Esc