CSS Minifier
Minify or beautify CSS.
Options
Private by design. This tool runs entirely in your browser. Your input is processed on your own device and is not uploaded by DO101.
About the CSS Minifier
Strips comments and unnecessary whitespace to shrink a stylesheet, or reformats a minified one so you can read it. Deliberately conservative — selectors, values and rule order are never rewritten.
How to use it
- 1Paste your CSS.
- 2Choose minify or beautify.
- 3Copy the result and check the size saving.
What you get
- Removes comments and redundant whitespace
- Beautify mode for minified stylesheets
- Before and after sizes
- Never renames or reorders anything
- Runs in your browser
Frequently asked questions
Is it safe on any stylesheet?
It only changes whitespace and comments, so behaviour is preserved. It deliberately does not merge rules or shorten colours, because those transformations can change specificity or rendering.
How much smaller will my CSS be?
Typically 15–30% before gzip. Your server's compression then does most of the remaining work.
Keep going
People who use this tool usually reach for these next.
Shrink HTML by collapsing whitespace and comments.
Format SQL into readable clauses, or minify it.
Strip whitespace from JSON to shrink payloads.
Convert between HEX, RGB, HSL and CMYK — with contrast checks.