JSON Tree Viewer — Explore JSON Visually
Render any JSON document as an expandable tree. Collapse huge arrays, drill into nested objects, and search keys or values instantly.
Navigate large JSON documents visually
Pretty-printed JSON is great for small files, but it scales poorly. A 5 MB API response can easily be 100,000 lines of text, and scrolling through that to find the one field you care about is painful. The tree viewer renders the same document as a collapsible tree — click a node to expand or collapse it, and you can drill into a deeply nested structure without losing track of where you are.
Every value is colored by type: strings in green, numbers in blue, booleans in amber, null in violet. Arrays and objects show a count of their children, so you can tell at a glance whether you are looking at a list of 3 items or 3,000. The search box walks the entire tree and highlights every key or value that matches your query.
Copy any subtree with one click
Often you only need a small piece of a large response — one user object out of a paginated list, or one configuration section out of a massive document. Hover any node in the tree and click the copy icon to put that subtree on your clipboard as JSON. This is much faster than manually selecting and copying from pretty-printed text, especially for deeply nested values.
Search inside the tree
The search box in the toolbar walks the entire tree and highlights every key or value that matches your query. Matches are case-insensitive and match anywhere inside the string, so searching for email finds everyemail key as well as any value that containsemail (like an actual email address). The tree auto-expands to reveal matches that were inside collapsed branches, so you can start with everything collapsed and let the search surface what you need.
Tree viewer vs pretty-print
Use the tree viewer when you are exploring an unfamiliar document. Use pretty-print (the JSON Beautifier tool) when you want to share the document or save it for later. The tree viewer is interactive — it only exists in the browser — while pretty-printed JSON is plain text that you can paste anywhere. They are complementary tools, not alternatives.
Frequently asked questions
Common questions about the Tree Viewer tool.