CSS Minifier
Minify CSS instantly – paste your stylesheet and get compact CSS that loads faster, free in your browser.
The minifier removes comments, line breaks and extra spaces, and drops the last semicolon before a closing brace, so your stylesheet becomes as small as possible without changing what it does.
Processing happens in your browser – nothing is uploaded.
How to use CSS Minifier
Follow the steps below
Paste your CSS into the box above.
Click Minify CSS.
Copy the minified CSS and paste it into your stylesheet or website.
Click Reset to clear the boxes and start again.
Features
- βRemoves comments, line breaks and extra spaces from CSS.
- βRemoves spaces around braces, colons, semicolons and commas.
- βDrops the last semicolon before a closing brace.
- βShows how many characters were saved.
- βCopy the result in one click, with a built-in sample to try first.
Supported formats and limits
Works with normal CSS, including selectors, properties, values, media queries and comments. Keep a copy of your original CSS, because minified CSS is hard to read and edit. There is no file upload and no size limit set by the tool, but very large pastes of hundreds of thousands of characters may be slow in some browsers. The tool runs entirely on your device.
Frequently asked questions
Is the CSS Minifier free?
Yes. It is completely free, with no sign-up, no account and no limits on how often you use it.
Does minifying change how my page looks?
No. Minifying only removes spaces, line breaks and comments. The selectors and property values stay the same, so the page looks the same and loads a little faster.
Can I minify CSS with comments in it?
Yes. Comments are removed during minifying, which is safe because browsers ignore them anyway.
Nextrays