Tools / Editor

JSON & YAML to Mermaid Diagram

Visualize a JSON or YAML hierarchy as a Mermaid flowchart. Inspect nested objects, arrays and scalar values, then copy the generated source.

Inspect nesting without inferring business rules

Visualize the nesting inside one JSON or YAML document. Objects and arrays become branches, while scalar values remain visible at the leaves. This is useful for explaining a small configuration file or API payload without manually tracing every nested key.

A worked example

Input

project:
  name: Customer portal
  services:
    - name: API
      replicas: 2
    - name: Worker
      replicas: 1

Diagram source

flowchart TD
n0["root {}"]
n1["project {}"]
n0 --> n1
n2["name: Customer portal"]
n1 --> n2
n3["services []"]
n1 --> n3
n4["0 {}"]
n3 --> n4
n5["name: API"]
n4 --> n5
n6["replicas: 2"]
n4 --> n6
n7["1 {}"]
n3 --> n7
n8["name: Worker"]
n7 --> n8
n9["replicas: 1"]
n7 --> n9
The project contains a services array. Each service has its own name and replica count, so the diagram reveals containment rather than a network of service calls.

How to use this tool

  1. Paste a valid JSON or YAML document with the data you want to explain.
  2. Remove secrets and unrelated values before conversion. Values appear in the resulting diagram.
  3. Preview the hierarchy and reduce large arrays or deeply nested sections until labels are readable.

What to check

DetailGuidance
Meaning of arrowsConnections mean parent-child containment. They do not imply execution order or dependencies between values.
LimitsUse at most 50,000 characters, 32 nesting levels, and 300 diagram nodes. Large documents should be split into focused sections.
YAML restrictionsDuplicate mapping keys and aliases are rejected. Resolve aliases and correct duplicate keys before trying again.

Common questions

Will it understand my configuration schema?

It displays the structure, not the domain semantics. A property called database is simply a key; the converter does not validate its connection settings or discover relationships outside the document.