JSON Viewer

How it works
Indent
Valid JSON

Input JSON

No problems found. This is valid JSON.

About JSON Viewer

Large API responses are hard to follow as text, even when they are nicely indented. The tree view lets you fold away the parts you don’t need, see how many items each array holds, and drill into exactly the branch you care about.

Clicking a key copies its path, for example data.items[0].id or settings["dark mode"], ready to paste into JavaScript, a jq filter or a test assertion.

How to use it

  1. Paste your JSON into the Input panel, or Open a .json file.
  2. The Tree view shows the first two levels; click the arrows to open or close a branch.
  3. Use Expand all or Collapse all for the whole document.
  4. Click a key to copy its path; the bar above the tree confirms what was copied.

Frequently asked questions

Can it handle large files?

Yes. Branches are only drawn when opened, and long arrays show 200 items at a time with a button to show more.

What do the colours mean?

Strings, numbers, true/false and null each have their own colour, the same as in the text view, so value types are easy to tell apart.

What if my JSON has an error?

The tree needs valid JSON. Errors are listed in the Problems panel with their line and column; fix them and the tree appears.

Related tools