TreeView JSON

Explore large JSON as a collapsible tree, with search by key.

100% client-side

Input

0 characters

Tree

Paste some JSON on the left to see the tree.

How the tree explorer works

A tree viewer turns the nested structure of a JSON document into collapsible nodes: every object or array can be collapsed to hide its children, and every primitive value (string, number, boolean, null) is shown colored by type, just like in your browser's DevTools:

{
  "user": {         → collapsible node {2}
    "id": 42,        → number
    "roles": [...]   → collapsible node [2]
  }
}

This tool uses native JSON.parse to validate and walk the tree, rendering each node as DOM elements — no external libraries, no server calls.

Frequently asked questions

How does the key search work?

It filters the tree to show only the branches whose key contains the searched text (or that have a descendant that does), auto-expanding them and highlighting the match.

How large can the JSON I explore be?

It works well with documents with thousands of nodes. Extremely large documents (tens of thousands of keys) can get slow because the whole tree is rendered in the DOM.

Does it visually distinguish data types?

Yes: strings, numbers, booleans and null have distinct colors, and objects/arrays show how many elements they contain between braces or brackets.

Is it safe to paste sensitive data here?

Yes. All processing and rendering happens in your browser; no data is ever sent to a server.