CSS Prettify
Your data never leaves your browserFormat and beautify CSS code with consistent indentation and line breaks.
Brie — Bug Reporting Tool
Chasing a CSS bug across browsers?
Brie captures screenshots with device info and browser version automatically — no more "works on my machine."
About CSS Prettify
Paste your minified or unformatted CSS and instantly get a cleanly formatted, human-readable version. The formatter adds newlines after opening braces, closing braces, and semicolons, and applies 2-space indentation to nested rules — all without any external dependencies.
How to use
- Paste your raw or minified CSS into the input panel.
- The formatted CSS appears instantly in the output panel on the right.
- Click Copy to copy the prettified CSS to your clipboard.
More CSS Tools
Frequently Asked Questions
FAQs about CSS Prettify
What indentation does this use?
The formatter uses 2-space indentation for each nesting level, consistent with most modern CSS style guides.
Does it validate the CSS?
The formatter applies regex-based formatting and does not perform strict CSS validation. Use a dedicated CSS validator for that.
Are media queries handled?
Yes. Nested at-rules like @media, @keyframes, and @supports are indented correctly.
Is my data safe?
Yes. All formatting runs in your browser — no data is sent to any server.
What is the difference between prettify and minify?
Prettify adds whitespace, indentation, and line breaks to make CSS human-readable. Minify does the opposite — it removes all unnecessary whitespace for smaller file sizes.