VulnerabilityTools Free scan

CSS Minifier Online

Shrink your stylesheets: comments and whitespace stripped, styles untouched.

Formatters & MinifiersFree · no signupRuns in your browser
0Before (bytes)
0After (bytes)
0%Saved

About this tool

The CSS minifier removes comments, collapses whitespace and drops redundant semicolons to produce the smallest valid stylesheet. Strings (like url("...") and content values) are protected, and spaces that CSS needs, inside calc(), between selector parts and in media queries, are kept, so nothing breaks.

Smaller CSS means faster page loads, one of the easiest front-end wins there is.

How to use

  • 1. Paste your CSS.
  • 2. Click Minify CSS.
  • 3. Copy or download the compressed output for production.

Frequently asked questions

Is the CSS minifier free?

Yes, unlimited, no signup.

Will it break my CSS?

No. Comments and whitespace are removed only where safe; quoted strings, url() values and the spaces calc() needs around + and - are preserved.

Does it handle @media queries?

Yes, at-rules, media queries and keyframes minify normally.

Is my CSS uploaded anywhere?

No, minification runs entirely in your browser.

Is your website secure? Run the free 7-section scan: vulnerabilities, malware, headers, SEO and speed.

Scan my website

Related tools

More from Formatters & Minifiers and Developer.

All 98 tools →