Skip to content
Ovatly

CSS Formatter

100% PrivateDeveloper Tools

Turn compressed or messy CSS into readable code with one declaration per line.

Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.

  1. 1Paste your CSS into the input box.
  2. 2Choose an indent size of 2 or 4 spaces.
  3. 3Press Format CSS.
  4. 4Copy or download the formatted stylesheet.

About this tool

The CSS Formatter turns compressed or sloppily indented stylesheets into readable CSS with one declaration per line and consistent indentation. Developers use it to inspect minified production CSS, clean up copied snippets, and make hand-edits safe again.

Related tools

Advertisement

Part of Ovatly's free tools in Developer Tools.