How to make a sankey diagram
-
Paste your data
Paste cells from a spreadsheet or upload a CSV with a text column for Source, a text column for Target and a number column for Value.
-
Check the columns
The sankey diagram picks its columns for you. Change any of them under Data.
-
Style it and download
Under Style, pick a look, colours, background and size, add a title and source, then download SVG or PNG.
What is a sankey diagram?
A sankey diagram shows how quantities flow from sources to targets through one or more stages, with each link drawn as a band whose width is proportional to the amount. It is used for budgets, energy, web traffic and customer journeys.
How to read it
Nodes are the vertical bars and their height is the total flowing through them. Link width is the value moving between two nodes, so follow the widest bands first and hover a node to highlight every path that passes through it.
When to use it
Show how quantities split and merge between stages. It is one of the flow and network charts, which show how things move or connect between stages and nodes.
For flows that go both ways between the same few groups, such as migration, use a Chord diagram. For simple step-by-step drop-off with no branching, a Funnel chart is clearer.
Tips for a better sankey diagram
- Keep it to roughly twenty nodes or fewer; group small sources into "Other" so the main flows stay readable.
- Make sure flows only move forward, since loops are dropped from the layout.
- Use the same unit on every link so incoming and outgoing totals at each node balance.
Data you need
One row per item with a text column for Source, a text column for Target and a number column for Value. Column names can be anything; the chart maker matches columns by type, and you can change the match under Data.
| Source | Target | Visits |
|---|---|---|
| Search | Home | 4200 |
| Social | Home | 1800 |
| Social | Blog | 2100 |
| Pricing | 900 | |
| Direct | Home | 2600 |
| Referral | Blog | 700 |
| Home | Pricing | 3100 |
| Home | Work | 2400 |
Other charts for the same data
More flow and network charts
Questions, answered
- What is a sankey diagram?
- A sankey diagram shows how quantities flow from sources to targets through one or more stages, with each link drawn as a band whose width is proportional to the amount. It is used for budgets, energy, web traffic and customer journeys.
- How do you read a sankey diagram?
- Nodes are the vertical bars and their height is the total flowing through them. Link width is the value moving between two nodes, so follow the widest bands first and hover a node to highlight every path that passes through it.
- How do I make a sankey diagram?
- Paste your data into the chart maker with a text column for Source, a text column for Target and a number column for Value. The sankey diagram draws as you type. Then pick a look and a size and download it as SVG or PNG.
- When should I use a sankey diagram?
- Show how quantities split and merge between stages. It belongs to the flow and network family of charts, which show how things move or connect between stages and nodes. For flows that go both ways between the same few groups, such as migration, use a Chord diagram. For simple step-by-step drop-off with no branching, a Funnel chart is clearer.
- Is this sankey diagram maker free?
- Yes. It is free with no sign-up, your data stays in your browser, and you can download the sankey diagram as SVG or PNG.