JSON Viewer: Explore JSON as a Collapsible Tree

Paste JSON or open a local file to browse it as an interactive tree. Expand and collapse branches, search keys and values, and select any node to copy its JSON Pointer, its JSONPath, or its value. Key order, duplicate keys, and long numbers are kept exactly as written. Everything runs in this browser; nothing is uploaded.

JSON input

The tree updates as you type for inputs under 1 MB; larger inputs wait for View tree. Ctrl+Enter parses immediately. You can also drop a file onto this box.

Ready. Paste JSON, load a file, or try the sample.

Tree

Depth 1 shows the root’s direct children. Expanding stops at about 3,000 visible rows so large files stay responsive; children appear 200 at a time.

Type to search. Enter jumps to the next match, Shift+Enter to the previous one.

Keyboard: Up and Down move, Right expands or enters a branch, Left collapses or goes to the parent, Home and End jump, Enter or Space toggles a branch or a long string. Double-click a row to toggle it.

No JSON loaded yet.

Selected node

Select a node in the tree to see its paths and value.

Stats

Stats appear after a successful parse.

How it works and limits

  • Strict parser, written for this page. Input must be standard JSON (RFC 8259). Comments, trailing commas, single quotes, NaN, and unquoted keys are reported with a line and column instead of being guessed at. JSON5 and JSON Lines are not accepted; use the JSONL Viewer for one record per line.
  • Nothing is reinterpreted. Keys stay in source order, every duplicate key is shown and flagged, and numbers keep their original text, so 12345678901234567890 or 1.10 display and copy exactly as typed. Integers beyond JavaScript’s safe range are labelled.
  • Paths. JSON Pointer follows RFC 6901 (~ becomes ~0, / becomes ~1; the whole document is the empty string). JSONPath uses dot notation for identifier-like keys and bracket notation with single quotes otherwise. With duplicate keys, a path cannot tell the copies apart.
  • Large files. Only expanded branches create page elements, 200 children at a time, and bulk expansion stops at about 3,000 rows. The whole document is still parsed into memory, so files of tens of megabytes may be slow, and pasting very large text into the box is slower than loading the file.
  • Search matches object keys and primitive values (numbers as written, true, false, null) as plain substrings, not regular expressions. Array indexes are not searched as keys. Error columns count characters, and a tab counts as one.
  • This is a viewer, not an editor or formatter. To reformat or minify, use the JSON Formatter.