CSS Minify & Format

Shrink CSS size (minify) or tidy it up for readability (format). It recognizes strings, url(), and comments to process safely, and your code is never sent to a server.

Input CSS
Result

How to use

Minify removes comments and unnecessary whitespace and line breaks to reduce file size. Necessary spaces inside calc(), strings, and url() are preserved so the result doesn't break.

Format arranges rules and properties with line breaks and indentation to make them easy to read.

All processing happens in your browser, and the code you enter is never sent anywhere.