CSS Minifier Online
Shrink a stylesheet without changing how it renders. Nothing is uploaded or stored.
Minify
Paste CSS first.
Result
How the minifier works
Removed. Comments (unless they are licence comments you asked to keep), and whitespace that CSS does not need.
Kept. The spaces calc() needs around + and −, spaces inside strings and url(...), and the space between values such as "0 auto".
Shortened. #ffffff becomes #fff, 0px becomes 0, 0.5 becomes .5.
Local only. All work happens in your browser. Nothing is uploaded, stored or shared.
How to use
- Enter your details in the boxes above: CSS, Or upload a .css file, Keep the final semicolon before }.
- Use the css minifier online controls to adjust any options the tool offers.
- Press Load example or change a value, and the result updates on the page.
- Check the result, then copy, download or print it using the buttons shown, if the tool offers them.
About this tool
This css minifier online is a free tool that works directly in your browser, with no sign-up and nothing to install. Comments (unless they are licence comments you asked to keep), and whitespace that CSS does not need. The spaces calc() needs around + and −, spaces inside strings and url(...), and the space between values such as "0 auto". #ffffff becomes #fff, 0px becomes 0, 0.5 becomes .5. People search for it as "css minifier online free", "best css minifier", "html css minifier online", and this page covers those uses in one place. Because everything runs on your own device, your input is not uploaded to a server, which keeps the tool fast and private. It is part of the Developer Tools collection on 99plusfreetools, so related tools are one click away below.
Frequently asked questions
Is this css minifier free?
Yes. This css minifier online free tool costs nothing and needs no account. Open the page, enter your input and the result appears at once, with no limits on normal use.
Do I need to sign up to use the CSS Minifier?
No sign-up is needed. The tool runs in your browser and your input is never uploaded, stored or shared, so you can use it privately in seconds.
How do I use this css minifier online?
Follow the short steps above: enter your details in the boxes, adjust any options, and read the result on the page. Most results can then be copied or downloaded with the buttons shown.
What should I know about removed?
Comments (unless they are licence comments you asked to keep), and whitespace that CSS does not need. This is handled automatically by the CSS Minifier, so you do not need to work it out by hand.
What should I know about kept?
The spaces calc() needs around + and −, spaces inside strings and url(...), and the space between values such as "0 auto". This is handled automatically by the CSS Minifier, so you do not need to work it out by hand.
Related tools
All tools — browse all 200 free tools on the homepage.