Skip to content
whiteboard.tools

JSON to diagram: visualize JSON as a tree

Paste a JSON document and read its shape at a glance. Every object becomes a card with its fields; nested objects and arrays branch off to the right.

rootorderid: "ord_8f31"status: "paid"total: 129.5customername: "Ada Lovelace"email: "ada@example.com"vip: trueitems [2]items[0]sku: "KB-75"name: "Keyboard"qty: 1price: 99items[1]sku: "CB-USB"name: "USB-C cable"qty: 2price: 15.25tags [2]"gift""express"
Download

Runs in your browser. Nothing you type or drop here is uploaded.

How to use it

  1. Paste JSON into the editor. API responses, config files and OpenAPI documents all work.

  2. Read the diagram: each card lists the plain values of one object, and arrows lead to nested objects and arrays.

  3. Open it in the whiteboard to annotate it, or download an image for your docs.

How the diagram is built

Strings, numbers, booleans and nulls are listed inside the card of the object that holds them. An object or a non-empty array becomes its own card, connected to its parent and titled with its key. Arrays show their length, and array items are labelled with their index.

Made for explaining, not just inspecting

JSON viewers are good at exploring data. This tool is for the next step: showing a payload to someone else. The result is a normal whiteboard drawing, so you can circle the field that matters, cross out what is deprecated, and paste the image into a pull request.

Large documents

A diagram with thousands of nodes helps nobody, so long arrays and very large objects are shortened and marked with a count of what was left out. For a full view of a big file, trim it to the part you want to explain.

Questions

Is my JSON uploaded anywhere?
No. Parsing and layout run entirely in your browser, which makes the tool safe for payloads that contain internal field names or sample customer data.
Can I use it for YAML or XML?
Not directly. Convert to JSON first; most editors and command-line tools such as yq can do that in one step.
What happens with invalid JSON?
The preview keeps the last valid diagram and the error from the JSON parser is shown under the editor, including the position where parsing failed.

Further reading

Related tools