ENRU

JSON Viewer

Every key where you left it. Every number too.

Inputempty

Open a JSON file or paste JSON. I’ll grow the tree.

Ctrl+O opens a file · drop it on this pane

I keep your key order. Somebody has to.
— JSON Statham
Tree

The tree appears here: keys in their order, numbers as written, search and a path for every node.

Waiting for JSON.
API

Open a JSON file or paste JSON to read it as a tree. Keys stay in their order, numbers stay as written, and every node has a path you can copy. The JSON goes to our API only to be checked; the tree is built in your browser.

How to view a JSON file as a tree

  1. Open a JSON file, drop it on the input or paste JSON.
  2. Search keys and values, expand the tree to level 1, 2 or 3, and select any node.
  3. Copy the node’s path as a JSON Pointer or a JSONPath for your code, jq or a ticket.

JSON tree viewer and parser: what you see is what’s in the file

The tree is parsed from your text, not through JSON.parse: {"10": …, "2": …} keeps 10 first, 12345678901234567890 keeps every digit, and a duplicated key shows up twice instead of silently winning. The counts above the tree — keys, depth, objects, arrays, duplicate keys and big integers — come from the same check the JSON Validator runs.

JSON viewer FAQ

How do I open a JSON file online?

Press Open JSON file, or drop the file on the input. Files up to 1 MiB are checked by our API and shown as a tree; the text is processed in memory and never logged or stored.

JSON Pointer or JSONPath: which path do I need?

A JSON Pointer (RFC 6901) names one node, /items/0/id: JSON Patch and JSON Schema use it. JSONPath (RFC 9535) is a query language, $.items[0].id, used by jq-style tools and API tests. The viewer gives both for the node you select.

Can it show invalid JSON?

No: the tree grows only from valid JSON. If the document breaks, you get the error with its line and column, and Show me puts the cursor on it. Fix it, and the tree appears.

How is it different from the Formatter’s Tree tab?

The Formatter shows a tree of its output. The viewer is built for reading: search with next and previous match, expand to a level, paths in two notations, and counts of keys, depth, duplicate keys and big integers.

Other tools

Keyboard shortcuts

Everywhere
Ctrl+EnterRun the page’s main action
Ctrl+OOpen a file
F8 / eJump to the error
/Focus the input
qAnother quote
?This help
EscClose

Keys like q, e work when the cursor isn’t in an editor.

Runs the tool after a pause in typing: 0.6 s, or 1.2 s above 64 KiB; off above 256 KiB. Each run sends your JSON to our API.