CSS Minifier
Shrink stylesheets by removing comments and whitespace.
Input
This tool runs entirely in your browser. The data you paste or load is never uploaded.
Result
Enter your input, then run the tool.
About this tool
Removes CSS comments and unnecessary whitespace, keeping quoted strings and calc() expressions intact. The result panel shows the size saved so you can judge the impact before shipping the stylesheet.
How to use it
- Paste the CSS you want to compact.
- Press Minify CSS.
- Copy the result or download it as a .css file.
Frequently asked questions
Does it rename classes or merge rules?
No. It only removes comments and whitespace, which keeps the output predictable and safe.
Why is a space kept in media queries?
Spaces that separate tokens, such as screen and (min-width: 600px), are semantically required and are preserved.
Keep going
Related tools
CSS Formatter
Expand compressed CSS into readable rules.
HTML Minifier
Remove comments and redundant whitespace from HTML.
JavaScript Minifier
Strip comments and blank lines from JavaScript safely.
JSON Formatter
Pretty-print compact or broken JSON with a readable indentation.
JSON Validator
Check JSON syntax and see exactly where it breaks.
JSON Minifier
Strip whitespace from JSON to shrink payloads.