Paste JSON to see the tree diagram
Scroll to zoom · Drag to pan · Download as SVG
JSON to Diagram
Paste any JSON object and instantly see it as a hierarchical tree diagram. Leaf nodes show their values; object and array nodes show their key count. Switch to the Mermaid tab to get Mermaid flowchart syntax you can embed in GitHub markdown, Notion, GitLab, or render at mermaid.live.
Where to Use Mermaid Output
GitHub Markdown
Wrap in ```mermaid code fences — renders natively in .md files and PRs
Notion
Use the Mermaid block — paste the output and Notion renders it
GitLab
GitLab markdown supports mermaid blocks natively
Mermaid.live
Paste at mermaid.live for a full interactive preview and PNG export
Where a Diagram Beats Raw JSON
- ▸API documentation — Drop a Mermaid diagram of a response shape straight into a README or internal wiki page instead of a wall of formatted JSON.
- ▸Pull request descriptions — Show reviewers exactly how a payload's structure changed with a diagram GitHub renders natively from a mermaid code fence.
- ▸Design discussions — Visualize a proposed data model in a meeting or Notion doc before anyone writes a schema or database table.
- ▸Onboarding docs — Give new team members a picture of a core object's shape instead of expecting them to reverse-engineer it from code.
Reading the Generated Mermaid Syntax
The output uses Mermaid's flowchart syntax with an LR (left-to-right) direction — flowchart LR followed by node definitions and -->arrows connecting a parent key to each child. Object and array nodes are labeled with their key or index and a count of their children; leaf nodes show the literal value. Because it's plain text, you can hand-edit the generated syntax — rename a node label, change the direction to TD (top-down) for a taller diagram, or merge it with other Mermaid diagrams in the same document.