Home
Tom Utilities

CSS Formatter

HTML, CSS & JavaScript

Beautify CSS with one property per line and consistent indentation.

Input

Result

How to use

How to format CSS

Paste CSS and press Format. Each declaration is placed on its own line.

  1. Paste CSS into the input editor.
  2. Press Format.
  3. Copy the beautified stylesheet.

Frequently asked questions

Are comments kept?

Yes, CSS comments are preserved in the formatted output.

Does it support media queries?

Yes, nested at-rules such as media queries are indented correctly.