CSS Formatter
Paste messy CSS and get clean, readable, indented code — one rule per block.
CSS
Formatted CSS
Recent formatting on this device
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.