Paste your stylesheet or open a .css file and get a minified version instantly. The minifier removes comments, line breaks and unnecessary spaces and drops the last semicolon in each block, while leaving the contents of strings and the spaces that calc() needs untouched.
It shows the original size, the minified size and the percentage saved. License comments that start with /*! can be kept, as many open-source licenses require. Everything runs in your browser.
How to use the CSS Minifier tool
- Paste CSS or open a .css file.
- Choose whether to keep /*! license comments.
- Check the sizes and the percentage saved.
- Copy the minified CSS or download it as a file.
Why use ToolOrca CSS Minifier
- Removes comments and whitespace
- Keeps strings and calc() spacing safe
- Optional /*! license comments
- Shows bytes and percentage saved
- Open and download files
- No upload, works offline
Does minifying CSS make a difference?
Minifying usually removes 15–30% of a hand-written stylesheet, and more if it has many comments. Smaller CSS downloads faster and blocks rendering for less time, which helps Core Web Vitals and page speed scores. Combine it with gzip or Brotli compression on your server for the biggest gain.
Keep your original, readable file for editing and publish the minified copy, often named style.min.css.
Frequently asked questions
Will minifying break my CSS?
This minifier only removes comments and whitespace that browsers ignore. It does not rename, merge or reorder rules, so the result behaves the same as the original.
Why is a space still there in calc()?
Inside calc(), the spaces around + and − are required. Removing them would break the rule, so they are kept.
Can I un-minify CSS?
Comments removed by minifying cannot be recovered, so always keep your original file.
Can I minify HTML too?
Yes, use the HTML minifier.