About Sankey Diagram Maker
A Sankey diagram shows where a quantity goes. This maker keeps nodes and flows in separate panels, places nodes in up to four layer columns, and draws each link with a stroke width proportional to the flow value so large and small movements are visible side by side.
It runs on the shared visual workbench: drag nodes, pan and zoom, undo and redo, save or open project JSON, and export SVG, PNG or PDF. Sankey is not a native Mermaid diagram, so the project JSON is the editable master and images are for review.
What this tool does
Weighted flow links
Each flow has a positive quantity and an optional label; the workbench renders its width proportionally, clamped so every link remains visible.
Layer columns and auto layout
Assign nodes to layers 0–3 and the editor stacks each column by combined flow volume, with rows sorted by the total passing through each node.
Flow balance warnings
Intermediate nodes whose inbound and outbound totals differ are flagged, and nodes with no flows are called out without blocking the canvas.
Editable nodes and flows
Rename nodes, change their layer, add or remove flows, edit quantities and labels, and see the computed totals update after each commit.
Shared workbench exports
Drag, pan, zoom, undo/redo, SVG/PNG/PDF export and JSON save/open all come from the same engine as the other diagram makers.
Local and private
Nodes, flows and totals stay in the browser tab; no account is needed and the diagram is never uploaded.
How to use Sankey Diagram Maker
- 01
Name the diagram and units
Set a title and a unit such as requests, euros or hours; the unit appears beside flow values and in the computed node totals.
- 02
Add nodes and layers
Add nodes and assign each to layer 0, 1, 2 or 3. The editor arranges layers as columns and sorts rows by total flow volume.
- 03
Connect flows
Add a flow, choose its source and target, enter a positive quantity and an optional label. Self-flows and missing endpoints are rejected.
- 04
Review the balance warnings
Check any node that receives more or less than it sends. The warning does not block rendering, but it usually points to a missing flow or a quantity typo.
- 05
Export or save JSON
Use the workbench toolbar for SVG, PNG or PDF review copies, or save project JSON to reopen the exact layout and edit it later.
How this tool works
- Works with
- NODES & FLOWS → SANKEY
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- A modern browser with JavaScript, SVG and canvas support · Nodes with positive flow quantities and a source and target for every flow
Limitations worth knowing
- Mermaid has no native Sankey syntax, so there is no Mermaid import or export; project JSON is the editable interchange format.
- Nodes are limited to four layer columns and the editor supports up to 60 nodes and 150 flows.
- Link widths are a visual scale: they show relative magnitude, not exact pixel-per-unit measurements.
- Drag positions are manual and are not preserved by a layer re-layout after a panel edit; save JSON if the exact arrangement matters.
Privacy and file handling
Sankey nodes, flows and quantities are processed in this browser tab. SVG, PNG, PDF and JSON files are created on your device, and the diagram is never uploaded or stored on a server unless you choose to share the downloaded files.
Read the full privacy policy
