JSON viewer
About JSON Viewer
This JSON viewer shows any JSON document as a collapsible tree. Paste an API response or open a .json file, then expand only the objects and arrays you care about.
Each object shows its key count and each array its item count, so you can see the shape of a large payload before you read it. Switch to the code view for formatted, highlighted JSON you can copy.
Runs in your browser. Nothing is uploaded.
How it works
Tree view by default
The viewer opens in tree view. The first two levels are expanded and deeper levels start collapsed. Click any object or array to open or close it.
Counts at a glance
A collapsed object shows {…} with its number of keys, and a collapsed array shows […] with its number of items. That makes it easy to spot an empty list or an unexpectedly large one.
Code view
Use the code toggle above the output to see the same document pretty-printed with 2-space indentation and syntax colors. Copy and Download use this formatted text.
Errors show where to look
The viewer parses strictly per RFC 8259. If the JSON is invalid, you get the parser message and the line and column of the first problem, with a button that jumps to it.
Frequently asked questions
How do I open a JSON file in the viewer?
Click Upload and pick the file, or drag it onto the input pane. You can also paste the text. The file is read in your browser and is never uploaded.
Can I view large JSON files?
Yes, within your device's memory. Collapsed branches are not rendered, so keeping deep levels closed helps with big payloads.
What is the difference between the JSON viewer and the JSON formatter?
Both parse and pretty-print JSON. The viewer opens in tree view for reading and exploring. The formatter is for producing formatted or minified text with a chosen indentation.
Can I edit the JSON here?
You can edit the text in the input pane and the tree updates as you type. To build JSON with forms instead of text, use the JSON creator.
Does the viewer change my data?
No. It only displays the parsed document. Like any JavaScript-based tool, integers above 2^53 lose precision when parsed.
Learn more
Sources & last verified
We checked this tool's behavior and the claims on this page against the specifications below on . The tool runs in your browser, so the output you see is exactly what the engine produced.
Found a wrong result or an outdated claim? Report an error and we will check it again.