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

Quoted fields

03

Double quotes keep commas or line breaks inside one field.

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
Quoted fieldsDouble quotes keep commas or line breaks inside one field.Quoted fields"New York, NY",12one quoted field12The separator outside quotes starts field 2
03
End at closing quote

Only a separator outside quotes begins another field.

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
KEY POINT

Fields containing comma, quote, or CRLF should be quoted.

  • Fields containing comma, quote, or CRLF should be quoted.
  • A line break inside a quoted field does not end the record.
  • A parser must track quote state rather than splitting blindly at each comma.
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 ↗