CSS Minifier
Strip comments and whitespace to shrink a stylesheet.
What this tool does
Ship smaller stylesheets. This tool strips unnecessary whitespace and comments from your CSS, reducing file size without changing how the styles work — a simple step before publishing.
When to use it
- You are preparing CSS for production and want a smaller file.
- You want to reduce load time on a site with large stylesheets.
- You are comparing how much minification saves.
- You need a compact version of a CSS snippet to paste somewhere.
How to understand this tool
.container{color:red;padding:10px}The output removes comments, indentation and redundant spaces while keeping the CSS valid. That makes it hard to edit later, so keep the readable source and minify a copy at build time. A missing semicolon is much harder to find once everything sits on one line.
What it will not do
- It does not merge rules, remove unused selectors or autoprefix.
- It cannot guarantee the same result as a full build tool on unusual syntax.
Questions people ask
Will minification change my design?
It should not. If something breaks, it is usually due to unusual syntax or a missing semicolon.
How much does it save?
It depends on how much whitespace and commenting your CSS had — often a noticeable reduction.
One thing worth knowing
This is a lightweight browser tool — for production-critical work, pair it with your normal linters and tests.