ToolGuest
Global · Tier-1 optimized
✓Opens in tree view · key counts · type colours

JSON Viewer & Tree Explorer

Open a deeply nested response as a tree instead of a wall of text. Every node shows its key count or item count, and every value is coloured by type.

Collapsible nodes Key & item counts Type colours No uploads
0 B input 0 B output 0% vs input 0 values 0 levels deep
Input JSON

Drop a .json file anywhere in this pane — it is read with FileReader in this tab.

0 lines · 0 characters · 0 B
Formatted output
0 lines · 0 characters · 0 B

Parsed with the native JSON.parse in your browser. Zero network requests, no upload endpoint.

AI summary

What does ToolGuest JSON Viewer show? ToolGuest JSON Viewer renders a JSON document as a collapsible tree in the browser. Each object shows its key count, each array its item count, and every value is colour-coded by type, so a wrong field or an empty array is visible without scrolling. Nothing is uploaded.

Complete your JSON debugging workflow Diff Checker Base64 Encoder Epoch Converter
How it works

Explore a JSON payload in three steps

  1. 1

    Paste the response

    This page opens in tree view, so the structure appears as soon as the sample or your payload is parsed.

  2. 2

    Collapse what you do not need

    Close a branch to hide its children. Counts stay visible on the summary line, so you keep the shape without the noise.

  3. 3

    Switch to code when you need text

    The Code button shows the same document formatted, ready to copy or download.

Reading the tree

Key counts, item counts and what the colours mean

A summary line reads like an object or array with a count: five keys, three items. That count is the fastest way to spot an unexpected empty array, a missing nested object or a response that returned more records than the endpoint documents.

Values are coloured by type. Strings are green, numbers amber, booleans blue and null pink, so a null where you expected a number stands out before you read a single key. Keys are violet, which keeps the hierarchy legible when branches are nested several levels deep.

Large payloads

What happens when a payload is too big for a tree

Rendering tens of thousands of nodes would freeze a tab, so the viewer caps a tree at six thousand values and each branch at two hundred and fifty children. When a cap applies, the tree says so and points you at the code view rather than silently truncating.

For a payload that large, the practical workflow is to minify and download it, then inspect a slice. The telemetry strip still reports the full byte size and value count, so you know exactly what you are dealing with before you start filtering.

Legend

What each symbol in the tree means

The tree uses the same conventions as a browser console, with one addition: counts on every branch. Here is the full legend.

You seeTypeWhat it tells you
▸ object 5 keysObjectCollapsed branch with five members. Click to expand.
▾ array 3 itemsArrayOpen branch with three elements, in their original order.
"value" in greenStringA quoted string; escapes are shown as they appear in JSON.
42 in amberNumberA JSON number, including decimals and exponents.
true in blueBooleanA boolean literal, either true or false.
null in pinkNullAn explicit null, which is different from a missing key.
FAQ

JSON viewer questions

What is a JSON tree viewer used for?

It turns a nested document into something you can navigate. Instead of scrolling a formatted block, you collapse the branches you do not care about, read key and item counts, and spot an unexpected null, empty array or wrong type without losing your place.

Does the tree view show the whole document?

Yes, up to a safety cap. A tree is rendered for documents with six thousand values or fewer, and each branch shows up to two hundred and fifty children. Above that the viewer says so and points you to the code view, which always holds the full text.

Can I copy a single value out of the tree?

Not directly, because clicking a value would fight with collapsing branches. Switch to Code view, where the same document is formatted as plain text, and select the value there. The Copy button always copies the whole output, never a single node.

Is the JSON I paste into the viewer kept anywhere?

No. The tree is built in the tab from the parsed value and disappears when you close or reload the page. There is no server call, no local storage entry and no analytics event that carries the payload to anyone.

Why does the viewer show a number differently from the source?

JSON numbers are parsed as JavaScript doubles. A very large integer can lose precision, and a value written as 1.0 is displayed as 1. If an identifier must survive unchanged, store it as a string in the API response rather than as a number.

The cluster

All JSON Formatter, Validator & Viewer Tools

Seven pages, one client-side engine. Every tool formats, validates and minifies in the same workspace, and each page opens with the mode its name promises — a validator that lands on errors, a minifier that shows the bytes saved, a viewer that starts in the tree.

Last updated ·Reviewed by the ToolGuest editorial team