CSS Minifier with Live Size Savings
Minify CSS in your browser and see exactly how many bytes you save. Safely compr...Minify CSS in your browser and see exactly how many bytes you save. Safely compresses without breaking strings, url() data URIs or calc().
Updated
Minified CSS will appear here...Quick answer
A CSS minifier shrinks a stylesheet by removing comments, whitespace and the redundant last semicolon in each block, without changing how it renders. Paste your CSS here and it minifies instantly in your browser, showing the original size, the minified size and the exact bytes and percent saved. It safely preserves strings, url() data URIs and calc() spacing, keeps /*! license */ comments, and lets you copy or download the .min.css.
CSS Minifier Features
Why Use CSS Minifier with Live Size Savings?
See the Savings Live
Original size, minified size and the exact bytes plus percent saved update as you paste. No guessing how much smaller your CSS got.
Safe by Design
A tokenizer protects strings, url() data URIs, calc() spacing and attribute selectors, so the minified CSS renders identically to the source.
Keeps License Headers
Important /*! ... */ comments (license and copyright headers) survive minification while every other comment is removed.
Minify or Unminify
Flip to Beautify to expand minified CSS back to readable, indented code for debugging or editing third-party stylesheets.
100% In Your Browser
Your CSS never leaves the page. All processing runs client-side in JavaScript, so nothing is uploaded to a server.
Copy or Download .min.css
One click to copy the result or download it as a ready-to-ship .min.css file for your production build.
What People Use the CSS Minifier For
Production Builds
Compress your final CSS before shipping so browsers download fewer bytes and pages render sooner.
Core Web Vitals
Smaller stylesheets cut render-blocking bytes and help LCP, improving PageSpeed and Lighthouse scores.
Inspect Third-Party CSS
Beautify a minified vendor stylesheet to read and understand it before overriding its rules.
Faster Mobile Loads
Fewer CSS bytes matter most on slow mobile networks where every kilobyte affects load time.
How It Works
Paste Your CSS
Drop your stylesheet into the input box, or click Load sample to try it. The minified output and size savings appear instantly.
Choose Your Options
Keep the default Minify mode, decide whether to preserve /*! license */ comments, or switch to Beautify to unminify instead.
Copy or Download
Copy the minified CSS to your clipboard or download it as a .min.css file, then use it in production for faster page loads.
Tips & Best Practices
Keep Your License Header
Prefix a comment with an exclamation mark, like /*! (c) 2026 MyLib */, to keep it after minifying. This is the standard convention every minifier respects.
Unminify to Read Vendor CSS
Switch to Beautify mode to expand a compressed stylesheet back to indented lines when you need to understand or override it.
Compile Preprocessors First
SCSS, LESS and Stylus are not CSS. Compile them to plain CSS first, then minify that output here for the best results.