Developer tools
CSS Minifier
Strip comments and whitespace from CSS to shrink the size of stylesheets.
191 B
139 B−27.2%
How it works
- 1Paste your CSS source.
- 2See the minified output and the percent saved on bytes.
- 3Copy and ship.
Use cases
- Compress hand-written CSS for production.
- Shrink Tailwind-extracted CSS before serving.
- Get a quick "how much smaller could this be?" estimate.
Frequently asked questions
Is this lossy?
No — only whitespace and comments are removed. Selectors, properties, and values are preserved byte-for-byte.
Does it rewrite shorthand or merge selectors?
No. That requires a real parser and risks changing semantics. This tool only does the safe transforms.
Are /*! important comments preserved?
Yes. Comments starting with /*! (the convention for license headers) are kept.
Read the guide
How to minify CSS (and what gets stripped)
The honest pitch for a CSS minifier — what it actually does, what the byte savings really look like, and when you should not bother.