TheJSON

JSON Tree Viewer

Explore deeply nested JSON as a collapsible tree with search, expand all, and collapse all.

Read nested JSON without endless scrolling

A 3,000-line API response is unreadable as text. As a tree, it is a handful of top-level keys you can open one at a time. The tree opens two levels deep by default, shows how many children each object or array contains, colour-codes strings, numbers, booleans and null, and lets you expand or collapse everything with one click. Select Split to keep the raw text and the tree side by side: edits on the left re-render the tree on the right immediately.

Search inside the tree

Press ⌘F and type part of a key or value. Matching nodes are highlighted and their parents are opened automatically, with a running match count, so finding every "status": "failed" in a large export takes seconds. Esc clears the search.

Copy exactly what you need

Click a node to select it, then copy its value (a single string, or a whole pretty-printed sub-object) or its path. Hover any row for the copy buttons, or use the path bar above the tree.

Like every tool on TheJSON, this runs entirely in your browser. Nothing you paste is uploaded, logged or stored on a server, so it is safe to use with API responses that contain tokens or customer data.

Frequently asked questions

Can the tree viewer handle large JSON files?

Yes. Nodes are rendered lazily as you expand them and the document opens collapsed to two levels, so multi-megabyte files with tens of thousands of nodes stay responsive.

Can I copy just one branch of the JSON?

Select any object or array in the tree and choose Copy value. You get that sub-tree as pretty-printed JSON, ready to paste into a test fixture or another tool.

Are there keyboard shortcuts?

Yes: ⌘E cycles Text, Tree and Split view, ⌘F focuses tree search, Esc clears it, ⌘⇧F formats and ⌘⇧M minifies. Use Ctrl instead of ⌘ on Windows and Linux.

Related JSON tools