DEVELOPER TOOLS · LOCAL ONLY

CSS Minifier

Strip CSS comments and whitespace down to a single line.

Up to 200,000 characters. Removes comments and whitespace only; selectors and shorthands are not merged.

Minify
4 lines · 53 bytes
0 lines · 0 bytes
Run the tool to see the result

Up to 200,000 characters. Removes comments and whitespace only; selectors and shorthands are not merged.

How to use

Strip CSS comments and whitespace down to a single line.

Collapse CSS onto one line to reduce file size, handy for inlining or for a quick size comparison. Comments go and spacing around braces, colons, and semicolons is tightened, but quoted strings and `url()` contents keep their exact spacing so rendering is unchanged.

Limits and privacy

Up to 200,000 characters. Removes comments and whitespace only; selectors and shorthands are not merged.

Everything runs inside this browser. Your input is never uploaded, stored, or written to the URL or any log.