CSS Minifier
Compress your stylesheets for faster pages. CSSO removes whitespace and comments, shortens values like #ffffff to #fff and can merge duplicate rules safely.
- PrivateYour data never leaves this device
- No uploadsProcessed in your browser, not on a server
- 100% freeNo signup, no watermark, no trial
- UnlimitedUse it as often as you like, no daily caps
CSS input
Minified
How to use the CSS Minifier
- Paste your CSS, open a .css file or load the sample.
- Leave Restructure on to merge duplicate selectors and declarations, or turn it off for a plain minify.
- Choose whether to keep /*! license */ comments.
- Copy the minified CSS or download it as a .min.css file.
Latest guides
All →
SEO & MarketingHow to make a Wi-Fi QR code so guests join without typing
Make a WiFi QR code so guests join your network by pointing a phone camera at it. The format, hidden networks, special characters, safety…
12 Nov 20266 min read
PDF ToolsHow to watermark NID and certificate copies before sharing
Watermark NID copy and certificate PDFs with who it is for, the purpose and the date, so a copy given for one job is hard to reuse for…
12 Nov 20265 min read
PDF ToolsHow to number the pages of a thesis or project report PDF
Thesis page numbering made simple: the usual rules for front pages and chapters, and how to number a finished PDF from Chapter 1 for free…
12 Nov 20265 min readFrequently asked questions
What does CSS minification remove?
Whitespace, line breaks, comments and the last semicolon in each block. It also shortens values, for example 0px becomes 0, #ffffff becomes #fff and redundant shorthand values are collapsed.
What does the Restructure option do?
It lets CSSO merge rules with the same selector or the same declarations and remove overridden properties. It's designed to be safe, but if you rely on unusual cascade order, turn it off to only strip whitespace and shorten values.
Will minified CSS look different in the browser?
No. Minification only changes how the CSS is written, not what it means, so pages render the same.
Does it support modern CSS like custom properties and nesting?
Yes. CSSO handles custom properties, media and container queries, @supports and other modern syntax. Values of custom properties are kept as written.
How much smaller will my CSS get?
Typically 15–40% before compression, depending on how much whitespace, commenting and duplication the source has. The gzip figures show the real network transfer size.
Is my CSS uploaded?
No. The minifier runs entirely in your browser.