The preview shows up here.
CSS formatter pretty-prints rules and at-rules so a minified sheet can be read. p{color:red;margin:0}@media (min-width: 40em){p{color:blue}} becomes a p rule with color and margin on their own lines, then the media query, then the inner p. Indent is two spaces.
It does not repair the stylesheet. The input’s margin:0 had no semicolon after it, and the output still has no semicolon after margin: 0. A formatter that silently inserts punctuation will hide a real syntax problem and sometimes change a value. Comments and strings are left to the beautifier’s usual rules. This page does not remove whitespace to save bytes. That is the minifier, which also drops ordinary comments and keeps the inside of a string such as "a b" intact.
Paste CSS. There is no indent selector and no vendor-prefix option. If the input is not CSS, the result will not magically become valid.
p{color:red;margin:0}@media (min-width: 40em){p{color:blue}}
p { color: red; margin: 0 } then @media (min-width: 40em) { p { color: blue } }, indented by two spaces. margin: 0 has no trailing semicolon.
Leaving the missing semicolon missing is safer than a formatter that “fixes” CSS and changes what the browser will parse.
No. margin:0 in the sample stays margin: 0 without a semicolon. Add the punctuation yourself if the rule needs it.
Two. There is no tab option on this page.
No. The minifier removes ordinary comments and keeps comments that start with !. This page is for reading.
Use the HTML formatter. This one only understands CSS.