CSS Minifier
Minify CSS by removing whitespace and comments.
Runs in your browser. Nothing you open or type here is uploaded.
How to use
- Paste CSS into the input field.
- Run Minify.
- Compare the original and minified sizes and the percentage saved.
- Copy the minified CSS.
Details
The minifier strips comments and unnecessary whitespace — indentation, line breaks and spaces around punctuation — and leaves selectors, properties and values untouched. The output does the same work in fewer bytes; stylesheets typically shrink by 15–30%. Before and after sizes are shown with the percentage saved, so the effect on a given file is visible before you copy anything.
- Keep the original file as your editable source; minified CSS is output, and editing it directly is error-prone.
- The minifier removes comments and whitespace only — it does not rewrite values or merge rules, so test the result as you would any deployed change.
Common questions
Is my CSS uploaded?
No. Minification runs entirely in your browser.
Is it safe?
It removes comments and unnecessary whitespace only. Always test the output and keep your original.
How much smaller?
Typically 15–30%. The tool shows before/after sizes.