JSON Viewer

Paste JSON to browse it as a tree. Fold branches, search keys and values, and copy the path or value of anything you pick. Nothing leaves this page.

How it works

The JSON is parsed with a parser that keeps key order and the exact digits of every number, so what you see is what the file says.

Only open branches are drawn, and a branch shows its children 500 at a time, with a button for more. That keeps a file with a 100,000-item list as quick to open as a small one.

Search looks through every key and every plain value, at any depth, and lists the paths of the first 200 matches. Picking one opens the branches above it and selects it.

How to use it

  1. 1 Paste your JSON into the box. The tree appears below it.
  2. 2 Press the arrows to fold and unfold branches, or use Unfold all and Fold all.
  3. 3 Type in the search box to find a key or value anywhere in the document.
  4. 4 Pick a key to select it, then copy its JSONPath, its JSON Pointer or its value.

Good to know

  • Each folded branch shows how many keys or items it holds, so you can judge its size before opening it.
  • The JSONPath, such as $.users[3].email, can be pasted into the JSONPath Tester or into code.
  • The JSON Pointer, such as /users/3/email, is the form JSON Patch and JSON Schema $ref use.
  • Long strings are shortened in the tree. Copy value gives the full text.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Reading a large JSON file without getting lost

A formatted JSON file is readable when it is small. When it is an API response with hundreds of records, or a configuration export that runs to thousands of lines, scrolling through indented text stops working. You lose track of which object you are inside, and the key you want is somewhere on line 4,000. A tree view solves this. Each object and list becomes a branch you can fold, so you see the outline first and open only the part you care about.

This viewer shows every branch with a count, such as {12 keys} or [3,400 items], so you know the size of a branch before you open it. Branches open and fold with the arrow beside them, and Unfold all and Fold all work on the whole tree. Strings are shown in quotes and in the accent colour, numbers exactly as written, and long strings are shortened so a single huge value does not push the rest of the tree off the screen.

Search is the quickest way into a large document. Type part of a key or a value and the viewer lists the path of every match, at any depth: $.orders[812].customer.email, for example. Pick a match and the viewer opens every branch above it and selects it, so you see it in context. Search covers keys and plain values such as text, numbers, true, false and null. It stops at the first 200 matches and says so, so a search for a common letter stays fast.

Once you have found the value, the selected node gives you three things to copy. The JSONPath, such as $.orders[812].customer.email, works in the JSONPath Tester, in many test tools and in JavaScript after the $. The JSON Pointer, such as /orders/812/customer/email, is the form used by JSON Patch, JSON Schema references and many APIs. And the value itself is copied as formatted JSON, whole, even when the tree shows it shortened.

Large files stay quick because the viewer draws only open branches and shows children 500 at a time, with a button for the next 500. The parser keeps the exact digits of numbers and the order of keys, so what you see matches the file. The viewer takes up to 2 MB of JSON, and everything runs in your browser, so a response full of personal data or tokens is never sent anywhere.

Frequently asked questions

How large a file can it open?

Up to 2 MB of JSON. The tree stays fast past that size because only open branches are drawn, but parsing larger files on the page could freeze it, so it says so instead.

Does it change my numbers?

No. Numbers are shown with the digits they were written with, so a long ID is not rounded and 1.50 stays 1.50.

What does Unfold all do on a huge file?

It opens the branches that would be drawn anyway, the first 500 children of each, up to 5,000 branches. Opening everything in a very large file would make the page slow, so the rest stays folded until you open it.

Is my JSON uploaded?

No. Parsing, the tree and the search all run in this page.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.