How to use CSS Formatter
- Paste your CSS.
- Choose the indent size.
- Copy or download the formatted CSS.
Supported features and limitations
Handles nested at-rules such as @media. Very unusual syntax (such as unbalanced braces) may format oddly.
Privacy
Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.
Frequently asked questions
Can it format SCSS?
Basic nesting works, but SCSS features are not specifically supported.
Are comments kept?
Yes.
Related tools
- CSS Minifier - Minify CSS by removing comments and whitespace to shrink file size, with a before-and-after character count.
- HTML Formatter - Indent and beautify HTML so nested tags are easy to read.
- Box Shadow Generator - Design a CSS box-shadow with offsets, blur, spread, colour, opacity and inset, and preview it live.
- JSON Formatter & Validator - Format, minify and validate JSON with clear errors.
- URL Encoder / Decoder - Encode or decode URLs and query strings.
- Color Converter - Convert between HEX, RGB and HSL colours.