JSON Viewer
A JSON viewer turns a wall of JSON into a collapsible tree you can read. Paste an API response, config, or log line, then expand branches, search keys and values, and click any node to copy its JSONPath, a JavaScript accessor, or the value itself. Parsing uses JSON.parse in your tab; nothing is uploaded.
Updated
Long API payloads are hard to read even after pretty-printing. This JSON viewer parses your paste locally and renders it as a tree: objects show their key count, arrays their length, and strings, numbers, booleans, and null are colour-coded. Expand all, collapse all, or open two levels to get the shape at a glance. A stats line counts values, objects, arrays, keys, and the maximum nesting depth.
Type in the search box to highlight every key or value that contains your text — parent branches open automatically so matches are visible. Click a node to see its JSONPath (for example $.items[0].sku) and the matching JavaScript accessor (data.items[0].sku), and copy either one or the subtree as pretty JSON. The page is read-only: it does not edit, validate against a schema, or fetch URLs, and nothing is written to localStorage or sent anywhere.
Paste an object, array, or API response. Standard JSON only — no comments or trailing commas. Parsed in this tab; nothing is uploaded.
Click ▸ to expand a branch and click a key to see its path and value. Closing the tab drops the workspace — nothing is uploaded or written to localStorage. Need indented text instead of a tree? Use JSON Formatter.
How does the JSON Viewer work?
1. Paste JSON
Paste an object, array, or API response into the input, or press Load example. Standard JSON only — invalid input shows the parser error with a line and column where the browser reports one.
2. Explore the tree
Click ▸ to open a branch, or use Expand all, Collapse all, or Level 2. Objects show their key count and arrays their length; leaf values are colour-coded by type.
3. Search keys and values
Type in the search box to highlight matching keys and values. Parent branches open automatically, and a counter shows how many nodes matched.
4. Copy a path or value
Click any key to see its JSONPath and JavaScript accessor, then copy either one or the selected value as pretty JSON. Close the tab when you are done; nothing is kept.
Questions about JSON Viewer
- What is a JSON viewer?
- A JSON viewer displays JSON data as a navigable tree instead of raw text. You can collapse and expand objects and arrays, see how deep the data goes, and jump to the value you need. This one runs in your browser and also lets you search and copy the path to any node.
- Is my JSON uploaded to a server?
- No. The JSON is parsed with JSON.parse in this tab and rendered locally. The page does not send your data to Page Utils or any API and does not write it to localStorage. Closing or reloading the tab clears it.
- How is the JSON Viewer different from the JSON Formatter?
- JSON Formatter rewrites JSON as indented or minified text you can copy. JSON Viewer keeps the data as an interactive tree: you expand branches, search, and copy paths. Use the formatter when you need text output and the viewer when you need to understand or navigate the structure.
- What is a JSONPath and how do I copy it?
- A JSONPath describes where a value sits, starting from $ for the root — for example $.items[0].sku. Click any node in the tree and the viewer shows its JSONPath and the equivalent JavaScript accessor such as data.items[0].sku. Use Copy JSONPath or Copy JS path to grab either one.
- Can I search inside large JSON?
- Yes. The search box matches keys and primitive values case-insensitively, highlights every match, and opens the parent branches so matches are visible. Very large pastes (many megabytes) are limited by your browser's memory, so collapse branches you do not need.
- Why does my JSON show an error?
- The viewer accepts standard JSON only. Trailing commas, comments, single-quoted strings, unquoted keys, and NaN are not valid JSON and will show the browser's parser message, with a line and column when the browser provides an offset. Fix the input and the tree appears immediately.
- Can I edit JSON or validate it against a schema here?
- No. This page is a read-only viewer: it checks that your text is valid JSON and shows the structure, but it does not edit values or validate against a JSON Schema. To draft a schema from a sample, use the JSON Schema Generator; to reformat text, use the JSON Formatter.
- Does the viewer keep key order and big numbers exactly?
- Key order follows the parsed object, which matches your input for normal string keys. The tree displays each number's original spelling — including 64-bit IDs like 12345678901234567890, 1.50, 1E5, and -0 — via a raw token map, rather than rounding them to JavaScript doubles.
What else can I open?
- JWT Token DecryptDecrypt a compact JWE locally with Web Crypto.
- JSON FormatterPretty-print or minify JSON entirely in the browser.
- JSON MinifyMinify JSON to compact output in the browser — nothing uploaded.
- JSON Schema GeneratorGenerate a JSON Schema from a JSON sample in the browser — no upload.
- JSON to CSVConvert JSON arrays to CSV in the browser.
- Developer toolsSee every live developer utility on the hub — no empty URLs.
These tools run in your browser. Page Utils does not store, upload, or write to localStorage the keys, tokens, or text you paste. Results are a convenience aid, not legal, tax, or security advice.