Home › Minifiers & Beautifiers › CSS Minifier
CSS Minifier
Shrink a stylesheet by removing comments and every space that CSS does not need, while protecting calc() expressions that require their spaces.
How to use the CSS Minifier
- Paste your CSS into the input box.
- Press Minify.
- Copy or download the compressed stylesheet.
About this tool
Most stylesheets carry 20–30% dead weight in comments and formatting whitespace. This minifier removes both, collapses what remains, and drops the redundant semicolon before each closing brace. Spaces inside calc() are preserved on purpose — CSS requires them around + and − there, and removing them silently breaks layouts.