CSS minifier
Shrink CSS by removing comments, line breaks and spare spaces, with strings left untouched.
Missing a feature or found a bug in CSS minifier? Tell me on X (@_andrewtran) or by email.
How to use CSS minifier
- Paste your CSS in the input pane.
- Read the smaller result and the size saved.
- Copy it or download it as a file.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Are licence comments kept?
Yes. A comment whose first character after the opening is an exclamation mark is kept.
Where are the other options?
This page opens CSS formatter with one choice already made. Every option of that tool is still here, and its own page says more about it.
Related tools
CSS formatter
Beautify CSS rules and media queries, or minify CSS with strings and comments handled safely.JSON viewer
Explore JSON as a collapsible tree, with counts for every object and list.Mock data generator
Generate made-up users, orders and products as JSON, CSV or SQL, from a schema you can edit.Gitignore generator
Build a .gitignore by combining templates for your languages, frameworks, editors and system.