CSS Minifier
Minify CSS to cut file size and speed up your site. Free, private and instant.
How to use the CSS Minifier
- Paste your CSS into the box.
- The minified CSS appears with the size before and after, as you type. Use Copy or Download .txt to save it.
Example
Worked example (run through this tool)
- Input: A comment, then body with margin: 0 and color: #333333 on separate lines (51 B)
- Result: body{margin:0;color:#333333} (28 B, 45% saved)
Limitations
- The minifier uses text rules, not a CSS parser. Tested: a :hover becomes a:hover, which changes what the selector means, and spaces inside a quoted string collapse ("a b" became "a b").
- Colours and values are not shortened or merged.
- Always test the minified file in your site before deploying.
About this tool
Remove comments, whitespace and redundant semicolons from CSS. Smaller stylesheets load faster and help Core Web Vitals.
CSS Minifier is part of ToolStack Hub's Developer Tools. It runs entirely in your browser, which keeps your data private and makes results instant. There is nothing to install and no account to create. There is no usage limit.
Frequently asked questions
Is the CSS Minifier free?
Yes. CSS Minifier is completely free with no sign-up, limits or watermarks.
Is my data private when I use the CSS Minifier?
Yes. It runs in your browser, so your input is not uploaded to our servers.
Does it work on mobile?
Yes. ToolStack Hub tools work on phones, tablets and desktop browsers.
Keep going
Need this automated for your business?
Vantalume builds custom AI and web automation workflows so your team can stop doing repetitive work.