Data / LOCAL TOOL

Structured Data Tree Viewer

Explore JSON, YAML, TOML, and XML as a searchable, collapsible tree in your browser.

Runs locally — input is never uploaded
Paste or drop JSON, YAML, TOML, or XML · max 10 MiB
TreeReady when you are

WHAT IT DOES

Explore a large document without losing its shape.

Paste JSON, YAML, TOML, or XML and inspect its hierarchy as a collapsible tree beside the original source. Format detection follows the document rather than guessing from a button, while an explicit picker is available for ambiguous text. Nodes are created only as branches open, keeping a large object responsive instead of rendering its entire structure before you can use the page.

Why use it?

Use the tree to find a value or copy its path in a large nested response without losing your place in the source.

How to use this tool

  1. Paste JSON, YAML, TOML, or XML and inspect it. Check the detected format; select one explicitly if the text is ambiguous.
  2. Expand the relevant branches or search for a key or value. For example, search for an order ID before opening its line items.
  3. Copy the value, subtree, or path you actually need. A JSON Pointer and a JSONPath are different notations: choose the one your receiving tool accepts.

Details and limitations

  • Search matches both keys and scalar values, opens only the branches needed to reveal them, and caps broad searches before they can flood the page.
  • Each node can copy its key, its value or subtree, and a format-aware path: JSON documents offer JSONPath, JavaScript access syntax, and JSON Pointer; XML uses XPath; YAML and TOML use dot-and-bracket paths.
  • XML remains structurally aware: attributes use an @ prefix, character data uses #text, namespaces remain on element and attribute names, and repeated elements become ordered arrays.
  • Arrow keys move through visible nodes, Left and Right collapse or expand branches, and the tree remains a single keyboard stop.

COMMON QUESTIONS

JSON Tree Viewer questions

Which structured-data formats can this viewer open?
It opens JSON, YAML, TOML, and XML. Auto mode recognizes JSON and XML syntax first, distinguishes common TOML assignment and table syntax, and otherwise reads the document as YAML; the format picker can override that decision.
Can it handle a large JSON object?
Files up to 10 MiB are accepted. The initial tree renders only the root and its immediate children, while deeper nodes are created when their branches open. Expand all is capped at 5,000 visible nodes and search is capped at 500 matches.
How are XML elements represented in the tree?
Element names remain as written, attributes are prefixed with @, text nodes appear as #text, and repeated sibling elements remain in source order as an array rather than overwriting each other.