Code & Data

Minify CSS without rewriting it

Paste CSS to strip everything a browser does not need — whitespace, comments and the final semicolon in each block — and see what it saved. Your declarations are not touched.

or paste your own — nothing is uploaded.

Whitespace, comments and the final semicolon in each block are removed. Colours, shorthands and property order are left exactly as written — a minifier that rewrites your values is not one you can check.

Minified CSS

Paste CSS above and the result appears here.

  • Runs in your browser
  • No account required
  • Free to use

How it works

01

Deliberately conservative

No colour shortening, no shorthand collapsing, no property reordering, no dropping of declarations it judges redundant. Those change what the stylesheet says rather than how it is written, and a minifier that silently rewrites a value is one you cannot use on a stylesheet you did not write yourself.

02

A descendant combinator is a space

Space around a colon, comma or `>` carries nothing and goes. The space in `a b` is a combinator and means "inside", so removing it would change the selector. The distinction is why this collapses whitespace per token rather than across the finished string.

03

Licence comments survive

A comment beginning `/*!` is the convention for a licence header that must not be stripped. Every other comment goes.

What it does

The saving, measured

Bytes before, bytes after, and the percentage — so the trade is visible rather than assumed.

Strings and URIs intact

A `content` string keeps its exact spacing and a base64 data URI comes through unchanged.

Reversible

Nothing is lost but formatting, so running the result back through the formatter gives you readable CSS again.

Runs in your browser

No upload and no account. What you paste in is never sent anywhere.

Practical advice

Getting a better result

  • Minified CSS is for shipping, not for editing. Keep the readable version in version control and minify as a build step.
  • The saving on a typical hand-written stylesheet is 20–30%. Much more than that usually means the file was heavily commented.
  • Gzip or brotli on the server saves more than minification does, and the two compound — do both.

Questions

Things people ask

Why does it not shorten my colours?

Because that changes the declaration rather than the formatting. `#ffffff` and `#fff` are equivalent today, but a minifier that rewrites values is one whose output you have to verify, and the byte saving is small next to what gzip already achieves.

Is it safe on any stylesheet?

It is designed to be. Strings, comments and url() bodies are identified before anything is collapsed, so the constructs that break naive minifiers — a brace in a string, a semicolon in a data URI — are handled. Formatting the output again should give back what you started with.

Who builds these

Free tools by day. Websites that earn their keep by trade.

KuConvert is built by KUDUY, a web design and development agency. From custom WordPress builds to SEO and e-commerce, everything they do is engineered to bring you more qualified traffic and turn it into revenue.

  • Fixed scope, no surprise invoices

    Most sites ship in four to eight weeks with the scope and the price agreed up front.

  • SEO from day one

    Search is designed into the build — structure, schema and Core Web Vitals — not retrofitted.

  • A team, not a ticket queue

    A project manager, a designer and a developer you can actually reach.

Need your whole site to load this fast?

Images are usually the heaviest thing on a page and the easiest win. KUDUY works on site speed, image delivery and Core Web Vitals for teams who would rather not do it by hand.

This tool runs entirely in your browser. Your files are never uploaded.