iLoveMyFile

CSS Minifier

Shrink CSS by removing comments and whitespace and shortening values, without changing the order of your rules.

Input

Paste CSS above, or upload a .css file.

How to use CSS Minifier

  1. Paste your CSS or upload a file.
  2. Click Minify CSS.
  3. Copy the result or download it, and keep your original as the version you edit.

Frequently asked questions

Is it safe to minify CSS?

Yes. This tool removes comments and spacing and shortens values such as #ffffff to #fff. It does not merge or reorder rules, so the styles apply exactly as before.

Why minify CSS?

Smaller files download faster, which improves page speed, especially on phones.

What if my CSS has a mistake?

The tool reports the problem and the line it is near, instead of producing broken output.

Is my text uploaded to a server?

No. This tool runs entirely in your browser, so what you paste never leaves your device.