Skip to content
devutils.info

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 Visualizer

About 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

  1. Paste JSON or YAML. The format is detected automatically (JSON first, then YAML).
  2. The tool decides whether the input is a JSON Schema or plain data and shows why. Override the mode if needed.
  3. Choose Unicode (├──) or plain ASCII (|--) drawing characters.
  4. Copy the tree or download it as a .txt file.

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 $schema URI pointing at json-schema.org marks the input as a schema.
  • Otherwise, a valid JSON Schema type together with schema-shaped properties or items is 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, anyOf and allOf appear 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