5 MB CSV sample file
A CSV file of exactly 5,242,880 bytes. It is a valid Comma-separated values file, generated for this site and checked with an independent parser.
Download
sample-csv-5mb.csv
5 MB5,242,880 bytes
Download 5 MB CSVDirect download. No sign-up and no waiting.
- Type
- text/csv
- SHA-256
b3d8fce02fb492f3a3f5344f41295af943ca93977f3c3a8fbe4b52021bdacf90- Direct URL
https://sampletestfiles.com/downloads/csv/sample-csv-5mb.csv
What is in this file
A header row and 38,933 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 rows | 38,933 |
|---|---|
| Columns | 12 |
| Delimiter | Comma |
| Header row | Yes |
| Line endings | CRLF (RFC 4180) |
| Encoding | UTF-8 (ASCII characters only) |
How the file begins
The opening lines of sample-csv-5mb.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 emailPreview
Shows the first 64 KB of the file.
Where 5 MB matters
A 5,242,880-byte file: the size of a phone photo and the minimum part size for S3 multipart uploads. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| PHP | 2 MB per uploaded file by default (upload_max_filesize) | A 5 MB upload fails on an untuned PHP installation. |
| Vercel Functions | 4.5 MB request body | Larger uploads must go directly to object storage. |
| Amazon S3 multipart upload | 5 MiB minimum part size | This file is exactly one minimum part. |
| AWS Lambda | 6 MB synchronous invocation payload | 5 MB of binary data exceeds it once base64-encoded. |
| Browser localStorage | About 5 MB per origin | Storing this file as text fills the quota. |
| Django | 2.5 MB in memory by default | Larger uploads are streamed to a temporary file instead of held in memory. |
Use this file for
- Simulating photo uploads from phones
- Testing data import features
- Checking delimiter and encoding detection
Testing notes for CSV
- Values beginning with =, +, - or @ can be executed as formulas when a CSV is opened in a spreadsheet, a risk known as CSV injection.
- Splitting each line on commas breaks on quoted fields. Test with the quoted-fields sample before trusting an importer.
Technical details
| File name | sample-csv-5mb.csv |
|---|---|
| Format | CSV (Comma-separated values) |
| Extension | .csv |
| MIME type | text/csv |
| Size | 5,242,880 bytes (5 MB) |
| Kind | Text |
| SHA-256 | b3d8fce02fb492f3a3f5344f41295af943ca93977f3c3a8fbe4b52021bdacf90 |
| Created | 2026-10-10 |
| Validation | Exact size, signature bytes and structure checked when the file was generated |
| Preview | Available on this page |
| Source | Generated for this site; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Spreadsheets |
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-5mb.csv 'https://sampletestfiles.com/downloads/csv/sample-csv-5mb.csv'
sha256sum sample-csv-5mb.csv # Linux
shasum -a 256 sample-csv-5mb.csv # macOSOn Windows, run Get-FileHash sample-csv-5mb.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 5 MB?
- Yes. It is 5,242,880 bytes, which is 5 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 5 MB CSV file?
- A header row and 38,933 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.