Generator Tools
Pie Chart Generator
Paste labels and values to draw a pie or donut chart in your browser. Custom colors, percentage labels, legend, SVG and PNG export. Free, no signup.
Quick start
One row per line. Format: label, value. Add a third column for a per-slice color: Mobile, 42, #3b82f6. Lines that start with # or // are ignored.
Live preview
The preview renders the same SVG you copy and download. Charts are drawn locally; your data is not uploaded.
Slices
4
Total
100
Largest slice
Mobile
42%
Errors
0
Chart options
SVG markup
Copy the full SVG to paste into a document, slide deck, or component. The markup includes a viewBox so the chart scales cleanly to any container.
Breakdown
| Slice | Label | Value | Share |
|---|---|---|---|
| 1 | Mobile | 42 | 42% |
| 2 | Desktop | 33 | 33% |
| 3 | Tablet | 18 | 18% |
| 4 | Smart TV | 7 | 7.0% |
| Total | 100 | 100% |
How to use
- Paste your data into the input box. One row per line in the format label, value, with an optional third column for a per-slice color.
- Pick Pie or Donut at the top of the options panel. Donut mode unlocks the inner radius slider and the optional centered total in the hole.
- Choose a color mode: Palette assigns a distinct color from a 12-color set, Single paints every slice in one color, and Per row reads the color column from your data.
- Tune the label position (none, inside, outside with leader, or both) and the label content (percent, value, percent with value, or label with percent) so the readable view matches the medium.
- Click Copy SVG, Download .svg, or Download .png to export. The PNG export uses the exact same SVG, so the print and web versions stay identical.
About this tool
Pie Chart Generator turns a list of label and value rows into a polished SVG pie or donut chart you can drop into a slide, document, report, blog post, or product UI. Type or paste your data, pick pie or donut, and the chart redraws live in your browser with percentage labels, an optional legend, custom colors, and an export-ready SVG plus a one-click PNG download. The data grammar matches the rest of the chart family on this site: one row per line in the format label, value, with an optional third column for a per-slice color (for example Mobile, 42, #3b82f6). Quoted labels handle commas inside the label ("Search, organic", 1200), trailing % is recognized, locale thousands separators are tolerated, and lines that start with # or // are treated as comments. Negative values are reported back as a skipped row so the chart never tries to draw a slice with negative area. The renderer covers the choices most spreadsheet tools force you to live without. Pie mode draws full sectors that meet exactly at the center, while donut mode carves out a centered hole sized by a slider and prints an optional centered total with a custom label like Revenue or Sessions. The 12-color palette mode auto-assigns a distinct color to each slice, single color mode paints every slice in one brand color, and per-row mode reads the color column from your data so you can match a corporate palette. Slice labels can be hidden, drawn inside the slice as a percentage, drawn outside with leader lines, or both. Inside-label color flips automatically to black or white based on the slice fill so the value stays readable on every palette color. Strokes, stroke color, start angle, sort order, transparent background, font family, font size, width, height, and inner radius are all exposed in the options panel and update the preview deterministically (the math matches what is exported), so what you see is exactly what gets copied. The preview, the copyable SVG markup, and the rasterized PNG are always in sync because they come from the same SVG string built in a memoized render. Common use cases include traffic source breakdowns, market share comparisons, survey response distributions, budget allocations, time spent reports, sales by region, audience demographics, share-of-voice analyses, and any single-dimensional comparison that fits on one canvas. Everything runs in your browser. The labels, values, colors, and titles you type are kept in component state and never sent off your device.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
Bar Chart Generator
Turn label, value rows into a vertical or horizontal bar chart with SVG and PNG export.
Open tool
GeneratorLine Chart Generator
Turn label, value rows into a single or multi-series line chart with SVG and PNG export.
Open tool
GeneratorCSS Pie Chart Generator
Generate a pure CSS pie or donut chart with live preview and SVG fallback.
Open tool
GeneratorColor Palette Generator
Build complementary, analogous, triadic, and monochromatic color schemes from any HEX.
Open tool
ConverterSVG to PNG Converter
Rasterize SVG markup or files to PNG at any size, with transparent or solid backgrounds.
Open tool
ConverterCSV Column Stats
Per-column type, missing, distinct, min, max, mean, median, and top values.
Open tool