TOOLTIKI Lovable tool, really free
Developer Formatting

CSS formatter

What to do
Indent

Processed in your browser · nothing is uploaded

Local · formatting only, values untouched
Advertisement
320 × 100

Puts each declaration on its own line and indents nested blocks, or strips it all back out. Minifying also removes comments and the final semicolon in each block.

How to use the css formatter

1 Paste your input. The result appears immediately.
2 Pick the operation you want.
3 Copy the result, or save it as a file.

Dropping the last semicolon is safe and is what every minifier does — CSS needs a semicolon between declarations, not after the last one. Two things this deliberately does not do, because both change behaviour: it does not merge duplicate selectors, since the cascade means order matters and merging can change which rule wins, and it does not shorten colours or units. A minifier that reorders a stylesheet to save bytes trades a real risk for a small gain, and gzip recovers most of that gain anyway.

Questions

Yes. CSS needs semicolons between declarations, not after the last one in a block.

MDN — CSS reference
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING