About JSON Tree Viewer
A JSON tree viewer shows a JSON document as nested, collapsible nodes instead of raw text. This tool parses the input with the JSON parser built into your browser, then renders each object and array as a section you can open or close, labelled with its number of keys or items. Strings, numbers, booleans, and null are colored differently. Rendering stops after 5,000 nodes so very large files do not freeze the page.
How to use JSON Tree Viewer
- Type or paste into the "JSON" box, or press "Use example" to try it with sample data.
- Set "Expand levels" if the defaults do not fit.
- The result appears below and updates as you type.
- Copy the result with the copy button, or download it as a file where that is offered.
Questions about JSON Tree Viewer
What is the difference between an object and an array in JSON?
An object is an unordered set of name and value pairs written in curly braces. An array is an ordered list of values written in square brackets. The tree labels objects with a key count and arrays with an item count.
Runs in your browser. Page last updated .