FormatterHQ

Pie Chart Maker

Turn a list of labels and values into a pie chart with automatic percentages. Choose a legend or outside labels, set your colors and download an SVG.

Input CSV
Output XML
Ready.

How to use the Pie Chart Maker

  1. Enter one label and one value per line (for example Chrome,65.4), or open a CSV or JSON file.
  2. Add a title and choose colors, size and whether to show a legend and percentage labels.
  3. Check the live preview; hover over a slice to see its exact value and share.
  4. Download the pie chart as SVG.

Pie chart maker: show parts of a whole

A pie chart shows how a total is divided into parts: market share, budget allocation, survey answers or traffic sources. Each slice's angle is proportional to its value, and this pie chart maker calculates the percentages for you. Values do not need to add up to 100; the tool uses the sum of all values as the whole.

Example data

Browser,Share
Chrome,65.4
Safari,18.6
Edge,5.3
Firefox,2.8
Samsung Internet,2.4
Other,5.5

The chart draws six slices in order, clockwise from the top, with each slice labeled by its percentage when it is large enough to fit the text (4% or more). Hovering over a slice shows the label, value and exact percentage.

Only the first value column is used, because a pie chart shows a single series. JSON input such as {"Chrome": 65.4, "Safari": 18.6} works as well.

Legend or outside labels

  • Legend on (default) – category names and values are listed below the chart, and percentages are printed on the slices. This is tidy for many slices.
  • Legend off – category names are placed around the pie with leader lines, spaced so they do not overlap. This lets readers connect names and slices without looking back and forth.

Colors can be set as a comma-separated list; otherwise a palette designed to keep neighboring slices distinguishable is used.

Zero and negative values

A slice cannot have a negative size, so rows with zero, negative or missing values are skipped, and the status line tells you how many rows were left out. If your data contains negative numbers, a bar graph is the right chart.

When a pie chart works, and when it does not

Pie charts are popular but easy to misuse. People compare angles and areas less accurately than lengths, so:

  • Use few slices. Two to six slices read well. Group small categories into "Other".
  • Show a real whole. Slices must be parts of one total. Survey questions where people could pick several answers do not form a whole.
  • Order by size. Put the rows in descending order so the largest slice starts at the top.
  • Avoid comparing pies. To compare shares across years or groups, use grouped bars instead.

Prefer a modern look with a total in the center? The doughnut chart maker uses the same data.

Export as SVG

The chart is a standalone SVG file. SVG is a vector format, so it stays perfectly sharp at any zoom level and in print, and it can be embedded directly in web pages, opened in Illustrator, Inkscape or Figma for further styling, and inserted into recent versions of Word, PowerPoint and Google Slides. Hovering over data points in the preview shows exact values, and these tooltips remain in the downloaded file when it is opened in a browser. If a platform only accepts PNG or JPG, open the SVG in a browser or an editor and export or screenshot it at the size you need.

Charts are drawn as SVG by JavaScript in your browser without any chart library or server; your data is never uploaded.

Frequently asked questions

Do my values need to add up to 100?
No. The pie chart maker adds up all values and calculates each slice’s percentage of that total automatically.
Why are some of my rows missing from the pie chart?
Rows with zero, negative or non-numeric values are skipped because they cannot form a slice. The status message says how many rows were skipped.
Why are percentages not shown on small slices?
Labels are only printed on slices of at least 4% so the text fits. Hover over a small slice to see its value and percentage, or check the legend.
How many slices should a pie chart have?
Ideally no more than five or six. Combine small categories into an Other slice, or use a bar chart for many categories.
Can I choose the slice colors?
Yes. Enter a comma-separated list of CSS colors, such as hex codes or color names, and they are applied to the slices in order.

Last updated September 26, 2026

Related tools

Area Chart Maker Create area charts online from CSV or JSON data: filled line graphs with multiple series, smooth curves and SVG export. Doughnut Chart Maker Build doughnut (donut) charts online from CSV or JSON. Shows the total in the centre, percentages per segment and exports SVG. Bar Graph Maker Make bar charts online from CSV or JSON. Grouped bars for multiple series, negative values, custom colours and SVG export. Line Graph Maker Create line graphs online from CSV or JSON data. Multiple series, axis labels, custom colours and free SVG download. Scatter Plot Maker Make scatter plots online from x,y data. Multiple series or groups, linear trend lines, custom colours and SVG download. Real-Time HTML Editor A real-time HTML playground for learning: edit HTML, CSS and JavaScript and watch the result update as you type. Source Code Viewer View source code with syntax highlighting and line numbers. Open any code file or paste it - HTML, PHP, JS, Python and more. SVG Viewer Preview SVG code or files instantly, check them for XML errors, see width, height and viewBox, and download the image. BBCode Viewer Preview BBCode forum posts before publishing: bold, colours, links, quotes, lists, code and spoilers rendered live. Excel Viewer Open and view Excel (.xlsx, .xls), OpenDocument (.ods) and CSV spreadsheets online without Excel. Sheet tabs, merged cells and JSON tree. Online HTML Editor Write and edit HTML with autocompletion and a sandboxed live preview, then copy or download the finished document. HTML Viewer Paste HTML or open a file and see it rendered instantly in a safe, sandboxed live preview. Free online HTML viewer.