CSS Minifier
Paste or upload your CSS and shrink it down for production — strip comments and whitespace, no upload required, all in your browser.
About this tool
The CSS Minifier strips out comments, whitespace and line breaks to make your stylesheet as small as possible, without changing how it behaves. Paste your CSS directly or upload a .css file, choose whether to keep license comments and how the output should be formatted, then copy the result or download it as a ready-to-use file. Everything runs locally in your browser — your code is never sent anywhere.
How it works
-
1
Paste or upload your CSS
Drop in a .css file, or paste the code straight into the box.
-
2
Choose your options
Pick the output format and whether to keep license comments.
-
3
CSS gets minified
Comments and unnecessary whitespace are stripped, and you see exactly how much was saved.
-
4
Copy or download
Copy the minified code, or download it as a ready-to-use file.
FREQUENTLY ASKED QUESTIONS
No. Only comments, whitespace and line breaks are removed — every selector, rule and value stays exactly as you wrote it, so the styling behaves identically.
No. Everything runs locally in your browser — your code is never sent to a server.
"All in one line" gives you the smallest possible file, ideal for production. "One rule per line" keeps the same minification but stays easier to read or diff, which is handy while you're still testing.
If your CSS includes a license notice wrapped in /*! ... */, keeping it preserves attribution some licenses require — that's the one type of comment the "keep" option leaves in, everything else is still stripped.
Need more than a free tool?
If you're ready for a real project — website, branding, or something custom — let's talk.