CSS Minifier
Minify CSS online — strip comments and whitespace, shorten values, and cut stylesheet size for faster page loads. See exactly how many bytes you save.
100% in your browser — your code never leaves this tab. No sign-up, no limits.
Tools
CSS Minifier
Compress CSS for productionPaste CSS, drop a file, or
CSS Minifier — Frequently Asked Questions
CSS is a render-blocking resource: the browser will not paint your page until it has downloaded and parsed the stylesheets in the document head. That makes CSS size disproportionately important compared with, say, an image below the fold, and it is why stylesheet weight feeds directly into Largest Contentful Paint. Minification is the easy part of the fix. The larger wins usually come from shipping less CSS in the first place — removing rules for components a page does not use, splitting a giant global stylesheet, and inlining the small amount of CSS needed for the initial view.
Minifying compresses the text of your stylesheet; it does not make the stylesheet smarter. It will not delete rules that no element on your site matches, merge two selectors that share identical declarations, or drop vendor prefixes you no longer need for the browsers you support. Those are the changes that shrink a large stylesheet meaningfully, and they need tools that understand your markup — a coverage report in browser devtools is the usual starting point for finding unused CSS.
For a hand-written stylesheet with normal indentation and comments, expect somewhere between 20% and 40% off the raw file size. Heavily commented files do better; files that are already compact do worse. The number shown under the output is the real measurement for your file, so you do not have to guess. Bear in mind that gzip or Brotli compression — which your server almost certainly applies — already removes much of the redundancy that minification targets, so the saving on the wire is smaller than the saving on disk.
Yes. Minification only removes characters the CSS parser ignores: comments, newlines, indentation, and spaces that are not required to separate tokens. Browsers parse the result identically. The tool deliberately leaves alone the spaces that do carry meaning, such as those inside descendant selectors and multi-value shorthand properties, because collapsing those would change what the CSS means.
If you have a build step, minify there — a tool like Lightning CSS or cssnano will run automatically on every deploy and can do deeper optimisations such as merging duplicate rules. Minifying by hand is for the cases where a build step does not exist or is not worth setting up: a landing page, an email template, a CMS theme field, a snippet you are pasting into a third-party platform, or a quick check of how large a file would be if it were compressed.
Open-source licences frequently require the attribution notice to survive in distributed code, and that notice normally lives in a comment at the top of the file. If you are minifying third-party CSS, check its licence before stripping comments. The toolbar toggle exists precisely so you can compress everything else while leaving those banners intact.
No. Every one of these tools runs entirely in your browser using JavaScript. Your stylesheet is never uploaded, never logged, and never sent to any server — you can confirm this by opening your browser devtools Network tab while you work, or by disconnecting from the internet after the page loads and watching everything continue to function. That makes it safe to paste proprietary or client CSS.
CSS Tools
Edit CSS against real markup with a live preview, then format it, minify it, sort properties so diffs behave, add the prefixes older engines still want, or pull out every colour and selector a file contains. All of it runs on your own machine.

CSS Editor
Write CSS against real markup and watch every change land in the preview.

CSS Formatter
Turns a minified or inconsistent stylesheet into rules you can read and review.

CSS Minifier
Cuts comments, whitespace and slack from a stylesheet, and counts the bytes saved.

CSS Property Sorter
Alphabetises declarations inside every rule so diffs stop moving around between edits.

CSS Comment Remover
Deletes every comment and leaves the rules exactly as they were.

CSS Vendor Prefixer
Adds the -webkit- and -moz- prefixes older engines still need to apply your rules.

CSS Color Extractor
Pulls every hex, rgb and hsl value out of a stylesheet into one auditable list.

CSS Selector Extractor
Lists every selector in order, which makes it obvious what a file actually targets.

CSS Viewer
Preview a stylesheet against a sample page and judge colour, spacing and layout.

CSS Validator
Catches unbalanced braces, missing semicolons and the property names you misspelled.
Customer Reviews
0 out of 5 stars
Based on 0 reviews
Review data
5 star reviews
- 0%
4 star reviews
- 0%
3 star reviews
- 0%
2 star reviews
- 0%
1 star reviews
- 0%
Share your thoughts
If you've used this tool, share your thoughts with other users
Recent reviews
Latest Articles
Tips, guides, and insights from our blog
How to Create Strong Passwords in 2026: A Simple Guide
Practical tips for creating passwords that actually keep your accounts safe. Covers password security, managers, and two-factor authentication — no fluff.
What is a UUID? Complete Guide to Unique Identifiers
A straightforward look at UUIDs — what they are, how they work, and how to actually use them in your apps.
What is Lorem Ipsum? History, Meaning, and Modern Uses
The 2000-year story of Lorem Ipsum — from Cicero's Latin philosophy to modern web design. Plus why designers still use it and how to generate it yourself.
URL Slugs: The Complete SEO Guide for 2026
What URL slugs are, why they matter for search rankings, and how to get them right. Covers best practices and common mistakes to watch out for.