JSON Viewer
Explore a JSON document as a collapsible tree: expand a branch, collapse it, then copy or download the formatted JSON.
What the JSON viewer shows
The document is parsed and formatted first, and the tree is a view of that formatted text, so Copy and Download still hand you valid JSON rather than a picture of it. Every object and array is a collapsible branch labelled with its size, and the first two levels open by default: deep enough to show the shape, shallow enough that a very large document does not paint thousands of rows before you ask. Expand all and Collapse all are ordinary buttons, and a branch is opened with the keyboard because the disclosure widget is the one the browser already ships.
How to use it
JSON Viewer: paste the JSON into the box above, set Indent (default 2), 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:
{
"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
}
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.
The document is parsed and formatted first, and the tree is a view of that formatted text, so Copy and Download still hand you valid JSON rather than a picture of it. Every object and array is a collapsible branch labelled with its size, and the first two levels open by default: deep enough to show the shape, shallow enough that a very large document does not paint thousands of rows before you ask. Expand all and Collapse all are ordinary buttons, and a branch is opened with the keyboard because the disclosure widget is the one the browser already ships.
Explore a JSON document as a collapsible tree: expand a branch, collapse it, then copy or download the formatted JSON.
How to use it
JSON Viewer: paste the JSON into the box above, set Indent (default 2), 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
{ "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 }
Frequently asked questions
How do I use the json viewer?
JSON Viewer: paste the JSON into the box above, set Indent (default 2), 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.