Compress your CSS to reduce file size and improve page speed — or beautify minified CSS back into readable code. Paste or upload a file. Instant results. 100% free.
CSS minification is the process of removing all unnecessary characters from your CSS source code — comments, whitespace, newlines, and redundant semicolons — without changing how it works in the browser. The result is a smaller file that downloads faster, which directly improves your page load time and Core Web Vitals scores.
Minified CSS is functionally identical to your original. The browser reads and applies it exactly the same way. The only difference is that it is no longer human-readable — which is why you should always keep your original source file and only serve the minified version in production.
/* ... */ comment blocks. These are useful for developers but invisible to browsers and add no value in production files.
#ffffff → #fff, #aabbcc → #abc. Saves 3 bytes per color.
0.5s becomes .5s, 0.25em becomes .25em.
0px, 0em, 0rem all become 0. A zero has the same meaning regardless of unit in CSS.
Minification compresses CSS for production — smaller, faster, harder to read. Beautification (also called pretty-printing or formatting) does the opposite: it takes minified or messily formatted CSS and reformats it with consistent indentation, line breaks, and spacing. Use beautify when you receive a minified stylesheet from a third-party library and need to inspect or debug it.
Yes — for standard CSS. Minification only removes characters the browser ignores (whitespace, comments). One edge case: if your CSS contains content strings (like content: " ";), make sure the minifier preserves the space inside quotes. This tool handles that correctly.
For one-off tasks or small sites, this tool is the fastest option. For large projects or ongoing development, integrate minification into your build pipeline with tools like PostCSS, cssnano, webpack, or Vite — these run automatically every time you build and support advanced optimizations like dead code elimination.
The easiest route is using a caching/performance plugin: WP Rocket, LiteSpeed Cache, Autoptimize, or W3 Total Cache all include CSS minification options. For your own custom CSS, paste it here, minify it, and either upload the file to your theme or paste the output into Appearance → Customize → Additional CSS.
Yes. CSS custom properties (--variable-name), calc(), clamp(), media queries, and all other modern CSS syntax are handled correctly by whitespace removal. Complex value shortening (like merging margin longhand properties) is an advanced optimization beyond the scope of basic minification.
Yes, positively. Google PageSpeed Insights and Lighthouse specifically check for "Minify CSS" as a performance opportunity. Minifying your stylesheets removes this audit warning and improves your overall score, contributing to better Core Web Vitals and potentially better search rankings.