CSS Minifier
Strip comments and whitespace from your CSS to shrink it — and see exactly how much you save.
CSS Minifier
Runs in your browser — nothing you enter is uploaded or stored.
Scratchpad auto-saved
About the CSS Minifier
Every byte your CSS sends over the wire adds to page load time. Minifying removes the parts browsers don't need — comments, indentation, line breaks, and the spaces around braces, colons, and semicolons — without changing how the styles render. It's a simple, safe win for performance.
Paste your stylesheet and this tool strips comments and collapses whitespace, then shows the original size, the minified size, and the percentage saved so you can see the benefit. Copy the result into your production build or a <style> block.
It runs entirely in your browser, so your styles are never uploaded. For large projects, a build-step minifier can go further (shortening colors, merging rules), but for quick optimisation this is instant and private.