Data formatsince 1972

.csvComma-Separated Values

A simple table exchange format that looks easy until quoting, encoding, and delimiters matter.

Extensions
.csv
MIME
text/csv
Standard
RFC 4180 and text/csv media type
Released
1972

About this format

CSV stores table rows as text. The simplicity is why it is everywhere, but real files can vary in delimiter, quotes, line endings, encoding, and header conventions.

Use CSV for spreadsheet-style data exchange. Use JSONL for event streams or nested records.

Real-world samples & file sizes

Four real CSV datasets from public repositories. Each preview is generated from the actual header and first rows, so it shows the shape of the downloaded table rather than a generic spreadsheet icon.

World Population CSV sample preview for 17195 rows / 4 columns
large table17195 rows / 4 columns

World Population CSV

A country-year population table with many rows and a compact four-column schema.

539 KB csv.csv
DataHub · PDDL
Taxi Trips CSV sample preview for 6433 rows / 14 columns
wide table6433 rows / 14 columns

Taxi Trips CSV

A wider CSV with timestamps, numeric amounts, payment labels, and location fields.

849 KB csv.csv
seaborn-data · BSD-3-Clause
Seattle Weather CSV sample preview for 1461 rows / 6 columns
time series1461 rows / 6 columns

Seattle Weather CSV

A weather time-series CSV with dates, numeric measurements, and categorical labels.

47 KB csv.csv
vega-datasets · BSD-3-Clause
Stock Prices CSV sample preview for 559 rows / 3 columns
compact series559 rows / 3 columns

Stock Prices CSV

A small long-form CSV with a symbol column, date strings, and numeric prices.

12 KB csv.csv
vega-datasets · BSD-3-Clause

Pros

  • +Human-readable
  • +Works with spreadsheets and databases
  • +Easy to stream and inspect

Cons

  • No native types
  • Quoting and delimiter rules vary
  • Poor for nested data

CSV vs other formats

vsSizeQualityNote
JSONLCSV is often smaller for flat tablesCSV is tabularJSONL handles nested records and event streams better.
XLSXCSV is usually smallerNo formatting or formulasCSV is data exchange, not a workbook.

Where it works

Operating systems
  • Any text editor
  • spreadsheet apps
  • database tools
Browsers
  • Browsers download or parse CSV through app code
Apps
  • Excel
  • Google Sheets
  • Numbers
  • PostgreSQL
  • Python/R

Frequently asked questions

Does CSV always use commas?
Not always. Some locales and tools use semicolons or tabs, even when the file is described as CSV.
Why did Excel break my CSV?
Encoding, separators, dates, and automatic type conversion are common causes.

Sources

Other data formats