Free online CSS Minifier & Formatter. Compress stylesheets, strip comments, optimize hex colors, remove redundant zero units, simulate Gzip/Brotli wire sizes, and accelerate Core Web Vitals.
⚡ Interactive Calculation Engine Active
Please enable JavaScript in your browser to run live computations, 2D envelope diagrams, and export PDF reports.
How to Use CSS Minifier
Paste uncompressed CSS into the editor or upload an existing .css/.scss stylesheet file.
Select a 1-click Preset (e.g. Modern CSS Reset with Design Tokens, Glassmorphic Card, Responsive Auto-Fit Grid, Shimmer Keyframes, or Dark Mode Tokens).
Choose your optimization strategy: Safe Mode (whitespace & comments only), Aggressive Mode (hex color compaction, 0-unit removal, decimal compression, and shorthand consolidation), or Beautify Mode (formatted with 2-space indentation).
Toggle custom optimization rules: Shorten Hex Colors (#ffffff → #fff), strip zero units (0px → 0), or remove trailing semicolons before closing braces.
Inspect the live compression savings ratio, estimated Gzip/Brotli transfer sizes, and mobile 3G/4G download latency metrics.
Copy the minified CSS payload, export a .min.css file, or copy as an inline HTML