Hire me

CSS Minifier

Compress your stylesheet for faster page loads by removing comments, whitespace and redundant characters.

  • Free, no sign-up
  • Code stays in your browser
  • Works on phone and desktop

Paste or open a CSS file and get a minified version with comments, line breaks, extra spaces and final semicolons removed, plus a before-and-after size comparison.

How to minify CSS

  1. Paste your CSS or open a file.
  2. Press Minify (it also updates as you type).
  3. Copy the result or download it.

Where to use minified CSS

Serve minified CSS in production and keep the readable original for editing. In WordPress, many caching plugins minify automatically, but a hand-minified critical CSS block is useful for inlining in the page head.

Frequently asked questions

Can I un-minify CSS?

Yes. Use the CSS Beautifier to format it again; comments that were removed cannot be restored.

Updated October 2026 · Built and tested by Sharjeel Tahir · How our tools are tested