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.
Drop a .json or .txt file here. Client-only FileReader. Ctrl or Cmd + Enter formats.
Output is generated locally from the parsed document.
Warnings
The document parsed, but RFC 8259 interoperability notes apply. Warnings use a gold panel plus the word “Warning”, not color alone.
Inspect a JSON Pointer
RFC 6901 path. Empty pointer is the document root. ~1 is a slash in a key; ~0 is a tilde.
Document tree
Expand a node to inspect children. Copy path copies the RFC 6901 pointer.