devvkit / dev
CSS Minifier/Beautifier
Minify and beautify CSS with comment stripping and gzip sizing.
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
related tools
Minify and beautify CSS safely. Strips comments, collapses whitespace, trims zero units, and measures gzip size: all locally in your browser.
- -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
- >Shrinking stylesheets for production builds
- >Reading unreadable minified CSS
- >Cleaning up inline styles in templates
- >Estimating transfer sizes after compression