CSS Minifier
Your text never leaves your browser — everything runs on your device.
Paste a stylesheet and shrink it: comments are removed, whitespace is collapsed, and the final semicolon before each closing brace is dropped. The minifier shows the size before and after, and how much you saved. String values and calc() expressions are preserved exactly, so your styles keep working. Free, no signup, and your text never leaves your browser.
Frequently asked questions
How much smaller will my CSS get?
It depends on how the original was written. Heavily commented, hand-formatted CSS often shrinks by 20–40%. Already compact CSS saves less. The tool shows the exact before and after sizes for your file.
Will minifying break my CSS?
This minifier is conservative: it never touches string literals (such as content values) and it keeps the spaces inside calc(), which are required. It only removes comments and unnecessary whitespace.
Should I minify CSS for production?
Yes. Smaller stylesheets download faster, which helps page load times. Keep the original, readable file for editing and serve the minified version to visitors.
Is my CSS uploaded anywhere?
No. Minification runs entirely in your browser. Nothing you paste is sent to a server or stored.