Home » Developer Tools » CSS Minifier
Shrink your stylesheets in seconds without changing how your site looks.
Your code never leaves your browser. Everything runs locally on your device.
Large stylesheets slow down a page because every extra space and comment adds bytes that a browser must download. The CSS Minifier removes that extra weight in seconds, so your styles load faster without changing how your site looks.
Paste your stylesheet below or upload a CSS file, and the tool strips comments, collapses spaces, shortens colors, and drops units from zero values. Your original code stays in the input box, so you can compare the result and copy the smaller version when you are ready.
No. It only removes comments and extra spaces and shortens values that mean the same thing, so your page looks exactly the same after minifying.
Yes. Text inside quotes is left untouched, so a value that looks like a comment marker stays exactly as you wrote it.
Zero values lose their unit, so 0px becomes 0, and a six digit color code with doubled pairs becomes a three digit code.
Yes. Media queries and other at rules are kept intact, and only the spaces and values inside them are cleaned up.
No. Your CSS is processed only in your browser on your own device, and nothing is sent to a server or stored anywhere.
Yes. Paste a full stylesheet or upload a CSS file, and the tool minifies everything in one go, including rules inside media queries.
If you also work with markup, try the HTML Minifier to shrink your HTML pages in the same way before you publish them.