Home › CSS Minifier — Free Online Tool | Wgajaa
# CSS Minifier
Strip whitespace and comments from stylesheets. Free, private and instant — nothing you enter is sent anywhere.
About this tool
Wgajaa's CSS minifier strips whitespace and comments from stylesheets in your browser, producing a compact version ready for production. Paste a whole stylesheet or a single rule and get a smaller file with identical rules — no build step required.
The minifier is conservative: it collapses runs of whitespace, removes /* comments */, trims spaces around braces, colons and semicolons, and drops the final semicolon of each block. It never rewrites values or reorders rules, so the output behaves exactly like the input, only smaller.
How this tool works
Everything runs locally in your browser — no data is sent to any server. Here is exactly how it works:
- Paste your CSS into the left textarea
- The minified output builds automatically as you type
- Watch the status line for the size reduction and a brace-balance warning
- Copy the compact CSS with one click
Frequently Asked Questions
The tool only removes whitespace and comments — it never alters selectors or values. For most stylesheets the result is safe. If the brace-balance warning appears, your input had a syntax problem worth fixing first.
Typically 20–40% for hand-written CSS, since most of the bytes are indentation and comments. Pre-minified or already compact files shrink far less.
No. Unlike full build pipelines, this minifier performs no optimization beyond whitespace and comments, so nothing can break — a deliberate trade-off for a quick, zero-risk pass.
Not directly — those languages need compilation first. Paste the compiled CSS output of your Sass or Less build and minify that.
No. The minification is a few regular expressions running locally. Nothing is uploaded, stored or logged.