How CSS Minification Works
AnyTool minifies CSS with csso, a structural optimizer that goes beyond stripping whitespace and comments — it merges declarations and rules, shortens values (such as rgb to hex), and restructures selectors for materially smaller output. A beautify mode (Prettier-standalone) reformats CSS for readability. The engine is bundled at build time (no runtime CDN) and runs in a Web Worker for large files, with a gzip size estimate computed locally via CompressionStream. Stylesheets are never uploaded.
- csso structural optimizer — rule merging & value shortening
- Beautify/un-minify mode with indentation control
- Live compression stats and real gzip-size estimate
- Runs in a Web Worker; bundled, no runtime CDN
- No upload; works offline
