File Format Wiki

CSV format rules

Delimited table format for spreadsheets, exports, and data exchange.

Format rules

  • Rows should have consistent columns
  • Quote fields containing commas
  • Escape quotes by doubling them

Valid example

name,email
"Ada, Jr.",ada@example.com

Invalid example

name,email
Ada, Jr.,ada@example.com

Common errors

  • Assuming CSV accepts syntax from a similar format
  • Using the wrong encoding or line ending
  • Copying invisible characters from rich text
  • Testing only the happy path and not parser errors

Online validation and conversion

Compared with nearby formats

CSV should be chosen for the parser and ecosystem that will consume it. Prefer strict formats for APIs, human-friendly formats for ops config, and signed formats only when verification is required.