Pie Chart Generator from Text
List your labels and values as text — get a pie chart instantly. Paste Mermaid pie code — or start from the time-split example — and this free online pie chart generator renders it in your browser, ready to download as a crisp PNG. 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 labels and values written as text to a pie chart in four steps.
List your slices
What makes up the whole — hours, spend, votes — with a label and a number for each part.
Turn it into Mermaid code
Write one line per slice, like “Meetings” : 15 — 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 pie chart 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 pie chart
Three building blocks describe any pie chart — and all three are just text.
Slices
One line per slice — “Writing code” : 45 — with the label in quotes and the value after the colon. Values can be any numbers; they are scaled to percentages for you.
Title
A single title line names the whole — what the slices sum up to, like a week of developer time.
Data labels
Adding showData to the first line prints each slice's value in the legend, next to its percentage.
From text to pie chart, the AI-friendly way
You never have to write Mermaid by hand: give your numbers to ChatGPT or Claude and paste what it returns here — no sign-up, and everything renders locally on your device.
Give AI your numbers
Tell ChatGPT or Claude your labels and values — “time split: writing code 45, review 12, meetings 15, debugging 18, docs 10” — and ask for Mermaid pie code.
Paste the code here
Copy the pie code it returns and drop it into the box above, skipping the fence lines around the code block.
Generate, download PNG
Hit Generate: the chart 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
Charts 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 charting.
Rendered locally
Your chart is drawn by JavaScript running on your own device. Your numbers are never sent to our servers.
Safe for internal data
Budget splits, server load, revenue mix — render them here without a second thought.
What people make with it
Three common ways people use this free pie chart generator.
Share a time or budget split
Show where the week, the quarter or the budget actually goes — one glance, no spreadsheet.
Summarize survey or log data
Turn counts per category into a share-of-total picture for reports and reviews.
From AI chat to image
ChatGPT or Claude turned your table into pie code? Paste it here and export a shareable PNG.
Frequently asked questions
Is this pie chart generator free?
How do I turn text into a pie chart?
What does showData do in a Mermaid pie chart?
Pie chart or bar chart — which should I use?
Can AI write the pie code for me?
Can I download the pie chart as a PNG?
More text-to-diagram tools
The same paste-and-generate flow, tuned for other visual types.
ER Diagram Maker
Entity relationship diagrams for database schemas from Mermaid erDiagram syntax.
State Diagram Generator
State machine diagrams for lifecycles from Mermaid stateDiagram-v2 syntax.
Class Diagram Generator
UML class diagrams for domain models from Mermaid classDiagram syntax.
User Journey Map Generator
Map customer journey steps, satisfaction scores and actors from Mermaid journey syntax.
Quadrant Chart Generator
Plot options on a 2x2 matrix with Mermaid quadrantChart syntax.
Git Graph Generator
Visualize commits, branches and merges with Mermaid gitGraph syntax.
Sankey Diagram Maker
Show how budget, energy or users flow between stages with Mermaid sankey-beta code.
Block Diagram Maker
Lay out system components in a grid of blocks and arrows from Mermaid block-beta code.
Requirement Diagram Maker
Map requirements, elements and satisfies links from Mermaid requirementDiagram code.
C4 Context Diagram Maker
Draw a C4 context diagram — people, systems and relationships — from Mermaid C4Context code.
C4 Container Diagram Maker
Zoom inside a system's containers with Mermaid C4Container syntax.
Text to Timeline Maker
Dates and events become a clean horizontal timeline. Also see the horizontal, project and history timeline makers.