Sankey Diagram Maker from Spreadsheet
Draw money, energy, traffic or customer journey flows as a Sankey chart. Edit links in a table, reorder nodes, colour them and export crisp vector files.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Enter flows
Edit the Links table, type lines in Import / text, or load a CSV or Excel file.
- 2Check balance
Open Nodes, colours, order and look for nodes marked unbalanced.
- 3Arrange
Use the arrows to reorder nodes inside each column.
- 4Colour
Pick node colours and choose whether links take the source or target colour.
- 5Label
In Style set title, prefix, unit, font size and the share of total option.
- 6Export
Press SVG, PNG or Links CSV.
About this tool
A Sankey diagram shows how a quantity splits and merges as it moves from one stage to the next, with band widths proportional to the amount. It is the clearest way to show where a budget goes, how website visitors move from landing pages to checkout, how energy is lost between generation and use, or how applicants drop out of a hiring funnel. This maker builds the diagram from three kinds of input. You can type flows as short lines such as Salary [3200] Budget, you can load a spreadsheet with source, target and value columns, or you can load a journey table where each row is a path through several steps with an optional count. Paths are turned into links between consecutive steps and identical links are added together. The layout places every node in a column according to its longest distance from a starting node, sizes it by the larger of its incoming and outgoing totals, and stacks the bands so they never cross inside a node.
Editing
The Links table lists every source, target and value and can be edited directly; every change is part of the undo history. Renaming a node in the Nodes tab renames it in every link at once and merges links that become duplicates. The Nodes tab also shows each node's incoming and outgoing totals and marks a node as unbalanced when the two differ, which is often a sign of a missing flow in your data. Arrows move a node up or down inside its column, and the colour picker sets its colour, which links can inherit from the source or the target node.
Style
Set the canvas width and height, node width, gap between nodes, link opacity, font size, a title, a prefix such as a currency sign, a unit after the value, and an optional share of the total in brackets. Alignment can push every end node to the right edge, the usual look for budget and energy charts, or keep nodes at their distance from the start.
Loops
A Sankey diagram has to flow in one direction. If your data contains a loop, for example a visitor going from Pricing to Home and back to Pricing, the links that close the loop are left out and listed in a warning. For journey data, the Build with step numbers button adds the step position to each name so repeated pages become separate nodes.
Limits
The layout is computed once from your order and does not run an iterative crossing-minimisation like some desktop tools, so very dense diagrams may need manual reordering. Exported PNG files are rendered at twice the chosen size; the SVG stays sharp at any size and can be edited further in a vector program. This is not a live dashboard: it does not connect to databases or refresh from a URL.
Worked example
A household budget has two incomes, Salary 3,200 and Freelance 800, flowing into Budget. Budget splits into Rent 1,300, Food 600, Transport 350, Fun 450 and Savings 1,300, and Savings splits into Index fund 900 and Emergency fund 400. With the prefix set to $ and share of total switched on, Rent is labelled $1,300 (32.5%), because 1,300 is 32.5% of the 4,000 that enters on the left.
Quick facts
- Category: Business & Work
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Riehmann, Hanfler and Froehlich, Interactive Sankey Diagrams, IEEE InfoVis 2005
Frequently asked questions
What format should my spreadsheet have?
Either three columns named in any way with source, target and a number, or a wider table with one column per step and an optional count column.
Can I type the flows instead?
Yes. Use one line per flow in the form Source [value] Target, or Source, Target, value. Lines starting with // are ignored.
Why did some links disappear?
They closed a loop. The warning above the chart names them; reverse or rename one side to keep them.
How do I change the order of nodes?
Open Nodes, colours, order and use the up and down arrows next to a node. Reset order returns to the automatic order.
Which export should I use for a report?
SVG for print, slides and further editing, PNG for chat apps and documents that do not accept SVG.
Does the diagram leave my computer?
No. The chart is drawn by your browser and the files are saved directly from it.
