FreeNo sign-upNothing uploadedPNG download

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.

Rendering your sankey diagram…

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.

1

List your flows

Every flow has a source, a target and an amount — watts, dollars, hours or users.

2

Write them as sankey-beta code

One line per flow: source,target,value — or let ChatGPT or Claude write the code for you.

3

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.

4

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.

Source

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.

Target

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.

Value

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.

Step 1

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.

Step 2

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.

Step 3

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.

Privacy

No sign-up, no account

There is nothing to create and nothing to log into. Open the page and start diagramming.

Privacy

Rendered locally

Your diagram is drawn by JavaScript running on your own device. Your numbers are never sent to our servers.

Privacy

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.

Use case

Show where a budget goes

From the total through departments down to line items — one picture instead of a pivot table.

Use case

Trace energy or data flows

Where power, requests or events travel through a system, and how much is lost along the way.

Use case

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?
Yes. You get 10 free diagram renders per day, every day, with PNG download and no watermark. No account, no trial that expires.
How do I turn text into a sankey diagram?
Write your flows as Mermaid sankey-beta syntax: start the first line with sankey-beta, then add one line per flow in the form source,target,value — for example Power grid,Servers,42. Labels can contain spaces; wrap a label in double quotes if it contains a comma. Hit Generate and the diagram draws instantly, no sign-up.
Why should the values in a sankey diagram balance?
Link widths are drawn proportional to the values, so what flows into a node should roughly equal what flows out of it. If a node receives 50 units but sends out 80, the extra width appears from nowhere and the picture misleads. Keep each node's inputs and outputs close and the chart reads honestly.
Sankey diagram or flowchart — which should I use?
Use a flowchart when the order and logic of steps matter — arrows are all the same width. Use a sankey diagram when quantities matter — where budget, energy or users go, and how much of each. The site's flowchart maker takes the same paste-and-generate approach.
Can AI write the sankey code for me?
Yes. Give ChatGPT or Claude your flows — "Power grid to servers 42, servers to cooling 16" — and ask for Mermaid sankey-beta code. Paste the code block here (skip the fence lines) and render it into a diagram.
Can I download the sankey diagram as a PNG?
Yes. Every diagram has a Download PNG button — free, no watermark, exported at double resolution so node labels and link widths stay readable in docs and slides.

More text-to-diagram tools

The same paste-and-generate flow, tuned for other visual types.

Diagram maker

Block Diagram Generator

Lay out system components in a grid of blocks and arrows from Mermaid block-beta code.

Diagram maker

Requirement Diagram Generator

Map requirements, elements and satisfies links from Mermaid requirementDiagram code.

Diagram maker

C4 Context Diagram Generator

Draw a C4 context diagram — people, systems and relationships — from Mermaid C4Context code.

Diagram maker

C4 Container Diagram Generator

Zoom inside a system’s containers with Mermaid C4Container syntax.

Chart maker

XY Chart Generator

Line and bar charts with axes and a title from Mermaid xychart-beta code.

Diagram maker

Flowchart Maker

Process steps and decision branches from Mermaid flowchart syntax.

Diagram maker

ER Diagram Maker

Entity relationship diagrams for database schemas from Mermaid erDiagram syntax.

Timeline

Text to Timeline Maker

Dates and events become a clean horizontal timeline. Also see the horizontal, project and history timeline makers.

Have flows? Trace them.

Free, no sign-up, 10 renders a day.

Generate my sankey diagram