20 MB CSV sample file

A CSV file of exactly 20,971,520 bytes. It is a valid Comma-separated values file, generated for this site and checked with an independent parser. Use it wherever you need a 20 MB sample, test or dummy CSV file.

Download

sample-csv-20mb.csv

20 MB20,971,520 bytes

Download 20 MB CSV

Direct download. No sign-up and no waiting.

Type
text/csv
SHA-256
c3d35d31d93fe57f5cad0aa18c34ae7b19cc79ddea241ad708b784086d1a11e0
Direct URL
https://sampletestfiles.com/downloads/csv/sample-csv-20mb.csv

What is in this file

A header row and 154,320 rows of fictional customer records in 12 columns. The notes field of the last row is lengthened so the file lands on the exact byte count.

Data rows154,320
Columns12
DelimiterComma
Header rowYes
Line endingsCRLF (RFC 4180)
EncodingUTF-8 (ASCII characters only)

How the file begins

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

id,first_name,last_name,email,phone,city,country,signup_date,plan,balance,active,notes
1,Ethan,Zeller,ethan.zeller1@example.com,+1-202-555-0163,Jaipur,IN,2021-07-10,team,2769.84,true,Billing contact changed recently
2,Elena,Underhill,elena.underhill2@example.net,+1-202-555-0166,Porto Alegre,BR,2024-04-28,free,4647.61,true,Interested in bulk pricing
3,Ethan,Farrow,ethan.farrow3@example.org,+1-202-555-0170,Krakow,PL,2023-08-24,business,536.73,false,Interested in bulk pricing
4,Victor,Brennan,victor.brennan4@example.com,+1-202-555-0175,Lisbon,PT,2024-12-18,business,2410.43,true,Referred by an existing customer
5,Felix,Ibarra,felix.ibarra5@example.net,+1-202-555-0171,Graz,AT,2025-11-14,starter,2832.21,false,Requested data export
6,Kira,Hollis,kira.hollis6@example.com,+1-202-555-0109,Cork,IE,2025-06-25,starter,3636.58,true,Prefers invoices by email

Preview

Shows the first 64 KB of the file.

Where 20 MB matters

A 20,971,520-byte file: right at the default attachment limit of Outlook, and just under the 25 MB ceilings of Gmail and GitHub web uploads. These are the default limits a file of this size is useful for testing:

SystemLimitNote
Microsoft Outlook20 MB of attachments by default for internet mail accountsThis file is right at the limit; add a second attachment and it is exceeded.
Gmail25 MB per messageUnder the limit, although email encoding adds about a third in transit.
GitHub web uploads25 MiB per file added through the browserAccepted. Pushing with Git allows larger files.
Cloudflare Pages assets25 MiB per fileThe largest round size that can be served as a static asset.
Amazon API Gateway10 MB payloadRejected; the upload has to go directly to object storage.
ASP.NET Core (Kestrel)About 28.6 MB request body by defaultAccepted with room for the multipart overhead.

All 20 MB sample files

Use this file for

  • Testing email attachment limits
  • Testing data import features
  • Checking delimiter and encoding detection

Testing notes for CSV

  • Splitting each line on commas breaks on quoted fields. Test with the quoted-fields sample before trusting an importer.
  • Excel opens CSV files using the system locale, so a file that works in one country shows everything in one column in another.

CSV format reference

Technical details

File namesample-csv-20mb.csv
FormatCSV (Comma-separated values)
Extension.csv
MIME typetext/csv
Size20,971,520 bytes (20 MB)
KindText
SHA-256c3d35d31d93fe57f5cad0aa18c34ae7b19cc79ddea241ad708b784086d1a11e0
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-20mb.csv 'https://sampletestfiles.com/downloads/csv/sample-csv-20mb.csv'
sha256sum sample-csv-20mb.csv     # Linux
shasum -a 256 sample-csv-20mb.csv # macOS

On Windows, run Get-FileHash sample-csv-20mb.csv -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.

Related files

Questions about this file

Is this file exactly 20 MB?
Yes. It is 20,971,520 bytes, which is 20 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
What is inside the 20 MB CSV file?
A header row and 154,320 rows of fictional customer records in 12 columns. The notes field of the last row is lengthened so the file lands on the exact byte count.
Do the CSV samples have a header row?
Yes. The first line names the columns, and the sized samples use CRLF line endings as RFC 4180 describes.