JSON Tree View
Show a JSON document as an indented tree with one line per value, container sizes, and array indices. Copy or print it.
What the JSON tree view shows
Every value gets one line: the path connector, the key or array index, and the value with its JSON type implied by its spelling. Containers show how many entries they hold, so an empty object and an empty array are visible at a glance rather than hiding a branch. This is the printable half of a tree viewer: it selects, copies and prints as text, and it needs no JavaScript to stay expanded after you paste it into a ticket or a commit message.
How to use it
JSON Tree View: paste the JSON into the box above, and press Run to get the tree below.
Worked example
Input:
{
"id": 42,
"displayName": "Ada Lovelace",
"active": true,
"score": 9.5,
"tags": [
"math",
"engine"
],
"address": {
"city": "London",
"country": "GB"
},
"projects": [
{
"name": "Analytical Engine",
"year": 1843
},
{
"name": "Note G",
"year": 1843,
"notes": "first published algorithm"
}
],
"nickname": null
}
Output:
$ {8}
├─ id: 42
├─ displayName: "Ada Lovelace"
├─ active: true
├─ score: 9.5
├─ tags [2]
│ ├─ [0]: "math"
│ └─ [1]: "engine"
├─ address {2}
│ ├─ city: "London"
│ └─ country: "GB"
├─ projects [2]
│ ├─ [0] {2}
│ │ ├─ name: "Analytical Engine"
│ │ └─ year: 1843
│ └─ [1] {3}
│ ├─ name: "Note G"
│ ├─ year: 1843
│ └─ notes: "first published algorithm"
└─ nickname: null
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads JSON and returns tree; reloading the page discards both.
Every value gets one line: the path connector, the key or array index, and the value with its JSON type implied by its spelling. Containers show how many entries they hold, so an empty object and an empty array are visible at a glance rather than hiding a branch. This is the printable half of a tree viewer: it selects, copies and prints as text, and it needs no JavaScript to stay expanded after you paste it into a ticket or a commit message.
Show a JSON document as an indented tree with one line per value, container sizes, and array indices. Copy or print it.
How to use it
JSON Tree View: paste the JSON into the box above, and press Run to get the tree below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads JSON and returns tree; reloading the page discards both.
What to Expect
Best for
- Converting JSON to tree when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
{ "id": 42, "displayName": "Ada Lovelace", "active": true, "score": 9.5, "tags": [ "math", "engine" ], "address": { "city": "London", "country": "GB" }, "projects": [ { "name": "Analytical Engine", "year": 1843 }, { "name": "Note G", "year": 1843, "notes": "first published algorithm" } ], "nickname": null }
Sample output
$ {8} ├─ id: 42 ├─ displayName: "Ada Lovelace" ├─ active: true ├─ score: 9.5 ├─ tags [2] │ ├─ [0]: "math" │ └─ [1]: "engine" ├─ address {2} │ ├─ city: "London" │ └─ country: "GB" ├─ projects [2] │ ├─ [0] {2} │ │ ├─ name: "Analytical Engine" │ │ └─ year: 1843 │ └─ [1] {3} │ ├─ name: "Note G" │ ├─ year: 1843 │ └─ notes: "first published algorithm" └─ nickname: null
Frequently asked questions
How do I use the json tree view?
JSON Tree View: paste the JSON into the box above, and press Run to get the tree below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.