CSS Minifier
Minify your CSS files for faster load times.
How to use
Enter your input in the text area provided and adjust any settings if available.
- Enter your input in the text area provided.
- Adjust any settings or options if available.
- The results will be generated automatically or upon clicking the action button.
- Copy the result to your clipboard using the copy button.
About CSS Minifier
CSS Minifier strips comments and collapses unnecessary whitespace and spacing around selectors and declarations to reduce a stylesheet's file size.
Basic vs Build-Tool Minification
This tool strips comments, collapses whitespace, and removes unnecessary spacing around selectors and declarations — the parts of a stylesheet that exist for human readability rather than for the browser. It doesn't go further than that: a build-tool minifier like cssnano can also merge duplicate rules, shorten color values, and drop redundant units, none of which this tool attempts. For cleaning up a hand-written or exported stylesheet before a quick deploy, that's usually enough; a larger codebase with a real build step will get more out of a dedicated minifier.
Common Use Cases
- Shrinking a hand-written stylesheet before deploying a small static site.
- Cleaning up CSS pasted from a design export or generator that includes excessive whitespace.