2 MB CSV sample file

A CSV file of exactly 2,097,152 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 2 MB sample, test or dummy CSV file.

Download

sample-csv-2mb.csv

2 MB2,097,152 bytes

Download 2 MB CSV

Created in your browser in a few seconds, then checked against the SHA-256 checksum. No sign-up.

Type
text/csv
SHA-256
e2a41a4810ba4ac2ea99538670dd1946e76c34560a0df4d8a4e4905f948bb241
Delivery
Created in your browser. Files of 2 MB and more have no direct URL (why).

What is in this file

A header row and 15,671 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 rows15,671
Columns12
DelimiterComma
Header rowYes
Line endingsCRLF (RFC 4180)
EncodingUTF-8 (ASCII characters only)

How the file begins

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

id,first_name,last_name,email,phone,city,country,signup_date,plan,balance,active,notes
1,Mia,Brennan,mia.brennan1@example.org,+1-202-555-0102,Osaka,JP,2023-09-27,team,1070.40,true,Upgraded after a support call
2,Freya,Okafor,freya.okafor2@example.com,+1-202-555-0152,Da Nang,VN,2023-08-15,free,4871.96,true,Upgraded after a support call
3,Sofia,Tanaka,sofia.tanaka3@example.com,+1-202-555-0154,Cork,IE,2022-03-02,business,1958.37,true,Interested in bulk pricing
4,Tomas,Weller,tomas.weller4@example.com,+1-202-555-0156,Utrecht,NL,2023-07-12,starter,865.51,true,Trial extended by two weeks
5,Kenji,Quimby,kenji.quimby5@example.org,+1-202-555-0187,Osaka,JP,2021-03-13,team,3237.65,false,Reported a login issue in March
6,Priya,Varga,priya.varga6@example.org,+1-202-555-0191,Porto Alegre,BR,2023-05-24,starter,2197.88,true,Requested data export

Preview

Creates the file in your browser and shows its first 64 KB.

Where 2 MB matters

A 2,097,152-byte file: exactly the default upload limit of PHP, and twice the default of nginx and Spring Boot. These are the default limits a file of this size is useful for testing:

SystemLimitNote
PHP2 MB per uploaded file by default (upload_max_filesize)A file of exactly 2 MB is accepted; one byte more is refused.
nginx1 MB by default (client_max_body_size)Rejected with 413 Request Entity Too Large.
Spring Boot multipart1 MB per file by default (max-file-size)Rejected unless the property is raised.
Django2.5 MB in memory by default2 MB is held in memory; the 5 MB sample is streamed to a temporary file.
Vercel Functions4.5 MB request bodyAccepted, including as base64 at about 2.8 MB.

All 2 MB sample files

Use this file for

  • Finding out whether a 1 MB default has been raised
  • Checking delimiter and encoding detection
  • Load-testing with many rows

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-2mb.csv
FormatCSV (Comma-separated values)
Extension.csv
MIME typetext/csv
Size2,097,152 bytes (2 MB)
KindText
SHA-256e2a41a4810ba4ac2ea99538670dd1946e76c34560a0df4d8a4e4905f948bb241
Created2026-10-14
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-2mb.csv     # Linux
shasum -a 256 sample-csv-2mb.csv # macOS

On Windows, run Get-FileHash sample-csv-2mb.csv -Algorithm SHA256 in PowerShell. For scripts and pipelines, save the file once and keep your own copy, or use a 1 MB file, which has a direct URL.

Related files

Questions about this file

Is this file exactly 2 MB?
Yes. It is 2,097,152 bytes, which is 2 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
What is inside the 2 MB CSV file?
A header row and 15,657 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.
Is the data real?
No. Names are invented, email addresses use the reserved example.com domains and phone numbers use the fictional 555-01xx range.