CSS Minifier

Shrink your CSS files by removing comments and unnecessary whitespace.

Runs in your browser Free
Processed locally in your browser.

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

  1. Paste your CSS code.
  2. The minified CSS appears instantly.
  3. Review the size saved.
  4. 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