CSS Minifier
Paste your CSS and instantly get a minified version with comments and whitespace removed.
Original CSS
0 bytes
Minified CSS
0 bytes
—
Original
—
Minified
—
Saved
0% reduction
Copied!
Summary
Paste your CSS and instantly get a minified version with comments and whitespace removed.
How it works
- Paste your CSS source code into the input panel on the left.
- The minifier instantly strips block comments (/* ... */) and line whitespace.
- Redundant spaces around selectors, properties, colons, and semicolons are removed.
- The last semicolon before a closing brace is dropped (valid CSS shorthand).
- The minified output appears in the right panel with byte savings displayed.
- Click "Copy Minified CSS" to copy the result to your clipboard.
Use cases
- Reduce CSS payload before deploying a production website.
- Quickly compress a stylesheet when a build tool is not available.
- Compare original and minified sizes to estimate bandwidth savings.
- Strip development comments from a CSS file before shipping.
- Minify third-party CSS that lacks a pre-built minified version.
- Optimize CSS for embedding in an email template.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu