JSON Viewer with Tree, Table, and Diagram Views
Open a JSON document and read it the way the task demands. Fold it into a tree, line it up as a sortable table, read the exact text, or map it as a node graph. Paste your JSON, open a file, or fetch a URL, then pick the view that fits the data.
What the JSON viewer does
A JSON viewer helps you read data, not change it. Raw JSON is one long block of braces. A viewer shows the same data as something you can scan: nested branches, rows of records, or a graph.
The box at the top of this page formats what you paste and gives a one-line summary of its shape. The views themselves are in the full editor, which opens with the same document. The editor gives JSON four views, and you can switch between them without reloading.
Key features
Each view answers a different question. Pick the one that matches what you want to know, and switch at any time. The document is parsed once, so a switch does not reload it.
- Tree shows collapsible nodes. Objects and arrays carry a count, such as {4} or [12], so you can size a branch before you open it.
- Raw shows the formatted text with line numbers, and marks problems on the line where they occur.
- Table finds arrays of objects and shows them as rows and columns. Click a column header to sort. Use the filter icon on a header to filter. When a document holds several arrays, a Viewing list lets you pick one.
- Diagram draws the document as a node graph, with up to 500 nodes. It is a Pro view.
- Smart previews add hints in the tree. A timestamp gets a readable date, a color gets a swatch, a URL becomes a link, and base64 gets a decode button.
- Search matches keys and values. Press Cmd+F (Mac) or Ctrl+F (Windows, Linux), and turn on regex or case sensitivity if you need them.
- Export saves what you see: the tree as a PNG or SVG image, and the table as a CSV file.
How to view JSON online
Start with the box on this page, then move to the editor for the views. The box runs in your browser and takes documents up to 512 KB. Larger documents go straight to the editor.
- Paste your JSON into the box at the top of this page, or select Try an example.
- Read the summary line. It tells you the shape, such as Object with 3 keys, 3 levels deep.
- Select Open in full editor. The editor opens in the Tree view.
- Select the Table tab to read an array of objects as rows. Click a header to sort.
- Select the Raw tab to see the exact text with line numbers.
- Press Cmd+F (Mac) or Ctrl+F (Windows, Linux) and type a key or a value to search.
- To view a file instead, drop it on the editor. To view an API response, press Cmd+K or Ctrl+K and choose Fetch URL.
Worked example: one API response in three views
Say an API returns a page of users on one line. The first part of the sample below is the input. The rest shows what the Table and Tree views present after you open it in the editor.
The Table view finds the data array and lists two rows and four columns. The Tree view shows the same records as branches. It also tags created_at with a readable UTC date, because the key name ends in _at and the number falls in a plausible date range. The value itself stays 1700000000.
Input
{"data":[{"id":"u_1","name":"Ana Ruiz","plan":"pro","created_at":1700000000},{"id":"u_2","name":"Ben Ito","plan":"free","created_at":1700086400}],"page":1,"has_more":false}
Table view (Viewing root.data, 2 rows, 4 columns)
id name plan created_at
u_1 Ana Ruiz pro 1700000000
u_2 Ben Ito free 1700086400
Tree view
{3}
"data": [2]
0: {4}
"id": "u_1"
"name": "Ana Ruiz"
"plan": "pro"
"created_at": 1700000000 · Nov 14, 2023, 22:13 UTCCommon use cases
A viewer earns its place when you meet data you did not write and need to understand it fast. These are the common jobs people bring to it, from API work to log reading.
- Check the shape of an unfamiliar API response before you write code against it.
- Scan a list of records in the Table view, then sort by the column you care about.
- Open a GeoJSON or other .json export and find the feature you need.
- Read the claims in a JSON Web Token that appears inside a response.
- Inspect a stringified JSON value that a log line or queue message carries inside a string.
- Find the largest array in a big file by looking at the child counts.
The Diagram view is Pro
Tree, Raw, and Table are free. The Diagram view turns objects and arrays into linked nodes. It helps when you need to see how a document is laid out, not read its values. Select the Diagram tab to see a preview. Pro costs US$19.99, paid once, with lifetime access and no subscription.
Frequently asked questions
What is the best way to view a large JSON file?
Open it in the editor. A document of 1 MB or more is parsed in a background worker, and the tree opens with the root collapsed. The page stays responsive. Open only the branch you need, or use the Table view for an array of records.
Can I view JSON from a URL?
Yes. In the editor, press Cmd+K or Ctrl+K and choose Fetch URL. On the web, if the site blocks cross-origin requests, Prettify asks before it uses a public proxy, because the proxy sees the full URL.
Does the viewer decode a JSON Web Token?
Yes. A key icon follows a token in a string. Select it to see the header, the payload, and the iat, nbf, and exp times as dates. The token is decoded on your device and is never sent anywhere. The signature is not checked.
Why does the Table view say it found no array of objects?
The Table view needs an array whose items are objects, like a list of records. A single object, or an array of plain numbers, has no rows. Use the Tree or Raw view for that data.
Are huge numbers like Snowflake IDs shown correctly?
Yes. Numbers outside the safe range of JavaScript, such as a 19-digit ID, display and copy with every digit they have in the source. They are not rounded.
Do I have to pay to view JSON?
No. The Tree, Raw, and Table views, search, and path copying are free with no sign-up. Only the Diagram view needs Pro.