CSS Formatter

Beautify and indent CSS

Format minified or messy CSS with one declaration per line, blank lines between rules and one selector per line.
Try an example:

Output will appear here...

About CSS Formatter

How it works

  1. The CSS is split into rules, selectors and declarations.
  2. Each declaration goes on its own indented line; nested @media blocks are indented further.
  3. Optional blank lines and one-selector-per-line make large stylesheets easier to scan.

What you need

  • CSS code (minified or not).

Runs in your browser. Everything happens in your browser - your code and data are never uploaded.

Frequently asked questions

Can I format SCSS or LESS?+

Simple SCSS and LESS usually format fine, since the syntax is close to CSS, but advanced features (mixins with logic) are not specifically supported.