Format or minify JSON
Paste a document into the editor and press Format to indent it, or Minify to strip every space and newline back out. Formatting is a round trip through the parser rather than a text transform, so the output is always valid JSON — if the document cannot be parsed, nothing is rewritten and the error is reported instead. Both buttons work on the whole document; there is no selection mode.