JSON tree viewer

Explore JSON as a collapsible tree, filter keys and values, and copy the path of any field. Handles escaped JSON strings. Private, runs in your browser.

Runs in your browser. Nothing you paste is uploaded. Tap a key to copy its path.

Tree
  • {5}
    • "PrivyTools"
    • 82
    • true
    • [2]
      • "pdf"
      • "image"
    • {1}
      • "IN"

How to use it

  1. Paste JSON into the left box.
  2. Browse the tree on the right: click a key to open or close it. Arrays show their length, objects their number of keys.
  3. Type in the filter box to show only keys or values that contain your text.
  4. Tap a key name to copy its path, such as $.owner.country or $.tags[1].

Read big JSON without getting lost

A long API response is easier to understand as a tree than as text. The viewer opens the first few levels and leaves deeper ones folded, so you see the shape of the data first and then drill into the part you need. Strings are coloured differently from numbers, true, false and null, which makes wrong types easy to spot, such as "42" in quotes where a number was expected.

Copying a path saves time when you write code or queries against the data. The path uses the common JSONPath-style notation: $ is the root, .name is a key, and [0] is an array position. Keys with spaces or symbols are written in brackets, for example $["first name"].

When to use the formatter instead

The viewer is for reading and exploring. If you need to clean up, minify, sort or download JSON, use the JSON Formatter. To see what changed between two versions of the same data, use JSON Diff. To turn a list of records into a spreadsheet, use JSON to CSV.

Questions

What does the number next to a key mean?
For an array, [3] means it has three items. For an object, {5} means it has five keys.
Can I paste escaped JSON from a log?
Yes. If the whole input is a JSON string that contains JSON, the viewer unescapes it first and shows the inner data.
Does the filter search values too?
Yes. It matches key names and simple values (text, numbers, true/false), ignoring upper and lower case.
Is what I paste sent to a server?
No. The tool runs as JavaScript in your browser. Your text, files and keys stay on your device, so it is safe to use with internal data, tokens and customer records. It keeps working offline after the page has loaded once.

More free tools