JSON Viewer

Paste JSON and read it as a collapsible tree, with item counts and value types. Runs in your browser, nothing is uploaded.

JSON text
TREE

The tree appears here as you type.

Read the structure, not the brackets

Raw JSON is fine for ten lines. An API response of a few thousand lines is another matter: the closing brackets of an object can be screens away from where it opens. A viewer replaces the text with a tree. Each object shows how many keys it has, each array how many items, and you open only the branch you care about.

This viewer opens the first two levels and leaves the rest collapsed. Arrays are shown 200 items at a time, so a file with a hundred thousand records opens without freezing the tab.

How to use it

  1. Paste your JSON in the input box, or load the sample.
  2. Click a node to open or close it. "Expand all" and "Collapse all" act on the whole tree.
  3. If the JSON is invalid, the error message gives the line, the column and a suggested fix.

Colour-coded types

Strings, numbers, booleans and null each have their own colour, so a number stored as a string ("42" instead of 42) is visible at a glance.

Private by design

The page parses your JSON with the browser's own JSON.parse. No request carries your data, so tokens and customer records stay on your machine.

Common questions

What is a JSON viewer?
A JSON viewer displays JSON as a collapsible tree instead of raw text. Each object and array becomes a node you can open or close, so you can read the structure of a large document without scrolling through brackets.
How do I view a JSON file online?
Paste the content of the file in the input box. The tree appears immediately on the right. Click a node to expand or collapse it, or use "Expand all" and "Collapse all". Nothing is uploaded: the file is read by your browser only.
What is the difference between a JSON viewer and a JSON formatter?
A formatter rewrites the text with indentation, and you still read text. A viewer turns the document into an interactive tree with item counts and value types, which is faster for exploring nested data. Use the formatter when you need the text itself.
Can I open a JSON file with errors?
No tree can be built from invalid JSON, but the viewer tells you the line and column of the first error and how to fix it (for example a trailing comma or single quotes). The JSON Repair tool can fix common problems automatically.
Is there a size limit?
There is no fixed limit. The tree only renders the nodes you open, so documents of several megabytes stay usable. Very large files are limited by the memory of your browser tab.
Is my JSON sent to a server?
No. Parsing and rendering run in this browser tab. The page makes no network request with your data, so it is safe for API responses, configuration files and tokens.