CSS Minifier
Compress stylesheets by stripping comments and whitespace and applying safe shortenings. Your code is processed as text in your browser — it is never executed or uploaded.
Loading tool…
Need help with this tool or found a problem? WhatsApp support Email
What does the CSS Minifier do?
The minifier protects strings and /*! license */ comments, then removes other comments, collapses whitespace, removes spaces around braces, colons, semicolons and combinators, drops the last semicolon in each block, shortens zero values like 0px to 0 and six-digit colours like #ffffff to #fff.
Spaces inside calc() expressions are kept, because calc(100% - 2rem) requires them.
How to use the CSS Minifier
- Paste your CSS.
- Copy or download the minified stylesheet.
- Check the size reduction.
Examples
Before/after
.card { padding: 0px 16px; color: #ffffff; } → .card{padding:0 16px;color:#fff}
Common use cases
- Optimising stylesheets for production
- Inlining critical CSS
- Reducing theme file sizes
Features and benefits
- Private by design — your data is processed on your device and never uploaded.
- Free with no account, no watermark and no usage limits.
- Works on phones, tablets and desktops in any modern browser.
Limitations to know
- It does not merge duplicate rules or remove unused CSS.
Frequently asked questions
Is it safe for all CSS?
It uses conservative transformations. Test critical pages after minifying.
Does it keep my license comment?
Yes, comments starting with /*! are kept.
Can I reverse it?
Use the CSS Formatter to make minified CSS readable.
Related tools
All developer toolsCSS Formatter
Beautify minified CSS into readable rules.
HTML Minifier
Minify HTML by removing comments and extra whitespace.
JavaScript Minifier
Remove comments and whitespace from JavaScript safely.
PX to REM Converter
Convert pixels to rem units for responsive CSS.
Converter ToolsJSON Minifier
Minify JSON by removing whitespace.
Image Compressor
Reduce JPG, PNG and WebP file size in your browser with quality control.
Image Tools