CSS Minifier
Compress CSS by removing comments and unnecessary whitespace.
Input
Result
How to use
How to minify CSS
Press Minify to remove comments and collapse whitespace.
- Paste CSS into the input editor.
- Press Minify.
- Copy the compressed stylesheet.
Frequently asked questions
Are vendor prefixes kept?
Yes, all declarations are preserved, only whitespace and comments are removed.
Does it break calc expressions?
No, whitespace inside calc and similar functions is protected.
Related tools
CSS Formatter
Beautify CSS with one property per line and consistent indentation.
HTML Minifier
Reduce HTML size by collapsing whitespace and removing unnecessary characters.
JavaScript Minifier
Reduce JavaScript size by removing comments and unnecessary whitespace.
HTML Formatter
Beautify HTML with consistent indentation while keeping inline and void elements correct.
JavaScript Formatter
Beautify JavaScript with proper indentation, spacing and line breaks.
HTML Escape & Unescape
Escape text for safe HTML output or decode HTML entities back to readable characters.