JSON Tree Viewer
Explore complex nested JSON hierarchies visually. Features interactive collapsibles, data type indicators, search filtering, and node path copying.
Tree
How to use JSON Tree Viewer
- Paste JSON or load the sample.
- Expand and collapse objects and arrays, or use Expand all and Collapse all.
- Type in the filter box to show only matching keys or values.
- Use Path or Copy on any row to copy its JSONPath or value.
About JSON Tree Viewer
Explore JSON as a collapsible tree. Expand and collapse objects and arrays, filter by key or value, and copy any value or its JSONPath with one click, which makes large API responses much easier to navigate than raw text.
Related tools: JSON Formatter & Validator, Base64 Encoder / Decoder, URL Encoder / Decoder, JWT Decoder
Navigating large JSON
Each object shows how many keys it has and each array how many items, so you can judge size before expanding. Expand all and Collapse all reset the whole tree at once.
The filter keeps any branch that contains a matching key or value and opens it automatically, so searching for an email address takes you straight to the record that contains it.
Copying paths and values
Path copies the JSONPath of a node, such as $.data.members[0].email, ready to use in tests, jq-style queries, or code. Copy grabs the value itself, and for objects and arrays it copies the whole branch as formatted JSON.
Values are color-coded by type: strings, numbers, true and false, and null, so mismatched types such as a number stored as a string stand out.
Common uses
- Exploring APIs
- Find the field you need in a large response without scrolling raw text.
- Writing tests
- Copy exact JSONPaths for assertions.
- Debugging data
- Spot null values and wrong types in nested records.
- Documenting payloads
- Show teammates the structure of a response.
Questions about JSON Tree Viewer
- What happens if my JSON has syntax errors?
- The tree is replaced by your browser's error message, which usually includes where parsing failed. Fix the JSON on the left and the tree reappears.
- How is this different from the JSON Formatter?
- The formatter produces indented text to copy. The tree viewer is for exploring: collapsing, filtering, and copying individual paths and values.
- Are action buttons visible on phones?
- Yes. On touch screens Path and Copy are always shown; with a mouse they appear when you hover a row.
- Is my JSON uploaded?
- No. Parsing and display happen in your browser.
- What is a JSONPath?
- A short address for a value inside JSON, like $.data.members[0].email. Many testing tools and query languages use it to point at a field.
Comments
Questions, ideas, or a bug in JSON Tree Viewer? Let us know.