We use cookies to understand how the site is used and to display ads. Analytics and advertising only run after you accept. You can change your choice anytime via the footer link or your browser settings. Privacy policy

Skip to content
>_devvkit

CSS Minifier/Beautifier

Minify and beautify CSS with comment stripping and gzip sizing.

Input: 217 BOutput: 140 B

Minifier strips comments, collapses whitespace, removes trailing semicolons, and trims zero units. Gzip size uses the browser's native CompressionStream. All processing is client-side.

//Share this tool

Minify and beautify CSS safely. Strips comments, collapses whitespace, trims zero units, and measures gzip size — all locally in your browser.

[x]Features
  • -Comment stripping with string safety
  • -Whitespace collapsing and selector cleanup
  • -Zero-unit trimming (0px to 0)
  • -Beautifier with nested block indentation
  • -Gzip size estimate using CompressionStream
  • -Download minified output as .css file
>Use Cases
  • >Shrinking stylesheets for production builds
  • >Reading unreadable minified CSS
  • >Cleaning up inline styles in templates
  • >Estimating transfer sizes after compression

Frequently Asked Questions

>What does the minifier optimize??
It strips comments, collapses whitespace, removes trailing semicolons, and converts zero units like 0px to 0.
>How is gzip size measured??
The browser's native CompressionStream compresses the output locally to estimate the transferred size.