CSS Minifier
Paste your CSS to minify and compress it. Removes comments, redundant whitespace and unnecessary characters. Runs entirely in your browser.
Input CSS
Minified Output
About the CSS Minifier
CSS minification reduces the file size of your stylesheets by removing characters that are not required for the CSS to work — comments, extra whitespace, and redundant syntax. Smaller files load faster, improving page speed and Core Web Vitals scores.
What gets removed
- Single-line (
// …) and multi-line (/* … */) comments - Unnecessary whitespace, tabs and newlines
- Leading zeros in decimal values (e.g.
0.5em→.5em) - Redundant semicolons before closing braces
- Shortening hex colours where possible (
#ffffff→#fff)
Privacy
All processing runs locally in your browser. Your CSS is never uploaded anywhere.