mAIbmAIbTools

CSS Minifier

Shrink your CSS by removing comments and unneeded whitespace.

How to use

  1. Paste your CSS.
  2. It's minified instantly with a size comparison.
  3. Copy the minified CSS.

How the CSS Minifier works

Strips comments, whitespace and redundancy from CSS to reduce file size and shorten render-blocking download time.

Comments are removed, runs of whitespace collapse to single characters or nothing, the final semicolon in each rule is dropped, and zero units are shortened.

typical saving: 20–40% before gzip

Worked example

A rule written across four indented lines with a comment collapses to a single line of about half the characters.

Things worth knowing

Frequently asked questions

Is the output safe to use?

Yes — it removes comments and whitespace without changing your rules.

Does it minify JS too?

This tool targets CSS; minifying JavaScript safely needs a dedicated tool.

Does minifying change how my CSS behaves?

It should not. Only insignificant whitespace and comments are removed; the rules are unchanged.

Is minifying still worth it with gzip?

Yes. The two work on different redundancies, and together they beat either alone.