JSON Formatter: Format and Minify JSON Documents

Pretty-print, minify, and inspect JSON entirely in this browser. Parsing follows RFC 8259 / ECMA-404: no comments, no trailing commas, unique object names recommended. Errors name the line, column, and RFC 6901 JSON Pointer. Number literals are kept as written so integers larger than JavaScript’s safe range are not silently rounded. Nothing is uploaded.

Formatting options
Load file

Drop a .json or .txt file here. Client-only FileReader. Ctrl or Cmd + Enter formats.

Output is generated locally from the parsed document.

Paste JSON and press Format. Results stay in this browser.