Beautify or minify JSON with your choice of indentation
JSON Viewer
Find your way around a big, deeply nested JSON file without scrolling through thousands of lines.
Loading tool…
How to use json viewer
Paste JSON or open a .json file.
Open and close branches, or open two or three levels at once.
Search for a key or value and select a match to jump to it.
Select any key to see its path, such as $.staff[2].email, and copy it.
What this tool does
- Draws children only when a branch is opened, 100 at a time, so a 5 MB file opens almost instantly.
- Searches every key and value and opens the tree at the match you pick.
- Shows the item or key count of every collapsed branch.
- Copies a JSONPath-style path for any value.
How the result is verified
The tree is built from the parsed document, and the counts shown (values, objects, arrays, depth) come from a full walk of it, so you can check them against what you expect.
Frequently asked questions
How large a file can it open?
Files of tens of megabytes work in a desktop browser. The limit is your device's memory, since the whole document is parsed, but drawing stays quick because only opened branches are rendered.
What path format is copied?
A JSONPath-style path starting at $, with dots for simple keys and brackets for indexes or keys with spaces, such as $.items[0]["unit price"].
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Find JSON syntax errors with the exact line and column
Format, validate, tree view, schema, diff and CSV in one tabbed workspace
Compare two JSON documents by structure, with the path of every change