Sankey Diagram Generator

Build a Sankey Diagram by entering your flow data as simple Source → Amount → Target relationships. Add multiple flows, set a diagram title, choose a color theme, and configure node alignment to control layout. Your flow totals, node summaries, and an interactive flow chart render automatically so you can visualize budgets, energy use, user journeys, or any multi-stage data movement at a glance.

Optional title displayed above your Sankey diagram.

Enter one flow per line in the format: Source [Amount] Target. Amounts must be positive numbers.

Symbol or unit shown next to flow amounts (e.g. $ for dollars, MW for megawatts).

Flows smaller than this value will be hidden from the diagram.

Results

Total Flow Volume

--

Number of Flows

--

Unique Nodes

--

Largest Single Flow

--

Source Nodes

--

Terminal Nodes

--

Flow Volume by Source Node

Results Table

Frequently Asked Questions

What is a Sankey diagram and when should I use one?

A Sankey diagram is a flow visualization where the width of each arrow or band is proportional to the quantity it represents. Use them when you want to show how a total quantity (money, energy, users, votes) splits and moves through multiple stages or categories. They're especially effective for budgets, energy audits, user journey analysis, and supply chain flows.

What is the format for entering flow data?

Each line should follow the pattern: Source [Amount] Target — for example, Revenue [500] Operations. The source and target are node names (any text), and the amount must be a positive number inside square brackets. You can have multiple flows from the same source or into the same target; just add one per line.

Can a node be both a source and a target?

Yes — intermediate nodes receive flow from upstream sources and pass flow to downstream targets. For example, 'Operations' might receive from 'Revenue' and then distribute to 'Salaries' and 'Infrastructure'. This is how multi-stage flows are modeled in Sankey diagrams.

What does Node Alignment control?

Node alignment determines how nodes are positioned horizontally across the diagram. 'Justify' spreads nodes to fill the full width (most common), 'Left' pushes all nodes to the start, 'Right' pushes terminal nodes to the far right, and 'Center' groups nodes by depth in the middle of the canvas.

What units can I use for flow amounts?

Any numeric unit works — dollars, euros, megawatts, gigabytes, users, votes, tonnes, and so on. Enter a unit label or currency symbol in the 'Value Unit' field and it will appear alongside amounts in the diagram. The calculation engine works with raw numbers, so just make sure all your flows use the same unit.

How do I visualize a company budget as a Sankey diagram?

Start with your total revenue as the source node, then create flows to major cost categories (Operations, Marketing, R&D). From each category, add further flows to subcategories (Salaries, Infrastructure, etc.). The diagram will automatically show how the total budget is allocated across all levels, making it easy to spot where most spending goes.

What's the difference between source nodes and terminal nodes in the summary?

Source nodes are nodes that only send flow outward — they have no incoming flows in your dataset. Terminal nodes only receive flow and do not pass it on. Intermediate nodes appear in both roles. The summary counts help you verify your data structure is correct before publishing your diagram.

Can I use this tool for energy flow or environmental data?

Absolutely. Sankey diagrams are one of the standard tools in energy auditing and environmental reporting. Enter energy sources (Solar, Grid, Gas) as source nodes and end uses (Heating, Lighting, Cooling, Loss) as targets, using MW, kWh, or any energy unit. The width of each band will reflect the relative magnitude of each energy stream.

More Statistics Tools