Sankey diagram maker

    Attach a file with source, target and value columns, and get a flow diagram you can recolor, highlight and put on a slide

    flows.csv
    sourcetargetvalue
    ProductRevenue70
    ServicesRevenue30
    RevenueGross profit65
    RevenueCost of sales35
    Gross profitOperating profit40
    Gross profitOperating costs25

    Create a Sankey diagram of this income statement

    40 of every 100 in revenue remain as operating profit
    Product 70Revenue 100Services 30Gross profit 65Cost of sales 35Operating profit 40Operating costs 25

    Example with invented numbers. Download a sample CSV

    How to lay out the data

    A Sankey diagram needs one row per flow and three columns: where the flow starts, where it ends and how big it is. A name that appears as a target in one row and as a source in another becomes a middle step. In the example, Revenue receives money from Product and Services and passes it on to Gross profit and Cost of sales.

    Spell each name the same way in every row. "Cost of sales" and "Costs of sales" become two separate nodes, and the diagram falls apart into pieces that do not connect.

    • Use one unit for all values. Do not mix thousands and millions.
    • Keep inflow and outflow equal for each middle step, or the node shows a gap.
    • Avoid loops: a flow that returns to an earlier step cannot be drawn from left to right.
    • Group small flows into "Other" once you have more than about 15 nodes.

    When a Sankey diagram is the right choice

    Use it when the question is where something comes from and where it goes. Income statements, budgets, energy balances, website journeys and hiring funnels all have that shape. The width of each band carries the amount, so the largest path is visible before anyone reads a number.

    If you only compare totals, a bar chart is easier to read. If you show a single split, a pie or bar chart does the job with less ink.

    Sankey diagrams and Excel

    Excel has no built-in Sankey chart type, so the usual ways are an add-in or stacking area charts by hand. Here you keep the data in Excel and attach the workbook. The diagram is built from the columns, and you can ask for changes in plain language or set node colors yourself.

    Things to ask in the chat

    • Make operating profit green and all costs red
    • Highlight the path from Product to Operating profit
    • Write a title that states the profit share

    Try the chat in the playground

    Questions

    Which columns does my file need?
    Three: source, target and value. Other column names work too, because you can pick which column is which in the Data tab.
    Can I color nodes one by one?
    Yes. Click a node to set its color or to highlight the flows attached to it.
    Which formats can I export?
    PNG, JPG, PDF and SVG, on a 16:9, 4:3 or 1:1 canvas. The export is a picture without a connection to the data.

    See pricing and how it works, or read how to make a Sankey diagram from Excel data.