Tools / JSON Tree Viewer

JSON Tree Viewer.

View JSON as a tree with types and sizes, and get the JSONPath and JSON Pointer of every value.

Runs in your browser

Containers deeper than this are drawn collapsed; the paths table still lists every value.

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Tree
Paths
Structure

About JSON Tree Viewer

JSON Tree Viewer draws a JSON document as an indented tree so you can see its shape at a glance. Every object shows how many keys it has, every array how many items, and every leaf value is printed with its exact JSON spelling, so the string "42" and the number 42 never look the same. Next to the tree, the paths table lists each value with its JSONPath (for example $.items[1].price) and its JSON Pointer (/items/1/price), which you can paste straight into jq, JSONPath playgrounds, JSON Patch operations or a JSON Schema $ref. This is the quickest way to answer questions such as "where is the email in this webhook payload?" or "how deep does this API response go?". The structure panel counts objects, arrays, strings, numbers, booleans and nulls and reports the maximum depth, which helps when a document is too big to read. Use the expand depth to collapse deep branches: containers below that level are drawn on one line with an ellipsis, while the paths table still lists everything. Keys that are not plain identifiers, such as "odd key" or "created-at", are quoted in paths, and the characters ~ and / are escaped in pointers as ~0 and ~1, as RFC 6901 requires; a common mistake is to forget that escaping when building pointers by hand. Invalid JSON is reported with a line and column. The tree is limited to 5,000 lines and the table to 2,000 rows, and everything runs in your browser without uploading the document.

How to Use

  1. Paste a JSON document.
  2. Set the expand depth to collapse deep branches if the tree is long.
  3. Copy a path from the table or download the tree.

Frequently Asked Questions

What is the difference between JSONPath and JSON Pointer?

JSONPath ($.items[0].sku) is a query syntax used by jq-like tools and test frameworks. JSON Pointer (/items/0/sku) is the RFC 6901 format used by JSON Patch and JSON Schema references.

Why are some keys shown in quotes?

Keys that are not plain identifiers, for example ones with spaces, dashes or non-Latin letters, are quoted so the path stays unambiguous.

Does expand depth hide data?

Only from the drawing. Collapsed containers are marked with an ellipsis, and the paths table and structure counts still include every value.

Is my JSON uploaded?

No. Parsing and drawing happen in your browser, and the page makes no network requests while you use it.

Related Tools