Paste JSON and get an instant, interactive tree diagram. Build org charts, file-system trees, decision trees, and taxonomies with multiple layouts, color schemes, and one-click SVG/JSON export - free, no signup, entirely in your browser.
3 Layout Modes
Vertical, horizontal, and radial orientation
4 Color Schemes
Default, pastel, vibrant, grayscale
100% Client-Side
Your JSON never leaves the browser
SVG & JSON Export
Plus shareable state links
A tree diagram (also called a hierarchy chart, organizational chart, or node tree) visualizes data with a single root node branching into child nodes, which can themselves branch into further children. Tree diagrams and org charts describe the same underlying shape - a root at the top, children fanning out below, grandchildren below those - the term used just depends on context: "org chart" in a business setting, "tree diagram" or "hierarchy chart" for taxonomies, file systems, or general parent-child data.
This tool turns a plain JSON object into an interactive, zoomable tree rendered with react-d3-tree, a D3.js-based rendering library. Paste a JSON structure with a name field and nested children arrays, and the tree renders instantly - no design software, no manual node placement, and no drag-and-drop layout work required. Click any node to collapse or expand its branch, drag siblings to reorder them, switch between vertical, horizontal, and radial layouts, and apply one of four color schemes to match your presentation style.
It's built for developers who already have hierarchical data in JSON form - from a CMS, an API, a database export, or a config file - and want a visual representation without writing custom D3 code, as well as for anyone who just wants a fast way to sketch an org chart, family tree, or decision tree.
1. Paste or Write Your JSON
Provide a root object with a name field and an optional children array. Each child can itself have a name, type, and further children - nest as deep as your hierarchy requires.
2. Load a Sample or Org Template
Not sure about the JSON shape? Click "Sample" for a fully populated example tree, or "Org Template" for a minimal company-structure starting point you can edit in place.
3. Enable Live Preview
With Live Preview on, the tree rebuilds automatically 300ms after you stop typing, so you can iterate on your JSON and watch the diagram update in real time.
4. Choose a Layout
Vertical layout reads top-to-bottom like a classic org chart. Horizontal layout reads left-to-right, useful for wide trees with many levels. Radial layout arranges the tree in a circular pattern, good for compact, symmetrical hierarchies.
5. Pick a Color Scheme
Choose Default, Pastel, Vibrant, or Grayscale - each maps node types (root, department, team, person, branch, leaf) to a coordinated color palette automatically.
6. Collapse, Reorder, and Refine
Click any node in the diagram to collapse or expand its subtree. Use the sibling list panel to drag-and-drop reorder nodes at the same level without editing raw JSON.
7. Export or Share
Export the finished diagram as a scalable SVG for print or presentations, export the underlying JSON to reuse in your own project, or copy a share link that reproduces the exact tree, layout, and color scheme.
Every tree is a nested JSON object. At minimum, each node needs a name. Optional fields give you more control over appearance and grouping:
{
"name": "CEO",
"type": "root",
"children": [
{
"name": "CTO",
"type": "department",
"children": [
{ "name": "Frontend Lead", "type": "team",
"children": [
{ "name": "Alice", "type": "person" },
{ "name": "Bob", "type": "person" }
]
}
]
},
{ "name": "CFO", "type": "department" }
]
}name - required. The label displayed inside the node.type - optional. One of root, branch, leaf, department, team, or person; controls the node's color under the active color scheme.color - optional. A hex color that overrides the color-scheme default for that specific node.attributes - optional. A key/value object of extra metadata to display alongside the node name.children - optional. An array of nested nodes using the same structure, recursively.Map reporting lines, departments, and roles so new hires, investors, and leadership can instantly see who reports to whom.
Visualize a folder structure, a website's information architecture, or an API's route hierarchy at a glance.
Lay out branching decision logic - troubleshooting flows, eligibility rules, or support-ticket routing - as a clear visual path.
Model eCommerce category structures (department → category → subcategory → product) for planning or documentation.
Represent generational relationships with each person as a node and descendants nested as children.
Plan course modules, prerequisite chains, or a documentation site's table of contents as a navigable hierarchy.
The classic top-down org chart shape. Best for hierarchies that are wider than they are deep - many siblings at each level, few levels of depth overall.
Reads left-to-right. Best for deep hierarchies with many nested levels - file-system trees and multi-level taxonomies usually read more naturally this way.
Arranges nodes in a circular pattern around the root. Best for compact, symmetrical trees where you want a distinctive, presentation-ready visual rather than a linear flow.
This tool renders your tree entirely client-side using react-d3-tree. Your JSON - which may contain real org structures, employee names, or internal project data - is never uploaded to a server for parsing or rendering.
A single root object with a required name field and an optional children array of nested objects using the same shape. See the JSON Tree Structure Reference above for a full example.
Yes. Use the collapse feature to hide deep branches by default, and consider grouping large teams under intermediate "team" or "department" nodes rather than listing every person at the top level.
No. All parsing and rendering happens locally in your browser. Nothing is sent to a server unless you explicitly generate a share link, which encodes the data in the URL itself rather than server-side storage.
SVG export gives you a scalable vector image of the rendered diagram, ideal for slides, print, or embedding on a webpage. JSON export gives you the raw tree data, ideal for reuse in code or another tool.
Yes. The tool works with any parent-child hierarchy - set each person as a node with their descendants nested as children, and use the "person" type to apply consistent coloring.
Discover more free developer tools that might interest you.
Read the how-to, then come back to this tool when you are ready to run it locally.