CSS Minifier
100% FreeCompress CSS using Yandex's csso engine — removes whitespace, comments, merges rules, dedupes selectors, compresses colors.
Minified CSS appears here…Embed This Tool
Easy to EmbedAdd CSS Minifier to your website or blog in seconds.
- Responsive design
- Lightweight & fast
- No backend required
- Always up-to-date
<iframe
src="https://tools.town/embed/css-minifier/"
width="100%"
height="600"
style="border:none; border-radius:12px;"
loading="lazy"
title="CSS Minifier">
</iframe> Advertisement
How to Use
- 1 Paste CSS into the input
- 2 Toggle 'Restructure' for full optimisation (selector merge + dedupe)
- 3 Output updates instantly with byte savings shown
- 4 Copy minified CSS for production
Features
- Whitespace + comment removal
- Color compression (#ffffff → #fff)
- Selector deduplication
- Property merging within rules
- Restructure toggle for safe vs aggressive optimisation
- 100% client-side
Why it Matters
Every kilobyte of CSS slows the first paint. csso is one of the most aggressive minifiers — used by Yandex, Webpack plugins, and SVGO. Running it in-browser without a build step is useful for quick optimisations or when you can't add a build pipeline.
Use Cases
Pre-Production Squeeze
Squeeze the last few KB out of a stylesheet before shipping
CMS / WordPress
Minify hand-written CSS in WP custom-CSS panels
CDN Optimisation
Pre-minify static CSS before uploading to a CDN
Frequently Asked Questions
What's the difference between minify and restructure?
Will restructure break my CSS?
Is this faster than running PostCSS + cssnano?
Related Tools You Might Like
CSS Beautifier
Pretty-print minified CSS — preserves comments, parens (calc/url/var), string literals; canonical 'prop: value;' formatting.
JSON Formatter
Beautify, minify, and sort-key JSON in real time. Surfaces parse errors with line + column. 100% client-side.
JSON Validator
Validate JSON in real time with structural diagnostics — node count, max depth, type counts, and precise parse-error location.
Regex Tester
Live regex testing with highlighted matches, capture groups, named groups, and JS-engine flag toggles (i/m/s/u/y).
HTML Formatter
Format and prettify HTML markup for readability.