Paste minified or messy CSS and get back clean, properly-formatted rules. Pick indent size (2 / 4 spaces, or tabs), sort properties alphabetically, and optionally strip comments. Output is ready to commit to your codebase.
When to use this
Use for: cleaning up CSS pulled from minified production bundles for debugging, formatting CSS pasted from a tutorial / Stack Overflow answer, prepping CSS for code review, standardizing CSS style across a multi-author codebase.
Frequently Asked Questions
Does it preserve CSS comments?
Yes by default. Toggle 'Strip comments' to remove. Useful when prepping CSS for minification or removing dev-only TODO / FIXME comments before shipping.
Powered by CSS Beautifier & Formatter.