99+ Free Tools
← Back ✕ Close

CSS Formatter

Paste messy CSS and get clean, readable, indented code — one rule per block.

Colorful paint swatches and brushes
Properties are indented consistently, including inside media queries.

CSS

Formatted CSS

Paste CSS to format it.

How this tool works

Method. Each rule becomes its own block with properties indented two spaces; nested rules inside media queries indent further. Text inside quotes and comments is kept as written.

Privacy. Everything happens in your browser. Nothing is uploaded or shared; the recent-formatting record stays on this device only.

Limits. CSS up to 200 KB; longer input is trimmed with a warning. Unclosed braces are flagged with their line.