JSON Viewer
Explore a JSON document as an expandable tree instead of a wall of text, with a summary of its structure.
Processed locally in your browser/ Your data stays in your browser.
What is JSON Viewer?
A JSON viewer shows nested data the way you think about it: objects and arrays that you can open and close, with keys, values and item counts visible at each level. It is the fastest way to understand the shape of an unfamiliar API response or a big configuration file.
This viewer validates your input with a strict parser, renders the data as a collapsible tree and adds a summary next to it: root type, top-level size, total number of keys, nesting depth, byte size and how many objects, arrays, strings, numbers, booleans and nulls it contains.
How does it work?
- Paste your JSON or open a file.
- Expand and collapse nodes in the tree to drill down into the part you need.
- Read the summary rows for the depth, key count and value-type breakdown.
- Copy a path or value for use in your code, or move to JSON Path Finder to query the data.
Common use cases
- Understanding the structure of a large third-party API response.
- Locating a deeply nested field in a configuration or a GeoJSON file.
- Checking how many items an array holds without scrolling through it.
- Sharing a quick structural overview of a payload during a code review.
Examples
Try this input in the tool above:
{"user":{"id":7,"name":"Ada","roles":["admin","dev"],"prefs":{"theme":"dark","beta":true}},"items":[{"sku":"A1","qty":2},{"sku":"B2","qty":1}],"total":42.5}Root type: object Top-level keys: 3 Total keys: 13 Nesting depth: 3 Size: 156 B (156 bytes) Values: 5 objects · 2 arrays · 6 strings · 4 numbers · 1 booleans · 0 null
Privacy
JSON Viewer runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.
Limitations
The tree shows JavaScript numbers, so integers above 9,007,199,254,740,991 are displayed rounded (a warning is shown). Use the JSON Formatter to keep them exact.
Frequently asked questions
Can it open very large JSON files?
Yes, within the limits of your browser’s memory. Files above a few hundred kilobytes are processed in a background worker, but expanding thousands of nodes at once can still be slow.
What do the summary numbers mean?
Total keys counts every property name at every level, depth is the deepest nesting of objects and arrays, and the value counts show how many strings, numbers, booleans and nulls the document contains.
Is the data uploaded to a server?
No. The tree is built in your browser and nothing leaves your device.
Related tools
JSON Formatter & Beautifier
Turn a minified or messy JSON document into readable, consistently indented text, with a precise error message if the JSON is invalid.
JSON & Data
JSONPath Finder
Type a JSONPath expression and instantly see the values it selects in your JSON, together with the normalized path of each match.
JSON & Data
JSON Validator
Check whether a piece of text is valid JSON and locate the exact character where it goes wrong.
JSON & Data
JSON to TypeScript
Paste a JSON sample and get ready-to-use TypeScript declarations that describe its shape.
JSON & Data
JSON Key Sorter
Reorder the keys of every JSON object alphabetically to get a stable, canonical document.
JSON & Data
JSON Diff – Compare Two JSON Documents
Paste two JSON documents and see what changed in the data, regardless of key order or indentation.
JSON & Data
JSON Size Calculator
Paste a JSON document to see how many bytes it really weighs, how much minifying and gzip save, and which values take the most space.
JSON & Data