CSS Minifier

Minify CSS by stripping comments and whitespace and shortening zero values, with a before/after size count. Runs locally in your browser.

About this tool

Paste CSS and get a compact version. Comments and extra whitespace are removed, the last semicolon in each block is dropped and zero lengths lose their units. This is a simple regex minifier, so review output that contains unusual strings. Nothing is uploaded.

Related: JSON Formatter & Validator · Base64 Encode & Decode · URL Encoder & Decoder · SHA-256 / SHA-1 Hash Generator · Unix Timestamp Converter