CSS Minifier
Minify CSS by stripping comments and whitespace and shortening values. Shows original size, minified size and savings.
About CSS Minifier
Remove comments, indentation and redundant characters from a stylesheet so it downloads faster. CSS is render-blocking, meaning the browser will not paint until it has parsed your stylesheet, so every byte removed here moves your First Contentful Paint earlier.
How to use it
- Paste your CSS.
- Select the optimisations you want.
- Minify and review the savings.
- Copy or download the result.
Frequently asked questions
Will minifying break my CSS?
No. Only insignificant whitespace and comments are removed. Selectors, declarations and cascade order are untouched, so the computed styles are identical.
Are my /*! */ licence comments kept?
Yes. Comments starting with an exclamation mark are the convention for licence headers and are preserved when the option is enabled.
Does this remove unused CSS?
No — that requires analysing your HTML and JavaScript. This tool only compresses what you give it.
Trending guides
In-depth reads that go beyond the calculator.
- Trending6 min read
SIP Calculator guide
A Systematic Investment Plan is a standing instruction to put a fixed amount into a mutual fund on the same date each month. That is the whole idea. It is not a product you buy, not an asset class, and not a scheme with a guaranteed rate — it is a schedule. The returns come from whatever the underlying fund holds.
- 3 min read
BMI Calculator guide
Body Mass Index is weight in kilograms divided by height in metres squared. That is the whole calculation. It was devised in the 1830s by the Belgian statistician Adolphe Quetelet, who was explicitly describing populations rather than assessing individuals — a distinction that matters enormously and gets lost constantly.
- 3 min read
Percentage Calculator guide
Almost every percentage problem is one of four shapes. Knowing which one you are looking at is most of the work, because each has a different formula and mixing them up is where the wrong answers come from.