CSS Compressor
Compress CSS online — remove comments, whitespace, and redundant rules with nine toggleable options on AboveTool.
CSS Compressor
Compress CSS by removing whitespace, comments, redundant semicolons, and applying shorthand optimizations. Runs entirely in your browser — your CSS never leaves your device.
Any CSS — stylesheets, component styles, email CSS, frameworks
Read-only — copy or download the compressed output
Removes comments, collapses whitespace, strips trailing semicolons, normalises hex colors, shortens zero values, and applies font-weight shorthand. Use the options panel to enable or disable individual transformations. All processing happens locally — your CSS never leaves your browser.
About CSS Compressor
CSS Compressor minifies CSS by removing comments, collapsing whitespace, stripping trailing semicolons, normalising hex colors, and applying shorthand optimisations. Toggle nine compression rules individually. All processing happens locally at abovetool.com — your CSS never leaves your device.
How to use
- Paste CSS or upload a .css file in the left panel.
- Toggle compression options — 8 of 9 rules enabled by default.
- Click Compress CSS and copy or download the minified output.
Features
- Nine toggleable compression rules (8/9 enabled by default)
- Side-by-side CSS input and compressed output
- Upload .css files or paste stylesheets directly
- All processing runs locally in your browser
Frequently asked questions
What CSS optimisations are applied?
Comment removal, whitespace collapse, trailing semicolon stripping, empty rule removal, hex normalisation, zero shortening, zero-unit removal, font-weight shorthand, and optional rule merging.
Can I disable individual rules?
Yes. Open Compression options and toggle any of the nine rules. The badge shows how many are enabled (8/9 by default).
Is my CSS uploaded to a server?
No. All minification runs locally in JavaScript — your CSS never leaves your device.
Is CSS Compressor free on AboveTool?
Yes. CSS Compressor is free to use on abovetool.com with no account required.