Pie Chart From CSV

Click Import / paste to drop in a CSV. It’s read in your browser and never uploaded.

Data

Values areChoose “Percentages” if your numbers are already percentages that should add up to 100%.
50%
22%
14%
8%
6%

Number format

Shown before values in labels and the legend, for example $.
Shown after values, for example K, % or hrs.
Slices smaller than this percentage are combined into one slice.

Try sample data

Demo data only. It replaces your rows and keeps your design.

Website Traffic SourcesPie chart with 5 slices: Organic search 50%, Direct 22%, Social 14%, Referral 8%, Email 6%.Website Traffic SourcesImport your CSV to replace this sampleOrganic search — 50%Direct — 22%Social — 14%Referral — 8%Email — 6%Organic search: 48,200 (50%)Direct: 21,500 (22%)Social: 13,800 (14%)Referral: 7,400 (8%)Email: 6,100 (6%)50%22%14%8%6%
1200 × 800 px · 5 slices · Total 97,000

Design

Controls

The classic. Best for 2–7 parts of a whole.

Adds hatch patterns so slices can be told apart in grayscale prints and by readers with color-vision deficiency.
Fill

Color
#16181d
Alignment

PositionAuto puts labels inside slices that are big enough and outside the rest, with connector lines.
Decimals
Labels on slices smaller than this percentage are hidden to reduce clutter.
Outside color
#2b2f38
Rounds the shown percentages so they always add up to 100%, using the largest-remainder method.

Quick answer

To make a pie chart from a CSV file, click Import / paste, open Upload CSV file, and drop in your .csv. Pick the label column and the value column (and optionally color and group columns), check the preview, and click Import. The file is parsed in your browser and never uploaded.

How to turn a CSV into a pie chart

  1. Click Import / paste in the Data panel, then open the Upload CSV file tab.
  2. Drag your file onto the drop zone or click Choose file. Files can be .csv, .tsv or .txt, up to 1 MB.
  3. Check the preview. The tool detects the delimiter (comma, semicolon, tab or pipe) and whether the first row is a header.
  4. Pick the label column and the value column. You can also choose a color column with hex codes like #2a78d6, and a group column for nested charts.
  5. Choose whether to replace or add to your current data, then click Import.

Example CSV

Source,Sessions,Color
Organic search,48200,#2a78d6
Direct,21500,#eb6834
Social,13800,#1baf7a
"Referral, partners",7400,#eda100

Values in quotes can contain commas. Thousands separators (48,200) and currency symbols ($1,200) are handled.

From Excel or Google Sheets

You don’t need a file. Select the two columns in your spreadsheet, copy them, and paste into the Paste text tab. To use a file from Excel, choose File → Save As → CSV first. .xlsx files aren’t read directly.

Privacy and safety

Your file is opened by your browser and parsed on your device. It’s never uploaded. Files are checked for type and size, binary files are rejected, and every cell is treated as plain text, so nothing in a file can run as code. Rows with problems, like text in the value column or negative numbers, are listed and skipped instead of being imported silently.

You can also download your chart’s data as a CSV with the Data CSV button. Spreadsheet formula characters are escaped for safety. More help: making a pie chart in Excel.

CSV import FAQ

Can I make a pie chart from an Excel file?

Yes. Either copy the two columns in Excel and paste them into the Paste text tab, or save the sheet as CSV (File → Save As → CSV) and upload it. .xlsx files aren’t read directly.

Is my CSV file uploaded to a server?

No. The file is read and parsed by your browser on your own device and is never uploaded.

Which CSV formats are supported?

Comma, semicolon, tab and pipe delimiters; quoted fields; header rows; thousands separators and currency symbols. Files can be .csv, .tsv or .txt up to 1 MB.