Complete Specification of the CSV File Format
Updated 2026-02-27
•Published by OnlineCSV Editorial### RFC 4180 Grammar Rules
1. Each record is located on a separate line, delimited by a line break (`CRLF`).
2. The last record in the file may or may not end with a line break.
3. An optional header line appears as the first line of the file.
4. Each field may or may not be enclosed in double quotes.
5. Fields containing line breaks (`CRLF`), double quotes, or commas **must** be enclosed in double quotes.
6. Double quotes inside a quoted field must be escaped with an additional double quote (`""`).