CSS Minifier

Compress stylesheets by stripping comments and whitespace and applying safe shortenings. Your code is processed as text in your browser — it is never executed or uploaded.

FreeNo sign-upRuns in your browserMobile-friendly

Loading tool…

Need help with this tool or found a problem? WhatsApp support Email

What does the CSS Minifier do?

The minifier protects strings and /*! license */ comments, then removes other comments, collapses whitespace, removes spaces around braces, colons, semicolons and combinators, drops the last semicolon in each block, shortens zero values like 0px to 0 and six-digit colours like #ffffff to #fff.

Spaces inside calc() expressions are kept, because calc(100% - 2rem) requires them.

How to use the CSS Minifier

  1. Paste your CSS.
  2. Copy or download the minified stylesheet.
  3. Check the size reduction.

Examples

Before/after

.card { padding: 0px 16px; color: #ffffff; } → .card{padding:0 16px;color:#fff}

Common use cases

  • Optimising stylesheets for production
  • Inlining critical CSS
  • Reducing theme file sizes

Features and benefits

  • Private by design — your data is processed on your device and never uploaded.
  • Free with no account, no watermark and no usage limits.
  • Works on phones, tablets and desktops in any modern browser.

Limitations to know

  • It does not merge duplicate rules or remove unused CSS.

Frequently asked questions

Is it safe for all CSS?

It uses conservative transformations. Test critical pages after minifying.

Does it keep my license comment?

Yes, comments starting with /*! are kept.

Can I reverse it?

Use the CSS Formatter to make minified CSS readable.

Embed this tool on your website

Add the free CSS Minifier to your blog or website. Paste the code into your page’s HTML; the tool runs in your visitors’ browsers and stays up to date automatically. Please keep the credit line below the tool.

Free to use on any website. The tool runs inside an iframe served from viptools.pk; nothing your visitors type is sent to your site or ours. Preview the embedded version.