CSS Formatter

Beautify minified or messy CSS with consistent indentation, one declaration per line.

How to use CSS Formatter

  1. Paste your CSS.
  2. Choose the indent size.
  3. Copy or download the formatted CSS.

Supported features and limitations

Handles nested at-rules such as @media. Very unusual syntax (such as unbalanced braces) may format oddly.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

Can it format SCSS?

Basic nesting works, but SCSS features are not specifically supported.

Are comments kept?

Yes.

Related tools

More Developer & Webmaster Tools · All free tools