Visual RFC.
ALL RFCs / RFC 4180
Read the RFC ↗
RFC 4180 / MECHANISM GUIDE

Records and fields

01

CSV organizes records as rows with comma-separated fields.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

DIAGRAM§ 2 ↗
RFC 4180 · § 2EXAMPLE
3 / 3
Records and fieldsCSV organizes records as rows with comma-separated fields.Records and fieldsAda,12Lin,15Space is field data: " Ada",12
03
Preserve field data

Do not silently strip meaningful spaces.

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
WHAT CHANGED
RFC 4180 common CSV formatRFC 7111 §3

The later update defines row, column, and cell URI fragments for text/csv. It does not replace the CSV field quoting rules.

Read the updated RFC section ↗
KEY POINT

Records use CRLF in the documented common format; the final record may omit its ending CRLF.

  • Records use CRLF in the documented common format; the final record may omit its ending CRLF.
  • Each line should contain the same number of fields.
  • Spaces are part of field data rather than automatically ignorable.
DETAILS

Examples are illustrative. Consult the linked RFC and its errata for implementation details.

Read the RFC section ↗

Diagrams simplify the RFC. Read the linked sections for complete requirements.

Privacy
All chapters in this RFC
  1. Records and fields
  2. Optional header row
  3. Quoted fields
  4. Escape double quotes
  5. Media type and application limits
RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗