Skip to content

Free · Browser-local tools

Create a chart from CSV

Create bar, line or scatter charts from CSV. Aggregate full data or choose a sample, inspect plotted values, and export PNG or SVG.

Chart CSV

Start with your CSV

Open your file in the CSV editor with this tool already selected. Preview the result before downloading.

  1. Open your CSV, then choose bar, line or scatter and source columns.
  2. Aggregate the full bounded source or choose an explicit record sample.
  3. Review the chart and plotted data, then download PNG or SVG.

Free · No signup · File contents stay in your browser. Open files up to 1 GiB with browser storage.

Try a small example

3 records · 3 columns
Illustrative CSV sample data
idnameamount
1Example one12
2Example two24
3Example three18
Example one
12
Example two
24
Example three
18

Illustrative fictional data. Open the sample to try the tool.

How to chart csv

  1. 1

    Open your CSV, then choose bar, line or scatter and source columns.

  2. 2

    Aggregate the full bounded source or choose an explicit record sample.

  3. 3

    Review the chart and plotted data, then download PNG or SVG.

What to expect

Bar/line charts support full-data sum, count and mean aggregation or a bounded record sample; scatter uses numeric X/Y columns. Numeric omissions and plotting limits are explicit. Source data is retained.

Local files and clear limits

These tools process file contents on your device. The browser workspace accepts files up to 1 GiB and 5 million records, subject to available browser storage and decoded-record limits. This tool's calculations support up to 100,000 records, 2 million cells and 64 MB of text. Download a new copy to keep your result.

Plain answers

Chart CSV questions

What can I do with this chart csv tool?

Bar/line charts support full-data sum, count and mean aggregation or a bounded record sample; scatter uses numeric X/Y columns. Numeric omissions and plotting limits are explicit. Source data is retained.

Does my CSV leave my device?

File selection, editing and these task operations run in your browser. Optional recipe assistance, when available, sends your goal and only the column metadata or sample values you explicitly include to its configured provider. Your file is not attached automatically; see Privacy for processing details. Manual editing requires no account or file upload. Download a new copy to keep your result; refreshing restores the original input, not unsaved edits.

Do the editor and task have the same file limits?

The editor opens files up to 1 GiB and 5 million records, subject to browser storage and decoded-record limits. This task supports up to 100,000 records, 2 million cells and 64 MB of decoded text.

Other ways to work with your CSV

Use these local examples when you prefer a script or SQL. They create separate results and explain where their behavior differs from this browser tool.

Plot CSV amounts with Python and Matplotlib

Creates PNG and SVG bar charts from the first 100 finite numeric records, with no display server required.

Before you start

  • Python 3.10 or later. Run in a working folder with a backup of your source; output files may be replaced unless opened in exclusive mode.
  • Place input.csv in that folder. Examples use UTF-8, a comma delimiter and a header row. Column-specific recipes use id,label,amount,status,note; adapt names to your file.
Install Matplotlib in your Python environment
python3 -m venv .venv
.venv/bin/python -m pip install matplotlib

Run the complete Python example
.venv/bin/python - <<'PY'
import csv

with open("input.csv", encoding="utf-8-sig", newline="") as source:
    table = list(csv.reader(source, strict=True))
if not table:
    raise ValueError("Expected a header row")
headers, rows = table[0], table[1:]
if any(len(row) != len(headers) for row in rows):
    raise ValueError("Every record must match the header width")

import math
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt

id_column = headers.index("id")
amount_column = headers.index("amount")
points = []
for row in rows:
    try:
        value = float(row[amount_column])
        if math.isfinite(value):
            points.append((row[id_column], value))
    except ValueError:
        pass
points = points[:100]
fig, ax = plt.subplots(figsize=(8, 4))
ax.bar([key for key, _ in points], [value for _, value in points])
ax.set(xlabel="id", ylabel="amount", title="First 100 numeric records")
fig.tight_layout()
fig.savefig("chart.png", dpi=150)
fig.savefig("chart.svg")
plt.close(fig)
print("Wrote chart.png and chart.svg")
PY

Limits and output

  • CSV has no stored type schema. Python keeps fields as strings until an example explicitly converts a value. These recipes do not add spreadsheet formula protection; import sensitive-looking strings as text in spreadsheets.
  • This is an explicit first-100-record chart, not full-data aggregation. Floating-point plotting can round precise decimal amounts; skipped values are not plotted.
  • This recipe retains the parsed table in memory; use a streaming approach for files that do not fit.

Documentation: Python CSV reader and writer; Matplotlib bar chart reference