CSS Minifier & Beautifier

Strip a stylesheet down to its smallest form, or reformat minified CSS back into something readable.

Copied

Last updated

0Input (bytes)
0Output (bytes)
Size change
Minified or beautified CSS will appear here.
Copied

About this tool

Minify strips comments, collapses whitespace, and removes redundant characters (trailing semicolons, extra spaces around braces/colons) without changing what the CSS does. Beautify reverses the process — it re-indents rules by nesting depth and puts each declaration on its own line, useful for reading minified CSS pulled from a live site or a build output.

Both work on a text level using pattern matching, not a full CSS parser, so exotic constructs (CSS inside comments-like string content, unusual nesting) are the main edge cases to double-check. Nothing you paste here is uploaded — everything runs as JavaScript in your browser tab.