Skip to main navigation Skip to main content Skip to page footer

CSS Minifier

Paste or upload your CSS and shrink it down for production — strip comments and whitespace, no upload required, all in your browser.

Drop a .css file here
or choose a file

Format
Comments

Result

Original
Minified
Saved

  1. 1

    Paste or upload your CSS

    Drop in a .css file, or paste the code straight into the box.

  2. 2

    Choose your options

    Pick the output format and whether to keep license comments.

  3. 3

    CSS gets minified

    Comments and unnecessary whitespace are stripped, and you see exactly how much was saved.

  4. 4

    Copy or download

    Copy the minified code, or download it as a ready-to-use file.


FREQUENTLY ASKED QUESTIONS

No. Only comments, whitespace and line breaks are removed — every selector, rule and value stays exactly as you wrote it, so the styling behaves identically.

No. Everything runs locally in your browser — your code is never sent to a server.

"All in one line" gives you the smallest possible file, ideal for production. "One rule per line" keeps the same minification but stays easier to read or diff, which is handy while you're still testing.

If your CSS includes a license notice wrapped in /*! ... */, keeping it preserves attribution some licenses require — that's the one type of comment the "keep" option leaves in, everything else is still stripped.


Need more than a free tool?

If you're ready for a real project — website, branding, or something custom — let's talk.

Get in touch