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. Privacy policy

Skip to content
devvkit

devvkit / dev

CSS Minifier/Beautifier

Minify and beautify CSS with comment stripping and gzip sizing.

Input: 0 BOutput: 0 B
Input

Minifier strips comments, collapses whitespace, removes trailing semicolons, and trims zero units. With optimization enabled it also merges duplicate selectors and collapses margin/padding/border/border-radius into shorthand (at-rules like @media pass through unchanged). 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.