← DevHelpers|CSS Minifier

CSS Minifier — Compare Bytes, Copy & Download

Paste or upload a stylesheet to parse and print compact CSS in your browser. Preserve license comments, inspect UTF-8 byte savings and download the result. Try the example to see quoted strings, custom properties and calc() handled together.

Keeps quoted text, calc() spacing and custom-property values. It compacts CSS without reordering rules or removing unused styles.

Processing stays in your browser. Open a text file up to 2 MB or paste a snippet.

Editing the input or options clears the previous result.

Compact CSS with its syntax intact

The minifier parses the stylesheet before generating output. Quoted strings and custom-property values are preserved. Parse errors are shown instead of presenting partial output as a successful result.

Inspect the result before shipping

Compare source and output bytes, copy the result or download a .css file. License notices are retained by default. This tool does not remove unused CSS or decide which browsers your project supports.

Frequently asked questions

How do I minify CSS?⌄

Paste CSS or upload a stylesheet, choose whether to preserve license comments, then select Minify CSS. Inspect the result before copying or downloading it.

Does it preserve strings and calc()?⌄

A CSS parser handles the syntax rather than stripping whitespace with a global regular expression. Try the safety example and verify the output against your own project before deploying it.

Are the size savings measured in bytes?⌄

Yes. The workbench compares UTF-8 byte counts, including non-ASCII content.

Related tools & guides