109 · Developer Tools

CSS Minifier

Paste CSS to remove everything the browser doesn’t need and make your stylesheet smaller.

CSS Minifier

How to use the css minifier

  1. Paste your CSS.
  2. Copy the minified result.
  3. Keep your original for editing.

Safe by design

The minifier only removes whitespace and comments and the last semicolon in each block. It never renames or merges rules, so the result behaves exactly like your original. Spaces inside calc() are kept because they are required there.

Examples

127 bytes

92 bytes, 28% smaller

a { color : red ; }

a{color:red}

Questions

Should I also gzip my CSS?

Yes. Minifying and server compression work together. Most hosting compresses text files automatically.

Is my data uploaded?

No. Everything runs in your browser, so what you paste never leaves your device.