JSON Tree Viewer

Browse JSON as a collapsible tree with syntax highlighting. Click any node to copy its dotted path (e.g., $.user.address.city) or value. Search across all keys and values. Much better than scrolling through a 5,000-line formatted file.

How to use the JSON Tree Viewer

Paste JSON. The tree renders with each object/array collapsible. Hover any node to see its full path. Click a value to copy it, or click the path icon to copy the dotted path. Use search to filter — matching nodes auto-expand.

Browsing JSON as a collapsible tree

A formatted JSON file thousands of lines long is still hard to navigate — you scroll, you lose your place, and when you finally find the value you need you still have to work out its path by hand to reference it in code. A collapsible tree turns that flat wall of text into something you can fold, search, and click.

This renders JSON as a tree where every object and array collapses, search filters and auto-expands matching nodes, and a click copies either a node’s value or its dotted path like $.user.address.city — so you can paste the exact accessor straight into your code. Its companion, the JSON visual tree explorer, leans more on showing types and child counts inline as you browse; reach for this one when copying paths and values is the goal.

Common use cases

  • Copy a path — click to grab a node’s dotted path for use in code.
  • Grab a value — copy a single value without selecting raw text.
  • Search a payload — filter to matching keys or values, which auto-expand.
  • Fold the noise — collapse branches to focus on one part of a large document.
  • Inspect a response — explore an API result without re-formatting it.

Frequently asked questions

What does clicking a node do?

It copies either the value or the node’s dotted path, such as $.user.address.city, ready to paste into code.

Can I search the JSON?

Yes — the search box filters keys and values, and matching nodes expand automatically.

How is this different from the visual tree explorer?

This one focuses on click-to-copy paths and values; the JSON visual tree explorer emphasises inline type and count annotations while you browse.

Does my JSON get uploaded?

No — the tree is built in your browser; nothing is sent anywhere.
Embed this tool on your site

Free to embed, no attribution required (but appreciated). Paste this where you want the tool to appear: