Format / Beautify expands compressed CSS into one declaration per line with your chosen indentation, using js-beautify. It works with media queries, nested rules and custom properties.
Minify runs a small tokenizer, so quoted strings (including content: "a ; {" or URLs with spaces) and comments are recognized before anything is removed. It strips comments (optionally keeping /*! ... */ license comments), collapses whitespace, removes spaces around { } ; , > ~ : where that is safe, and drops the last semicolon in each block. Spaces that carry meaning stay: the descendant combinator in .nav :hover, the operators inside calc(), and the space before ( in and (min-width: ...).
It does not rewrite values (no colour shortening, no 0px to 0) or merge rules. That keeps the output predictable; a full optimizer belongs in your build pipeline. All processing runs in your browser.