Sankey Diagram Generator from Text
Show where budget, energy or users actually go — and how much of each. Paste Mermaid sankey-beta code — one line per flow, source, target, value — and this free online sankey diagram generator renders it in your browser with link widths proportional to the numbers. No sign-up, and nothing you paste leaves your device.
The demo above is live — edit the code and hit Generate. The example that loads with the page is free; each Generate click uses one of your 10 free generations per day.
How it works
From a list of flows to a proportional diagram in four steps.
List your flows
Every flow has a source, a target and an amount — watts, dollars, hours or users.
Write them as sankey-beta code
One line per flow: source,target,value — or let ChatGPT or Claude write the code for you.
Pick “Mermaid diagram” and hit Generate
The visual type is pre-selected on this page. Your sankey diagram is drawn instantly in your browser — nothing is uploaded.
Download PNG
One click, no watermark — ready for reports, wikis or slides.
What goes into a sankey diagram
Three building blocks describe every flow — and all three are just text.
Sources
Where a flow starts — the power grid, a budget line, a traffic channel. The same node can be a target on one line and a source on the next.
Targets
Where the flow lands — a team, a machine, a stage of the funnel. Chaining flows through middle nodes builds the left-to-right cascade.
Values
The amount carried by each link. Widths are scaled automatically, so bigger numbers draw fatter links — no unit conversion needed.
From text to sankey diagram, the AI-friendly way
You never have to write Mermaid by hand: give your flows to ChatGPT or Claude and paste what it returns here — no sign-up, and everything renders locally on your device.
Give AI your flows
Tell ChatGPT or Claude where things move — “power grid to servers 42, servers to cooling 16” — and ask for Mermaid sankey-beta code.
Paste the code here
Copy the sankey code it returns and drop it into the box above, skipping the fence lines around the code block.
Generate, download PNG
Hit Generate: the diagram draws instantly in your browser and exports as a crisp, watermark-free PNG for reports and slides.
Private by design: your numbers never leave your browser
Sankey diagrams often carry internal figures. Text2Viz renders them locally, so nothing is uploaded.
No sign-up, no account
There is nothing to create and nothing to log into. Open the page and start diagramming.
Rendered locally
Your diagram is drawn by JavaScript running on your own device. Your numbers are never sent to our servers.
Safe for internal data
Budget splits, energy usage, revenue by channel — render them here without a second thought.
What people make with it
Three common ways people use this free sankey diagram generator.
Show where a budget goes
From the total through departments down to line items — one picture instead of a pivot table.
Trace energy or data flows
Where power, requests or events travel through a system, and how much is lost along the way.
From AI chat to image
ChatGPT or Claude turned your table into sankey code? Paste it here and export a shareable PNG.
Frequently asked questions
Is this sankey diagram generator free?
How do I turn text into a sankey diagram?
Why should the values in a sankey diagram balance?
Sankey diagram or flowchart — which should I use?
Can AI write the sankey code for me?
Can I download the sankey diagram as a PNG?
More text-to-diagram tools
The same paste-and-generate flow, tuned for other visual types.
Block Diagram Generator
Lay out system components in a grid of blocks and arrows from Mermaid block-beta code.
Requirement Diagram Generator
Map requirements, elements and satisfies links from Mermaid requirementDiagram code.
C4 Context Diagram Generator
Draw a C4 context diagram — people, systems and relationships — from Mermaid C4Context code.
C4 Container Diagram Generator
Zoom inside a system’s containers with Mermaid C4Container syntax.
XY Chart Generator
Line and bar charts with axes and a title from Mermaid xychart-beta code.
ER Diagram Maker
Entity relationship diagrams for database schemas from Mermaid erDiagram syntax.
Text to Timeline Maker
Dates and events become a clean horizontal timeline. Also see the horizontal, project and history timeline makers.