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

CSV samples should be judged in the sizes people actually receive, upload, or export. These reference cards show the common shapes and settings to check before choosing a conversion target.

idnamevalue
001alpha42002beta18
rows1k rows

spreadsheet export

Checks headers, delimiters, quoting, and encoding.

idnamevalue
001alpha42002beta18
events10k lines

log stream

Checks append-friendly parsing and per-line recovery.

idnamevalue
001alpha42002beta18
unicodeUTF-8

international data

Avoids broken names, commas, and non-Latin text.

idnamevalue
001alpha42002beta18
large100 MB+

batch import

Checks streaming, memory use, and preview limits.

Reference dimensions are platform-style targets. Compatibility and format facts are verified from the linked online sources below.

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