Free · No sign-up · Runs in browser
CSS Minifier
Strip comments, whitespace, redundant semicolons, and shorten colors in CSS. 100% client-side.
CSS Input
Minified
// Minified CSS will appear here…
CSS Minifier
Shrink CSS output for faster page loads. Strips comments, removes unnecessary whitespace and semicolons, converts #ffffff to #fff, strips 0px units from zero values, and leaves selectors and properties intact. Typical savings: 20–40% depending on original formatting.
Common Use Cases
- Pre-compile hand-written CSS before shipping to a CDN
- Inline critical CSS inside
<style>for first paint - Minify Tailwind output when a build step isn't an option
- Compress emailed CSS templates to fit size budgets
FAQ
Does it break selectors with pseudo-classes?
No. Colons inside selectors (a:hover, :first-child) are preserved.
Is my CSS sent anywhere?
No. Minification happens locally.
Related
Pretty-print instead with the CSS Formatter.
Smart shortening
6-digit → 3-digit hex, 0px → 0, 0.5 → .5.
Instant
Minification runs in milliseconds in your browser.
Fully private
Styles never leave your device.