About the JSON Viewer tool
API responses, config files and log exports can contain thousands of nested keys. Reading them as raw text means endless scrolling and counting brackets. This JSON viewer turns any JSON into an interactive tree so you can fold away what you do not need and focus on the part you are debugging.
Each object and array can be collapsed or expanded, and collapsed nodes show how many keys or items they hold. Strings, numbers, booleans and null are coloured differently so types stand out. The filter box narrows the tree to keys and values that contain your search text, keeping their parents visible. Click any key or array index to copy its path, such as $.products[0].name, ready to use in JavaScript, jq-style tools or JSONPath queries.
Invalid JSON is reported with the line and column of the problem. Stat tiles show the root type, the number of object keys and the maximum nesting depth. Very large arrays render the first 500 items per level to keep the page responsive. Files are read locally and nothing is uploaded.
How to use JSON Viewer
- Paste JSON into “JSON input” or click “Open .json file”.
- Click the arrows to fold nodes, or use “Expand all” and “Collapse all”.
- Type in “Filter keys and values…” to find matching entries.
- Click a key or index to copy its path to the clipboard.
Features
Collapsible tree
Fold and unfold objects and arrays, with item counts on collapsed nodes.
Type colouring
Strings, numbers, booleans and null each have their own colour in light and dark mode.
Search filter
Show only the branches whose keys or values match your text.
Copy path on click
Get paths like $.address.geo.lat or $["odd key"] with one click.
Precise errors
Syntax errors show the line and column so you can fix broken JSON fast.
When to use it
- Explore a large REST or GraphQL API response while building a frontend.
- Find a setting buried deep in a package.json, tsconfig or app config file.
- Work out the exact path to a field for use in code or a data mapping.
- Inspect JSON logs or analytics exports without writing a script.
- Show a teammate the structure of a payload during a code review.
Frequently asked questions
What is the difference between a JSON viewer and a JSON formatter?
A formatter rewrites JSON as indented text. A viewer shows it as an interactive tree you can fold, search and click. Use the JSON formatter when you need the text output.
How big a JSON file can I open?
Files up to 20 MB can be opened. Parsing is fast, and each level shows up to 500 children at a time so the page stays responsive.
What path format is copied?
JavaScript-style paths starting with $, using dots for simple keys and brackets for indexes or keys with special characters, e.g. $.users[2]["first-name"].
Does it accept JSON with comments or trailing commas?
No. The viewer uses strict JSON parsing, so comments and trailing commas are reported as errors.
Is my data sent anywhere?
No. The JSON is parsed and displayed in your browser only.