Compress and minify your CSS stylesheets instantly to improve page performance.
What minifying a stylesheet actually does, how it connects to Core Web Vitals, and answers to the questions we get asked most.
It strips everything from a stylesheet that exists for human readability but that browsers ignore anyway β indentation, line breaks, and comments β while leaving every selector, property, and value untouched.
You write CSS with spacing and comments because that's how people read code. Browsers don't need any of it; they parse the same rules whether they're spread across 200 lines or packed onto one. A minifier just removes the bytes that were only ever there for you.
Here's a short stylesheet run through the tool above, with comments removed:
Same rules, same rendered page β roughly 54% fewer bytes in this example. Real-world savings vary with how much whitespace and commenting the original file had, but a 20β40% reduction is typical for a hand-formatted stylesheet.
CSS is a render-blocking resource β browsers wait for stylesheets to download and parse before painting the page, so a smaller CSS file can mean a faster First Contentful Paint and Largest Contentful Paint.
That said, minification is one input among several. Compression (gzip/Brotli on your server), how many separate stylesheets you load, and unused CSS all affect load time too β and Core Web Vitals are one of many signals Google's ranking systems consider, not a guaranteed rankings boost on their own. Minifying is still worth doing: it's free, safe, and directly reduces what the browser has to download.
Fewer bytes to download over the network, especially noticeable on slower mobile connections.
Since CSS blocks rendering, a lighter file lets the browser get to painting your page sooner.
Only formatting bytes are removed β selectors, values, and cascade order stay exactly as you wrote them.
@media blocks, custom properties like
--main-color, and grid/flexbox declarations are all
parsed as normal CSS rules and values β they're compacted the same
way as any other block, without their syntax being altered.