Donut chart generator
Turn a label,value list into a real SVG donut chart with adjustable hole size, canvas size, palette, legend and percentage labels, then copy the SVG source or export SVG/PNG, all offline.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
One item per line; Chinese comma, colon, equals sign or pipe also work. Bare numbers are named "Item N". Maximum 24 items.
Generated chart
The SVG comes from a pure function: copy the source, export a file, and nothing leaves the browser.
Enter data to build a donut chart
What this tool does
- Turn a set of shares (headcount by team, traffic sources, budget split) into a donut chart you can paste into slides or docs
- Get a vector file instead of a screenshot: the exported SVG scales without blur and opens in Figma or Illustrator for further edits
- Build the chart locally when the data must not be sent to an external charting service
Example
Input
Engineering 42 Marketing 28 Ops 18 Other 12
Output
Engineering: 42 (42.0%) Marketing: 28 (28.0%) Ops: 18 (18.0%) Other: 12 (12.0%)
The same input also produces a 420×420 SVG with four <path> elements, a 60% hole and the total 100 in the centre; the percentages above are exactly the labels drawn in the SVG.
Frequently asked questions
How do I write the data?
One item per line as "label value" or "label,value"; colon, equals sign, pipe and semicolon also work. Bare numbers are named "Item N". Up to 24 items, values must be non-negative, and a total of zero is rejected.
How is this different from the generic chart-maker?
This tool does one thing: a donut chart with a simpler input (no header row, no chart type picker) and options focused on hole size, canvas size, palette, legend and percentage labels. Use chart-maker for lines, bars, radar and so on.
Where can I use the exported SVG / PNG?
SVG is a standard vector file for web pages, Figma, Illustrator or recent Word versions. PNG is rasterised in the browser at 2× from the same SVG using the system sans-serif font, so rendering can differ slightly between operating systems. If the browser refuses to rasterise the SVG, the page tells you to export the SVG instead.
Why do the percentages not add up to exactly 100%?
Each share is rounded to one decimal on its own (value ÷ total × 100), so the printed labels may add up to 99.9% or 100.1%. Slice angles use the unrounded ratios, so the drawing itself is accurate.
Is my data uploaded?
No. The chart is produced by a pure function in your browser, the page makes no network requests, and the copied SVG source and exported files never leave your machine.
Keywords:donut chartoffline