CSV with quoted fields, embedded commas and line breaks

A short CSV file in which fields contain commas, doubled quotation marks, line breaks, leading spaces and empty values.

Download

sample-csv-quoted-fields.csv

324 B324 bytes

Download CSV sample

Created in your browser in a few seconds, then checked against the SHA-256 checksum. The file is not uploaded anywhere. No sign-up.

Type
text/csv
SHA-256
10abd64257b1afd45bbb9c836ca9adac683fa818b99fe9d08c0cad7b276d97b5
Delivery
Created in your browser, so nothing is downloaded from our server (how it works).

Why test with this file

Finds importers that split on every comma or every newline instead of following the quoting rules of RFC 4180.

Data rows6
Columns4
Edge casesEmbedded comma, escaped quotes, multi-line field, empty field, leading and trailing spaces
Line endingsCRLF
EncodingUTF-8 without BOM

What to check

After your application has processed sample-csv-quoted-fields.csv, confirm that:

How the file begins

The opening lines of sample-csv-quoted-fields.csv, exactly as they appear in the file.

id,name,comment,amount
1,"Abbott, Ava","Contains a comma, inside quotes",10.50
2,Noah Brennan,"She said ""hello"" and left",20.00
3,Mia Castillo,"First line
Second line of the same field",30.25
4,Liam Dalton,,40.00
5,"  Zoe Eklund  ","Leading and trailing spaces are part of the value",50.75
6,Ethan Farrow,"",60.00

Preview

Shows the file contents.

Technical details

File namesample-csv-quoted-fields.csv
FormatCSV (Comma-separated values)
Extension.csv
MIME typetext/csv
Size324 bytes (324 B)
KindText
SHA-25610abd64257b1afd45bbb9c836ca9adac683fa818b99fe9d08c0cad7b276d97b5
Created2026-10-10
ValidationExact size, signature bytes and structure checked when the generator was built; your copy is checked against the SHA-256 after it is created
PreviewAvailable on this page
SourceGenerated in your browser by this site's generator; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategorySpreadsheets

Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked

Verify your copy

This file is created in your browser, so it has no direct URL for curl or wget. The bytes are the same every time and in every browser, so after saving it you can compare its checksum with the SHA-256 value above.

sha256sum sample-csv-quoted-fields.csv     # Linux
shasum -a 256 sample-csv-quoted-fields.csv # macOS

On Windows, run Get-FileHash sample-csv-quoted-fields.csv -Algorithm SHA256 in PowerShell. For scripts and pipelines, save the file once and keep your own copy.

About CSV

Tabular data as plain text, one record per line. The universal import and export format.

CSV format reference

Where it fits

Related files

All curated sample files