Is minified CSS functionally identical to the original?
Yes. Our CSS minifier strips only whitespace, line breaks, and comments. Selectors, properties, values, specificity, and source order are preserved exactly, so the browser renders the page identically to the unminified version.
How much smaller does CSS get after minification?
Hand-written CSS typically shrinks 20–40% after minification. When the minified output is then served with gzip or Brotli compression on the origin or CDN, total transfer savings on the wire usually reach 75–90%.
Does the minifier preserve CSS custom properties (variables)?
Yes. CSS custom properties such as --primary: #2563eb are plain CSS syntax and are kept exactly as written. The var(--primary) references are also untouched, so cascade resolution behaves the same.
Will minification break my media queries or @keyframes?
No. @media, @keyframes, @supports, @font-face, and @import at-rules are preserved with their nested blocks intact. The minifier only collapses whitespace inside and around them — the structure is unchanged.
Should I minify source SCSS/LESS or the compiled CSS?
Always minify the final compiled CSS, never the source SCSS or LESS. Build pipelines (PostCSS, esbuild, Vite, webpack) compile preprocessor source, then run a minifier such as cssnano on the resulting CSS. Source maps let you debug back to the SCSS/LESS lines.
Is my CSS uploaded to your servers?
No. The CSS minifier runs entirely in your browser using JavaScript. Stylesheets containing internal class names, design-token comments, or proprietary rules never leave your device. Verify it yourself in DevTools Network tab — no requests fire when you click Run.
Does this minifier shorten color values like #ffffff to #fff?
This minifier focuses on safe whitespace and comment stripping — it does not perform aggressive optimisations like color shortening, property merging, or shorthand collapsing. For those transformations use a build-time tool such as cssnano with optimisation presets enabled.
Can I un-minify CSS back to readable form later?
Yes. Paste the minified output into our CSS Beautifier (or CSS Pretty Print) tool and it will reformat the stylesheet with proper indentation and line breaks. The two operations are exact inverses for whitespace.