CSS Minifier
Remove unnecessary spacing from CSS while keeping values and selectors intact.
Runs on your device. Nothing you add is uploaded.
How to use CSS Minifier
- Paste the CSS source.
- Review the compact stylesheet.
- Copy the output.
Questions
What does the tool change?
Ordinary comments are removed. Comments beginning with /*! are kept.
Where is my input processed?
On your device. The tool does not upload the input or its result.
How this works
Uses a CSS Tree parser and serializer to reduce unnecessary token spacing.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy
Related tools
More in DeveloperHTML Formatter
Indent HTML markup and lay out attributes and elements consistently.
CSS Formatter
Indent CSS selectors and declarations so a stylesheet is easier to read.
SQL Formatter
Format SQL statements for the database dialect you use.
JSON Formatter
Indent JSON so objects and arrays are easy to read.