How to Make a Sankey Diagram from a Spreadsheet
Learn when a Sankey chart beats a bar chart, how to shape your data as flows, fix loops and unbalanced nodes, and export clean SVG for reports.

How to Make a Sankey Diagram from a Spreadsheet
Some numbers are about movement rather than size. Money arrives from a few sources and leaves through many expenses. Visitors land on a handful of pages and spread across the site before a fraction reach checkout. Energy enters a building as gas and electricity and leaves as heat, light and losses. A bar chart can show each total, but it cannot show what became of what. A Sankey diagram can: every flow is a band whose thickness is proportional to its size, so the eye follows the money, the visitors or the energy from left to right.
Is a Sankey the right chart?
Use one when your data has stages and you care about how amounts split or merge between them. Budgets, funnels, supply chains, migration between plans, survey answers across two questions and energy balances all fit. Avoid it when you only have one stage, when flows go back and forth constantly, or when the small flows are the point of the story, because thin bands become hard to read next to thick ones.
Shaping your data
Every Sankey is built from links with three parts: where a flow comes from, where it goes, and how big it is. In a spreadsheet that is three columns, for example Source, Target and Amount. Several rows with the same source and target are simply added together, so you can feed in transaction-level data without summarising first.
Journey data often arrives in a different shape: one row per customer or session with columns for step 1, step 2, step 3 and maybe a count. The Sankey Diagram Maker accepts that too. Tick the step columns, pick the count column if there is one, and every row is turned into links between consecutive steps. Empty steps are skipped, so paths of different lengths are fine.
For quick sketches you do not need a spreadsheet at all. Type lines such as Salary [3200] Budget and Budget [1300] Rent in the text tab and the chart appears as you apply them. This is the fastest way to explain a budget in a meeting.
Checking the numbers
Before styling anything, open the node list. For every node it shows what flows in and what flows out. In a budget, Budget should receive exactly what it hands on; if it does not, a category is missing or a figure was typed twice. The tool marks such nodes as unbalanced. A node that only has inflows is an end point, and one that only has outflows is a starting point, which tells you at a glance whether the structure matches what you intended.
Dealing with loops
A Sankey must flow one way. Web journeys break this rule all the time, since people return to the home page. When the data contains a cycle, the links that would close it are left out and listed in a warning so nothing disappears silently. For journeys, the better fix is to build with step numbers, which turns Home at step 1 and Home at step 3 into separate nodes. The chart then shows the real path rather than an impossible loop.
Making it readable
Order matters more than colour. Within each column, put related nodes next to each other and keep the biggest flows straight, which reduces crossing bands. Use the up and down arrows until the picture calms down. Then colour by meaning: income sources in one family of colours, essential costs in another, savings in a third. Letting links take the colour of their source works well for budgets; taking the target colour works better when the story is about destinations, such as where visitors end up.
Labels should carry units. Add a currency prefix or a unit such as kWh, and switch on the share of total if the audience thinks in percentages. A short title above the chart saves a paragraph of explanation in the report.
Exporting for reports
SVG is the format to keep. It stays sharp at any size, prints perfectly and can be adjusted further in Illustrator, Inkscape, Figma or PowerPoint. PNG is there for chat apps, email and tools that do not accept vector images; it is rendered at double size so it still looks crisp on high-resolution screens. Save the links as CSV as well, so next quarter you can load the same structure, change the numbers and produce a matching chart in a minute.



&c=%23991b1b&k=business)