CSS Minifier
Minify CSS to cut stylesheet weight: whitespace and comments are removed and values are shortened where it’s safe. Smaller CSS downloads faster and renders sooner. It all runs in your browser.
96 → 40 bytes · 58% smaller
How to use it
- 1Paste CSS
Paste your stylesheet into the input box.
- 2See the minified output
The compressed CSS appears live, with the size saved shown.
- 3Copy
Copy the minified CSS with one click.
Structural minification, not just whitespace
Beyond stripping spaces and comments, the minifier merges and shortens values — collapsing 0px 0px 0px 0px to 0, trimming redundant units, and compacting colours — while keeping your styles equivalent.
The result is byte-for-byte smaller CSS that behaves identically, ready to paste into production or a build step.
Frequently asked questions
Will minifying change how my styles look?
No. The minifier only removes redundancy and shortens equivalent values — the rendered result is the same.
Is my CSS uploaded anywhere?
No. Minification runs entirely in your browser; your stylesheet never leaves your device.
Are comments removed?
Yes. Comments are stripped to reduce size.
Related tools
HTML Minifier
Minify HTML by removing comments and collapsing whitespace, while keeping <pre>, <script> and <style> intact. Runs entirely in your browser — nothing is uploaded.
SVG Optimizer
Optimize and minify SVG files in your browser with SVGO. Strip comments, metadata and cruft to shrink file size while keeping the image sharp — no upload, no sign-up.
Diff Checker
Compare two blocks of text and see exactly what changed, line by line, in your browser. Highlights additions and removals with an ignore-whitespace option. Nothing is uploaded.