1 MB CSV sample file

A CSV file of exactly 1,048,576 bytes. It is a valid Comma-separated values file, generated for this site and checked with an independent parser.

Download

sample-csv-1mb.csv

1 MB1,048,576 bytes

Download 1 MB CSV

Direct download. No sign-up and no waiting.

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

What is in this file

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

How the file begins

The opening lines of sample-csv-1mb.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,Pune,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 1 MB matters

A 1,048,576-byte file: exactly the default upload limit of nginx, Spring Boot and Next.js. These are the default limits a file of this size is useful for testing:

SystemLimitNote
nginx1 MB by default (client_max_body_size)A multipart upload of this file exceeds the limit by the size of the form boundaries.
Spring Boot multipart1 MB per file by default (max-file-size)A file of exactly 1 MB is at the limit.
Next.js API routes and Server Actions1 MB by defaultLarger bodies need the size limit raised in configuration.
Cloud Firestore documents1 MiB (1,048,576 bytes)The same number of bytes as this file.
Apache Kafka messagesAbout 1 MB by defaultBrokers reject larger records unless message.max.bytes is raised.

All 1 MB sample files

Use this file for

  • Download tests on mobile connections
  • Seeding databases and demos
  • Testing data import features

Testing notes for CSV

  • Excel opens CSV files using the system locale, so a file that works in one country shows everything in one column in another.
  • Values beginning with =, +, - or @ can be executed as formulas when a CSV is opened in a spreadsheet, a risk known as CSV injection.

CSV format reference

Technical details

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

On Windows, run Get-FileHash sample-csv-1mb.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 1 MB?
Yes. It is 1,048,576 bytes, which is 1 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
What is inside the 1 MB CSV file?
A header row and 7,885 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.