Format Code Now
/

JSON Visualizer: See JSON as a Graph

FV-54

Paste JSON and see its structure as a tree of linked boxes: objects, arrays and values, each type in its own color. Download the graph as SVG or PNG.

Runs in your browser. Nothing is uploaded.

JSON

Tree graph

JSON tree: tree diagram of the JSON structure, 20 nodes, 4 levels.

How to use it

  1. Paste JSON or open a .json file.
  2. Read the tree from left to right: the root, then its keys, then their children.
  3. Lower the depth to fold deep levels, or raise the node limit for bigger documents.
  4. Download the graph as SVG or PNG to put it in documentation.

Reading the graph

The root is on the left and every key or array item is a box linked to its parent. Objects show how many keys they hold in braces, such as customer {3}, and arrays show their length in brackets, such as items [2]. Values appear after the key with strings in quotes. Box colors mark the type: object, array, string, number, boolean and null, with a legend at the top. Numbers keep every digit as written, so a 20-digit ID is not rounded.

Large and deeply nested JSON

A graph with thousands of boxes is too big to read, so drawing stops at the node limit (100, 300 or 1,000) and the message gives the real node count. Set Depth to fold everything below a level: a folded object or array keeps its count and gets a dashed border. Very long keys and strings are shortened inside the boxes, and in the downloaded SVG hovering a box shows a longer version.

When the JSON is invalid

The input must be strict JSON. Comments, trailing commas, single quotes and unquoted keys are reported with the line and column where parsing stopped. Fix the input there, or run it through the JSON formatter on this site first to find the problem.

Error messages and what to do

MessageWhat it meansFix
Input is not valid JSON: Expected ',' or '}' at line 3, column 5Something between two keys is missing or extra, often a missing comma.Look at the line and column given and add the comma or remove the stray character.
This JSON has 1,250 nodes to draw, more than the 1,000 node limit. Raise the limit, lower the depth or paste a smaller part.The document has more boxes than the chosen limit.Pick a lower Depth to fold deep levels, or paste one branch of the document.

Questions people ask

How do I visualize JSON as a graph?

Paste the JSON into the input box. Each object, array and value becomes a box linked to its parent, laid out from left to right, so you can see the shape of the document at a glance. Download it as SVG or PNG.

How many nodes can the JSON visualizer draw?

Up to 1,000 boxes, chosen with Node limit. Beyond that a tree graph is too large to read. Use Depth to fold the deeper levels into dashed boxes, or paste one branch at a time.

Can I load JSON from a URL?

No. To keep everything on your device, the tool never fetches anything. Open the URL in your browser, copy the JSON or save it as a file, then paste it or use Open file.

Does it change my numbers?

No. Numbers are shown exactly as written in your JSON, because the parser keeps the original text rather than converting to a JavaScript number. A long ID such as 12345678901234567890 keeps every digit.

What do the colors in the JSON graph mean?

Each color is a JSON type: blue for objects, orange for arrays, green for strings, red-orange for numbers, pink for true and false, and gray for null. The legend at the top lists only the types that appear in your document.

About this tool

Draws every object, array and value as a box, linked from left to right, with one color per JSON type. Objects show their key count in braces and arrays their length in brackets. Numbers are shown exactly as written, so a long ID keeps every digit. Long keys and strings are shortened in the box; in the downloaded SVG, hovering a box shows more. To keep the graph readable it stops at the node limit you pick (up to 1,000) with a message giving the real count; lower the depth to fold deeper levels into dashed boxes. Comments and trailing commas are not valid JSON and are reported as errors. Nothing is fetched: the JSON comes only from what you paste or open.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.