CSS Formatter & Beautifier
Beautify and indent CSS stylesheets for clean readability with consistent selector and declaration spacing.
- 100% free
- Files stay on your device
- No sign-up, no watermark
Related Developer Utilities
What is CSS Formatter & Beautifier?
The CSS Formatter turns compressed or messy stylesheets into readable CSS: each selector on its own line, one property per line, and consistent indentation using 2 spaces, 4 spaces or tabs. It is useful when inspecting a minified stylesheet from a website, cleaning up generated CSS, or preparing code for review. Only whitespace is changed, so the styles behave exactly the same.
How to use CSS Formatter & Beautifier
- 1
Paste CSS
Paste the stylesheet or load the sample.
- 2
Pick indentation
Choose 2 spaces, 4 spaces or tabs.
- 3
Copy
Copy the formatted CSS into your editor.
Frequently asked questions
Does it support media queries and nested rules?
Yes. @media, @supports and @keyframes blocks are indented correctly.
Will it add missing semicolons?
No. It formats what is there; a missing semicolon before the closing brace is valid CSS and is left as is.
How do I minify it again?
Use the CSS Minifier to remove the whitespace for production.
Last updated: