CSS Minifier
Compress CSS by removing whitespace and comments for faster load.
Free online tool. No signup required. All processing runs in your browser.
About this tool
Paste CSS to get a single-line (or compact) version. Safe for production when the minifier preserves valid CSS.
What is CSS Minifier?
CSS minification removes comments and unnecessary whitespace from stylesheets to reduce file size and improve load time.
How to use CSS Minifier
- Paste your CSS.
- Click Minify.
- Copy the result for production.
Examples
Example input
.box { color: red; }
/* comment */
.body { margin: 0; }Example output
.box{color:red}.body{margin:0}FAQ
Does it change CSS behavior?
No. It only removes spaces and comments; selectors and rules stay the same.
Can I minify SCSS or Less?
Minify the compiled CSS. Compile SCSS/Less first, then minify the output.