CSS formatter
CSS minify and format in one place: `url()` and string contents survive, and the size change is visible after minifying.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
The result can be copied directly.
Enter CSS to see the result
Characters: 0 · Lines: 0
What this tool does
- Expand compact CSS from a bundler into readable structure.
- Drop comments and padding before shipping.
- Check that spaces inside `url()` were not mangled (many online tools do).
Example
Input
.a{background:url( x .png );content:"a b"}Output
.a {
background:url(x .png );
content:"a b"
}Whitespace inside `url(...)` and strings is never collapsed — the key difference from regex minifiers.
Frequently asked questions
Does it break `url()`?
No. `url(...)` and quoted strings are non-collapsible tokens, so `url( x .png )` keeps its spacing.
Can comments be kept?
Yes — enable “Keep comments”; otherwise they are removed when minifying.
Does it handle SCSS?
Lexically yes (`$var`, nesting and `#{}` survive); use “SCSS to CSS” if you need real compilation.
Why is the last semicolon gone?
CSS allows omitting it before `}`, and dropping it saves bytes — normal minifier behaviour.
Keywords:css formatterformatconverterdeveloper