Make a Violin Plot from CSV

Upload or paste a CSV file and get a violin plot in seconds. Pick the value and group columns; everything runs in your browser, so your data never leaves your device.

Paste CSV or tab-separated data with a header row, or upload a .csv file. Then pick the columns.

GroupnMeanSDMinQ1MedianQ3Max

Your data stays in your browser. Nothing is uploaded or stored.

How to make a violin plot from a CSV file

  1. Click Upload CSV and choose your file, or paste the data straight from a file, Excel or Google Sheets.
  2. Under Values, pick the column with the numbers. Choose All numeric columns if each column is a group (wide format).
  3. Under Group by, pick the category column to get one violin per category, or (none) for a single violin.
  4. Optional: pick a two-level column under Split by to draw split violins.
  5. Adjust the inside marks, smoothing and colours, then download the chart as PNG or SVG. The stats table gives n, mean, SD and quartiles per group.

Example: petal length by iris species

The example loaded in the tool is a small long-format CSV: a species column and a petal_length column, twelve flowers per species from the classic iris data. The tool picks petal_length as Values and species as Group by, giving three violins. Setosa’s petals are short and tightly packed, while versicolor and virginica are longer and more spread out, with only a little overlap between them.

species,petal_length
setosa,1.4
setosa,1.3
versicolor,4.7
virginica,6.0
...

The same data in wide format, one column per species, also works: choose All numeric columns under Values.

FormatLooks likePick
Longspecies,petal_length
setosa,1.4
Values = petal_length, Group by = species
Widesetosa,versicolor,virginica
1.4,4.7,6.0
Values = All numeric columns

Common CSV problems

  • No header row: columns are named Column 1, Column 2 and so on. Add a header for clear labels.
  • Decimal commas: 4,5 is read as text. Use a full stop as the decimal mark.
  • Extra spaces or blank cells: blank value cells are skipped; blank categories are shown as (blank).
  • Too many categories: more than about 10 violins get thin. Filter the file or switch Direction to horizontal.

Prefer code? See how to do the same in Python or R.

FAQ

How do I make a violin plot from a CSV file?

Click Upload CSV in the tool above, or paste the file’s contents into the box. The tool reads the header row, then you choose the number column under Values and, if you want one violin per category, the category column under Group by. The chart draws immediately.

What format should my CSV be in?

Either long format, with one row per observation (a category column and a value column, like species,petal_length), or wide format, with one numeric column per group. The first row should hold column names. Commas, semicolons and tabs are all detected.

Is my CSV file uploaded to a server?

No. The file is read by your browser and the chart is drawn on your device. Nothing is sent to violinplot.com or stored anywhere.

Can I make a violin plot from Excel or Google Sheets data?

Yes. Select the columns including the header row, copy, and paste into the box; spreadsheet copies arrive tab-separated and are read as a table. You can also save the sheet as CSV and upload it.

Why are some rows skipped?

Rows whose value cell is empty or not a number (for example “n/a” or text) are skipped, and the tool tells you how many. Numbers with a comma as the decimal mark, such as 4,5, are not read as numbers; change them to 4.5 first.

How big a CSV file can I use?

Files up to 5 MB load directly. Because the density is computed in your browser, tens of thousands of rows work; for very large files paste a sample or the columns you need.

More violin plot tools

Ready to Unlock Deeper Data Insights?

Transform complex datasets into clear, interactive visualizations with Violin Plot. Start exploring data distributions in a way that empowers insight and drives smarter decisions.

LEARN MOre
100% satisfaction guaranteed
McAfee SECURE
ssl-secured
verisign-secured
BEST-PRICE-GUARANTEED-free-trust-badge
guaranteed-safe-checkout-1