CSS Minifier
CSS Minifier
Minify CSS by removing comments and unnecessary whitespace. Your strings stay intact, and you can see exactly how many bytes you saved.
About the CSS Minifier
The CSS Minifier shrinks a stylesheet by removing comments and whitespace that browsers do not need, such as spaces around braces, colons, and semicolons. Smaller CSS files download faster, which helps page speed.
The tool is careful with quoted strings: text inside single or double quotes, such as font names and content values, is copied exactly and never changed.
How to use
- Paste your CSS into the input box.
- Click Minify CSS.
- Check the before and after sizes and the percentage saved.
- Copy the result or download it as a .css file.
Key features
- Removes comments and unnecessary whitespace
- Keeps string contents exactly as written
- Removes the last semicolon before a closing brace
- Shows before and after sizes with percentage saved
- Copy and download options
Frequently asked questions
No. Only comments and whitespace that do not affect the meaning are removed, so the styles behave the same way.
Yes. Text inside single or double quotes is left untouched, including spaces inside font names and content strings.
The minifier still processes the text, but it cannot fix broken CSS. Check that your stylesheet is valid before minifying it.
Already compact CSS has little to remove. The biggest savings come from stylesheets with many comments and long lines of indentation.
No. Minifying runs entirely in your browser and your code is not sent to any server.
