Developer Utilities · Free tool
CSS Minifier
Paste CSS, strip comments and whitespace, and get a smaller minified version. Offline, safe, no ads or sign-ups.
Updated April 2026
What it does
Paste a stylesheet, click Minify, get a smaller version with comments and whitespace stripped. The result is ready to paste into a <style> block, copy into a production build shortcut, or compare against your build tool’s output. Runs in your browser — your CSS never leaves the page.
This is a string-level minifier — it preserves quoted content but doesn’t understand CSS grammar. For a full-optimization pipeline (including color shortening, rule merging, and dead-code removal) a build tool like cssnano or lightningcss is still the right answer.
How to use it
- Paste your CSS into the input textarea.
- Click Minify — the output and savings appear below.
- Copy the result with the Copy button.
- Click Clear to reset.