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

Direct download. No sign-up and no waiting.

Type
text/csv
SHA-256
10abd64257b1afd45bbb9c836ca9adac683fa818b99fe9d08c0cad7b276d97b5
Direct URL
https://sampletestfiles.com/downloads/samples/sample-csv-quoted-fields.csv

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 file was generated
PreviewAvailable on this page
SourceGenerated for this site; 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

Download from the command line and verify

Fetch the file with curl, then compare its checksum with the SHA-256 value above.

curl -o sample-csv-quoted-fields.csv 'https://sampletestfiles.com/downloads/samples/sample-csv-quoted-fields.csv'
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. A matching value proves that the download is complete and unaltered.

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