JSON Tools · Guide
JSON/YAML Tree Visualizer guide
Render JSON or YAML — data or JSON Schema — as a copyable text tree.
Open the JSON/YAML Tree VisualizerAbout the JSON/YAML Tree Visualizer
Large JSON and YAML documents are hard to grasp at a glance. This tool renders them as a compact text tree — like the output of the tree command — that you can paste into documentation, pull requests, tickets or chat.
It automatically detects JSON Schema documents and shows each property's type, whether it is required, and constraints like minLength, enum or format.
How to use
- Paste JSON or YAML. The format is detected automatically (JSON first, then YAML).
- The tool decides whether the input is a JSON Schema or plain data and shows why. Override the mode if needed.
- Choose Unicode (
├──) or plain ASCII (|--) drawing characters. - Copy the tree or download it as a
.txtfile.
Examples
Data payload
Input
{"user":{"name":"Ada","roles":["admin"]}}Output
root {object · 1}
└── user {object · 2}
├── name: "Ada" (string)
└── roles [array · 1]
└── [0]: "admin" (string)JSON Schema
Input
{"type":"object","required":["id"],"properties":{"id":{"type":"integer","minimum":1},"email":{"type":"string","format":"email"}}}Output
root: object
├── id: integer (required) [minimum: 1]
└── email: string [format: email]How schema detection works
- A
$schemaURI pointing at json-schema.org marks the input as a schema. - Otherwise, a valid JSON Schema
typetogether with schema-shapedpropertiesoritemsis treated as a schema. - Objects that merely contain a field called
type(e.g.{"type": "user"}) are treated as data. - References (
$ref) are shown, not resolved.$defs/definitions,oneOf,anyOfandallOfappear as branches.
Frequently asked questions
Is OpenAPI supported?
Paste a schema object from components.schemas and it will render as a schema. A complete OpenAPI document is rendered as data.
How big can the tree get?
Up to 5,000 nodes and 64 levels deep; larger structures are truncated with a “… more” marker so the page stays fast.
Is my input uploaded?
No. Parsing and rendering happen in your browser.
Ready to try it? Everything runs locally in your browser.
Open the tool