Home › Image Tools › CSS Minifier
Shrink your stylesheets by stripping comments and whitespace — with an optional aggressive mode for even smaller files. 100% client-side.
Crop images visually with aspect-ratio presets and drag handles — export as PNG, JPG, or WebP, all offline.
Paste or drop
Paste your CSS or drop up to 15 .css files. Choose Standard or Aggressive minification.
Minify
Click Minify. Comments and redundant whitespace are removed safely — strings, selectors, and calc() expressions stay intact.
Copy or download
See exactly how many bytes you saved, then copy or download the minified .css.
Yes. The minifier preserves the meaning of your styles — it protects string literals and keeps required spaces inside calc() and media queries, so your layout doesn’t break.
Aggressive mode additionally shortens hex colours (#ffffff → #fff), removes units from zero values (0px → 0), and trims leading zeros (0.5 → .5) for maximum compression.
It depends on how many comments and how much formatting your source has — savings of 20–60% are common. The tool shows the exact bytes and percentage saved.
No. Minification runs entirely in your browser. Your stylesheets are never transmitted or stored.
JavaScript Minifier
Fast And Efficient JavaScript Minification Tool
HTML Formatter / Beautifier
Format HTML Code In Seconds Online
JSON Formatter
Instant JSON Formatting And Validation Tool
Base64 Encoder / Decoder
Encode And Decode Base64 Data Instantly
Minifying CSS removes everything a browser doesn’t need — comments, line breaks, and excess spaces — so stylesheets download and parse faster. This tool does that safely, using a character-level parser that respects string literals and preserves the spaces required inside expressions like calc(). An optional aggressive mode squeezes out further bytes with hex-colour and zero-unit optimisations, and a live readout shows exactly how much you saved.
- Safe by default — string literals and calc() spacing are preserved, so output never breaks.
- Aggressive option — shorten hex colours, drop zero units, and trim leading zeros on demand.
- Real savings shown — see bytes and percentage reduced after every run.
- Batch minify — process up to 15 stylesheets at once with per-file download.
- No build step — instant results with nothing to install.
The CSS minifier is fully client-side. Your stylesheets are parsed and compressed in-browser with zero uploads, no logging, and no third-party services — safe for proprietary design systems and unreleased themes.