CSS Minifier

Reduce CSS file size by removing comments and unnecessary whitespace.

Conservative minification only. Strips /* comments */ and collapses consecutive whitespace outside strings, URLs and content values. Does not touch selectors, property values, or numeric units. Input is capped at 500 KB.

How to use CSS Minifier

Paste your CSS, click Minify, then copy the result.

About this tool

Conservative CSS minification that strips comments and collapses whitespace outside strings and URLs. Does not touch selectors, values, or units — safe for any stylesheet.

Related tools