How to format CSS
- Paste your CSS.
- Choose the indent and quote style.
- Copy the formatted CSS or download it.
About this tool
Turn a minified or untidy stylesheet into readable rules, one property per line. Choose the indent and quote style. If a brace is missing or a rule is broken, you see the line and column of the problem. Your CSS is formatted in the browser and never sent anywhere.
Common questions
Does it support media queries and nesting?
Yes. Media queries, custom properties, and modern nested rules are formatted.
Will it change my colors or values?
No. Only spacing and line breaks change. Values are kept as you wrote them.
Can I format SCSS or Less?
This tool reads plain CSS. SCSS and Less features may be reported as errors.
Is it free to use?
Yes. There's no sign-up, and you can use it as often as you like.
Is my text uploaded anywhere?
No. This tool runs inside your browser, so what you enter stays on your device.
Do I need to install anything?
No. It works in your browser on a computer or a phone.