JSON Tree Viewer
Explore JSON as a collapsible tree, with the path of every value.
What you paste
Parsed in your browserHow this reads your output
The document is parsed and drawn as a tree. Nodes below the second level start collapsed, and each collapsed row shows what it contains — the number of items in an array, the number of keys in an object — so the shape of a large response is visible without expanding it. Hovering any row shows the path to that value in the notation you would use to reach it in code. The drawing stops at 5,000 nodes because past that a tree stops being a way to find anything, but the parsing and the counts cover the whole document.
What the results mean
- Nodes
- Every value in the document, at every level. A rough measure of how much there is to navigate.
- Maximum depth
- How deeply nested the document is. Deep nesting is the usual reason a response is hard to read as text.
- Path
- Shown on hover — the expression that reaches that value, ready to paste into code.
- Top-level type
- Whether the response is an object or an array. An API that returns a bare array is the common cause of code expecting a wrapper and finding none.
Common problems and fixes
- The tree stops part way down a large file
- Drawing is capped at 5,000 nodes. The counts above cover the whole document — for very large responses, filter server-side or extract the section you need first.
- A number is not what my API sent
- JSON numbers above 2^53 lose precision when parsed by JavaScript, which is every browser. IDs sent as numbers rather than strings are the usual victims.
- It says invalid but looks fine
- Trailing commas, single quotes and unquoted keys are all valid JavaScript and invalid JSON. The JSON formatter points at the exact line and column.
Frequently asked questions
What is the difference between a JSON viewer and a formatter?
A formatter answers "is this valid and what does it look like laid out". A viewer answers "where is the thing I am looking for", which is a different question once a response runs to thousands of lines. Collapsing, key counts and copyable paths are what make that navigable.
Is my JSON sent to a server?
No. The document is parsed and drawn by your browser, and this page has no endpoint to send anything to. That matters for this category — API responses routinely contain tokens and customer records.
Put this on your own site
Free to embed, no attribution required beyond the source link the frame carries itself. It runs entirely in your visitor's browser, sets no cookies and loads no third-party script.
<iframe src="https://runthetests.com/embed/json-viewer/" width="100%" height="720" style="border:1px solid #e5e5e5;border-radius:8px" title="JSON Tree Viewer" loading="lazy"></iframe>
Preview it at https://runthetests.com/embed/json-viewer/. Embedded pages are marked noindex, so yours stays the canonical copy — not this one.