About this tool
Large JSON is hard to read as text: an API response with a few hundred lines already hides its structure. This JSON viewer shows the document as a collapsible tree. Each object and array shows how many entries it has, so you can see the shape at a glance and open only the branches you care about.
How to use the JSON viewer
- Paste JSON, drop a
.jsonfile on the box, or click Open file. - Click a row to select it, and click an object or array again (or its arrow) to expand or collapse it. Arrow keys move through the tree; Enter and the left and right arrows open and close nodes.
- Type in Search to highlight every key and value that contains the text. The branches containing matches open automatically.
- The path bar shows the selected node’s path, such as
$.data.object.charges[0].outcome. Copy path gives you an expression you can use in JavaScript, jq or the JSONPath tester; Copy value copies that node’s JSON.
Built for big files
The tree is built lazily: child nodes are only created when you expand their parent, and long arrays render 200 items at a time with a “Show more” button. That keeps multi-megabyte files usable in a normal browser tab. Everything runs locally, so private API responses and customer data never leave your machine.
Reading paths
Paths use JSONPath notation: $ is the whole document, .name selects a property, [0] an array item, and keys with spaces or symbols use brackets: $["first name"]. In JavaScript, drop the $ and prefix your variable: data.charges[0].outcome.
Want to change values, not just look? Use the JSON editor. To reformat the text itself, use the JSON formatter.
FAQ
How do I view a JSON file as a tree?
Open or drop the file on the box above (or paste its contents). The viewer shows it as a collapsible tree with item counts on every object and array.
How do I find the path to a value in JSON?
Click the value in the tree. The path bar shows its JSONPath, such as $.data.items[2].price, and “Copy path” copies it.
Can I search inside JSON?
Yes. Type in the search box to highlight every key and value containing that text. Branches with matches expand automatically and the match count is shown.
Can it open large JSON files?
Yes. Nodes are only rendered when expanded and long arrays load in pages of 200, so files of many megabytes stay responsive. Very large files are kept out of the text box to keep the page fast.
Is my JSON uploaded?
No. Parsing and rendering happen in your browser.