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.
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.
Paste CSS above and the result appears here.
- Runs in your browser
- No account required
- Free to use
How it works
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.
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.
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.
Related tools
JSON Formatter
Format and minify JSON, with errors that name the line.
Runs entirely in your browser
Open toolJSON Validator
Check JSON and get the line, column and cause of any error.
Runs entirely in your browser
Open toolJSON Viewer
Explore JSON as a collapsible tree instead of scrolling it.
Runs entirely in your browser
Open toolJSON to CSV
Turn an array of objects into a spreadsheet-ready CSV.
Runs entirely in your browser
Open toolWho 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.
Web Design
Custom, conversion-focused web design that captivates visitors and turns them into paying customers. Mobile-first, fast, and built to rank.
Web Development
Custom WordPress websites built with clean code, blazing-fast performance (Core Web Vitals optimised), and enterprise-grade security.
E-Commerce
Online stores that convert visitors to customers with seamless shopping experiences.
SEO
Technical SEO, keyword research, on-page optimisation and local SEO strategies that drive qualified organic traffic.
Digital Marketing
Data-driven campaigns that deliver measurable ROI across every channel.
Branding
Memorable brand identities that stand out in any market and build lasting trust.
Website Help
One-on-one expert support for bug fixes, updates and ongoing maintenance — without a long-term retainer.
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.