CSS Minifier
Shrink your CSS files by removing comments and unnecessary whitespace.
Faster-loading stylesheets
CSS files are render-blocking resources: the smaller they are, the sooner the page becomes visible. The CSS Minifier removes comments, indentation and unnecessary whitespace to cut file size.
Safe transformation
The minifier leaves string values alone and never merges tokens in a way that changes meaning, for example inside calc(). Your selectors and values keep working. Important comments starting with /*! (usually licences) are preserved.
Use
A quick solution for WordPress themes, static sites and projects without a build process. Processing happens in your browser.
How to use CSS Minifier
- Paste your CSS code.
- The minified CSS appears instantly.
- Review the size saved.
- Copy the result into your site.
Why use this tool?
Follow PageSpeed Insights' 'Minify CSS' advice without installing a build tool.
FAQ
Are important comments kept?
Yes. Comments starting with /*! (usually licences) are preserved.
Does it remove unused CSS?
No, only whitespace and comments. Removing unused rules needs a tool like PurgeCSS.
Can I minify SCSS or LESS?
Compile them to CSS first; the tool expects standard CSS syntax.
Related tools
HTML Minifier
Safely remove comments and extra whitespace between tags to shrink your HTML.
Open toolJavaScript Minifier
Safely strip comments and indentation from JavaScript for smaller files.
Open toolCSS Gradient Generator
Design linear and radial CSS gradients with multiple colour stops and a live preview.
Open toolBox Shadow Generator
Create CSS box-shadow values with offset, blur, spread, colour and inset controls.
Open tool