CSS Formatter

Paste squashed or messy CSS and get it back with one rule per line and each property on its own line, neatly indented.

1 Paste or type your text

2 Your answer

Your answer shows here as you type.

How to use the CSS Formatter

  1. Paste your CSS into the box.
  2. Read the formatted CSS below.
  3. Copy it into your style sheet.

Frequently asked questions

Does this change how my CSS works?

No. It only adds spaces and new lines, so the styles stay the same.

Can it fix broken CSS?

No. It lays out the code as it is, so a missing brace or semicolon stays missing.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.