CSS Minifier

Paste your stylesheet: comments, extra whitespace and line breaks disappear in one click, with the percentage of bytes saved.

0Original bytes
0Minified bytes
0%Savings

πŸ”’ Your code stays in your browser: nothing is stored or sent anywhere.

Why minify your CSS?

Every space, line break and comment in a stylesheet is a byte the browser downloads but never uses: on most hand-written CSS, minification trims 15–30% of the file size. A lighter file means a faster First Contentful Paint, a better Core Web Vitals score and less data burned by visitors on mobile connections. It is one of the simplest optimizations with zero downsides: to the browser, minified CSS behaves exactly like the original.

What this tool removes (and what it leaves alone)

It strips /* … */ comments, line breaks, indentation, whitespace around curly braces, colons, commas and combinators, and the trailing semicolon before }. Quoted strings and the contents of url(…) are protected and returned untouched: a content: "a b" rule or a path with spaces will not be altered. Selectors, properties and values stay exactly as you wrote them.