How to Make a Pie Chart from a CSV File
Turn any CSV export into a pie chart: upload the file, map your columns, fix messy rows, and download the chart. Step-by-step guide.
Updated
The short version
- 1
Get your CSV ready
Export the CSV from your source tool. You need at least one column of category names and one column of numbers.
- 2
Upload it
Drop the file on the editor's upload area or pick it with the file browser. Parsing happens locally in your browser.
- 3
Check the parsed rows
The editor shows what it read, with warnings for any rows it skipped. Confirm labels and values landed in the right columns.
- 4
Tidy the data
Delete rows you do not need, and group small slices into an Other slice if the file has a long tail of tiny categories.
- 5
Style and export
Add labels and a title, pick a palette, and download the chart as PNG, SVG, or PDF.
Nearly every tool that holds data can export a CSV: analytics dashboards, CRMs, banks, survey platforms, accounting software. That makes CSV the universal bridge into a chart. Here is how to cross it, including the messy parts real CSV files bring along.
What the file needs to contain
A pie chart needs exactly two things per slice: a name and a number. So your CSV needs at least two usable columns, something like:
category,amount
Housing,1450
Food,620
Transport,410
Utilities,230
A header row is optional. The parser looks at the first row, and if it reads as text while the rows below read as numbers, it treats it as a header and skips it. Extra columns are fine, and so are files with thousands of rows, though a chart wants far fewer slices than that, which we will get to.
Uploading and mapping
Drag the file onto the upload area in the data panel, or click it and browse. Parsing happens instantly and locally: the file is read by your browser and never uploaded anywhere, which matters when the CSV is a customer export or your bank statement.
If the file has more than two columns, the editor asks which column is labels and which is values. Pick them and the data table fills in, with the live chart drawing beside it.
Reading the warnings
Real CSVs are rarely clean, so the parser reports what it did instead of failing silently. After import you may see warnings like “3 rows skipped: no numeric value”. Common causes and what to do:
- Currency and formatting. Values like “$1,450.00” or “1.450,00” are cleaned automatically. You should not see warnings for these.
- Empty rows and totals. A blank line or a “Total” row at the bottom gets skipped or, worse, charted. Delete a lingering total row in the data table, otherwise your chart shows every category at half its true share.
- Text in the value column. “N/A”, “pending”, or a stray note becomes a skipped row. Type the correct number into the table if the row matters.
- Duplicated categories. Two rows named “Food” become two slices. Merge them in your source file, or combine the values manually in the table.
The one-minute check after any import: does the number of slices match the number of categories you expected, and does the biggest slice make sense?
From 200 rows to 6 slices
CSV exports are usually itemized: every transaction, every order, every response. A pie chart wants aggregates. If your file has one row per transaction rather than one row per category, aggregate first in your source tool (a pivot table, or a GROUP BY, or the report’s own summary view), then export.
If the file is already aggregated but has a long tail, say 30 product categories where the bottom 20 are each under 2 percent, use the group-small-slices button. Set a threshold and everything under it collapses into one Other slice. The chart keeps its accuracy and becomes readable.
Finishing the chart
From here the CSV origin no longer matters. Turn on percentage labels, which are rounded to always sum to 100. Add the category names to slices if the chart will stand alone. Give it a title that names the data and period: “Support tickets by category, June 2026”. Then export as PNG for documents, SVG for design tools, or PDF for print, or copy the chart straight to your clipboard.
One last habit worth keeping: save the chart in the My Charts list before you close the tab. Next month, when the same tool emits the same CSV with new numbers, you can duplicate the saved chart, re-import, and keep every styling decision you made today.
Try it now
Everything in this guide happens in the editor below — free, in your browser, no signup and no watermark.
Total: 100
Chart
Title
Colors
Labels
Legend
Font
Applies to the title, labels, and legend.
Download
Free downloads, no watermark. File name: pie-chart.png
Prefer a bigger canvas?Open this chart in the full-page editor.
Frequently asked questions
What CSV format does the tool expect?
Comma-separated text with one record per line. A header row is fine and gets detected automatically. Semicolon-separated files and tab-separated files paste correctly too.
My CSV has ten columns. Which ones get used?
You choose. After upload, pick which column holds the labels and which holds the values. The rest are ignored.
Why were some of my rows skipped?
Rows with empty or non-numeric values cannot become slices, so they are skipped and listed in a warning. Fix the value in the editor's data table if the row should have been included.
Is the CSV uploaded to a server?
No. The file is read and parsed inside your browser. Its contents never leave your device.
Can I chart negative numbers from my CSV?
No chart can. Pie slices represent shares of a total, and a negative share has no geometric meaning. Filter those rows out or chart absolute values with a note.