CSS Minifier Online
Compress HTML, CSS, and JavaScript code instantly. Free, fast, and runs 100% in your browser.
Large CSS files slow down page rendering and hurt Core Web Vitals scores. This CSS minifier strips comments, collapses whitespace, and shortens color values — all inside your browser. No data is uploaded. Simply paste your stylesheet, click Minify, and copy the compressed output ready for production.
- Powered by Terser — the same engine used by Webpack, Vite & Rollup
- Full AST parsing — safely handles strings, template literals, regex & all ES2024+ syntax
- Dead code elimination, constant folding & optional variable mangling
- Syntax errors are caught and reported with line numbers
Feature Overview
| Feature | Details |
|---|---|
| Whitespace removal | ✓ |
| Comment stripping | ✓ |
| Color shortening | ✓ |
| Output size reduction | 20-50% |
| Privacy | 100% client-side |
Frequently Asked Questions
Does minification affect CSS specificity?
No. Only whitespace and comments are removed. Selectors, properties, and values remain identical.
Can I minify multiple CSS files?
Paste all your CSS into the editor. The tool processes the entire input as one block. For individual file control, minify each file separately.
Is the output production-ready?
Yes. The minified CSS is valid and ready for deployment. Many teams pipe this output directly into their build pipeline.