JSON Tree Viewer
Turn a large JSON document into a clean tree that shows every key, how many items each list holds and what sits at the leaves. Private, and processed in your browser.
- Free forever
- Handled in this tab
- Limit tree depth
- Shows value types
- Runs on your device. Files are never uploaded.
- Free and unlimited. No sign-up, no watermark.
JSON tree viewer in three steps
No account, no email, no waiting for an upload.
- STEP 01
Load your JSON
Add text or open a .json, .geojson or .txt file.
- STEP 02
Choose what to show
Turn on 'Show value types' to see string, number, boolean or null next to each leaf. Set 'Levels to show' to cut off deep branches (0 means all).
- STEP 03
Read or copy the tree
The result is plain text, so you can copy it into a ticket or a doc. A note shows how many lines it has.
What JSON tree viewer does, and what it doesn't
We'd rather tell you up front than surprise you after the download.
What you get
- Counts on every branchObjects show their key count and arrays their item count, such as {4 keys} or [120 items].
- Keys and indexes togetherObject keys appear by name and array entries by position, like [0] and [1], so you can build a path in your head.
- Depth controlHide everything below a chosen level to get an overview of a huge document.
- Optional typesSpot a number that was stored as a string, or a null where you expected a value.
- Safe for long valuesStrings over 120 characters are shortened so one big field does not push everything else off screen.
Good to know
- A text tree, not an expandable widgetYou cannot collapse branches by clicking. Use the depth setting instead, or search in the result with your browser.
- Long strings are shortenedTo read a full value, open the data in the JSON formatter.
- Valid JSON onlyBroken input shows the line and column of the problem. The JSON validator gives a fuller report.
Your data never leave your device
The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.
Typical online tool upload
Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.
Mediaextractr no upload
The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.
When people use JSON tree viewer
Understand a new API
Get the shape of a response before you write a parser.
Scan a big export
See top-level sections and their sizes without scrolling through thousands of lines.
Teach nesting
Show a class how objects and arrays are stacked.
Document a payload
Paste a tree into a README to describe fields at a glance.
Mediaextractr vs typical upload tools
| MediaextractrPrivate | Typical upload tools | |
|---|---|---|
| Your file is uploaded | Never | Yes |
| Sign-up needed | No | Often, after a few files |
| Daily file limit | None | Often 1–2 free files |
| Watermark | Never | Sometimes |
| Wait for upload & download | No | Yes |
| Speed on very large files | Depends on your device | Depends on their servers |
Reading the tree
The first line starts with $, the root. Under it, branches use the box-drawing characters you may know from a directory listing. Each object key is followed by its type or value. Arrays list entries as [0], [1], and so on.
A line like items: [3 items] means the key items holds a list with three entries. A line like name: "Ada" is a leaf with a string value.
Finding your way in large documents
Start with Levels to show set to 1 or 2 for the outline. Raise it as you get closer to the part that interests you. When you spot a branch of interest, query it directly:
- Use the JSON path tester to pull out the values with an expression.
- Use JSON flatten to turn every leaf into a single key like user.address.city.
- Use JSON to TypeScript to get types for the structure.
- Use JSON schema generator to describe it formally.
Sharing a structure outline
A tree with the depth limited to two or three levels is a compact way to describe an API response in a ticket or a README. Turn on value types so the reader sees what each field holds, and copy the text. It shows the shape without exposing every value, which is useful when the data itself should not be shared.
Questions, answered
What does a JSON tree viewer do?
It shows the nesting of a JSON document as an indented tree, so you can see keys, lists and values without reading the raw text.
Does viewing a JSON file as a tree upload it?
No. The tree is built from your text by script in this page, so what you open stays on your device.
Can I collapse and expand nodes?
Not interactively. Use the 'Levels to show' setting to limit how deep the tree goes.
Why are some values cut short?
Strings longer than 120 characters are shortened with an ellipsis, to keep the tree readable.
How do I see data types?
Turn on 'Show value types' and each leaf is labelled string, number, boolean or null.
Does the tree display well on mobile?
It does. Output is plain monospaced text, which scrolls sideways in current mobile browsers.