Spreadsheet · 13 files

Sample CSV Files

CSV files of realistic fake customer records with a header row, from 10 to 1,000,000 rows. Twelve columns cover integers, names, emails, phone numbers, dates, decimals and booleans.

All 13 CSV files

Download all with curl
Download 13 files (414 MB)Shell
# 13 files, 414 MB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/spreadsheet/csv/sample-10-rows.csv
https://files.samplefiles.com/spreadsheet/csv/sample-100-rows.csv
https://files.samplefiles.com/spreadsheet/csv/sample-100kb.csv
https://files.samplefiles.com/spreadsheet/csv/sample-1k-rows.csv
https://files.samplefiles.com/spreadsheet/csv/sample-1mb.csv
https://files.samplefiles.com/spreadsheet/csv/sample-10k-rows.csv
https://files.samplefiles.com/spreadsheet/csv/sample-5mb.csv
https://files.samplefiles.com/spreadsheet/csv/sample-10mb.csv
https://files.samplefiles.com/spreadsheet/csv/sample-100k-rows.csv
https://files.samplefiles.com/spreadsheet/csv/sample-50mb.csv
https://files.samplefiles.com/spreadsheet/csv/sample-500k-rows.csv
https://files.samplefiles.com/spreadsheet/csv/sample-100mb.csv
https://files.samplefiles.com/spreadsheet/csv/sample-1m-rows.csv
EOF
FileSizeDetailsDownload
CSV, 10 rowssample-10-rows.csv1.5 KB10 rowsDownload
CSV, 100 rowssample-100-rows.csv15 KB100 rowsDownload
100 KB CSV filesample-100kb.csv99.9 KB659 rowsDownload
CSV, 1,000 rowssample-1k-rows.csv152 KB1,000 rowsDownload
1 MB CSV filesample-1mb.csv1023 KB6,671 rowsDownload
CSV, 10,000 rowssample-10k-rows.csv1.5 MB10,000 rowsDownload
5 MB CSV filesample-5mb.csv4.9 MB33,020 rowsDownload
10 MB CSV filesample-10mb.csv9.9 MB65,903 rowsDownload
CSV, 100,000 rowssample-100k-rows.csv15.2 MB100,000 rowsDownload
50 MB CSV filesample-50mb.csv49.9 MB326,252 rowsDownload
CSV, 500,000 rowssample-500k-rows.csv77.2 MB500,000 rowsDownload
100 MB CSV filesample-100mb.csv99.9 MB651,099 rowsDownload
CSV, 1,000,000 rowssample-1m-rows.csv154 MB1,000,000 rowsDownload

FAQ

Is the data real?

No. It is generated with Faker; emails use reserved example.com domains and phone numbers use the fictional 555-01xx range.

What encoding do the CSV files use?

UTF-8 without a BOM and LF line endings. BOM, UTF-16, Latin-1, Shift_JIS, CRLF and semicolon variants are in Edge Cases → Encoding.

What columns are in the files?

id, first_name, last_name, email, phone, company, job_title, city, country, signup_date, balance and active, with a header row.

Can Excel open the 1-million-row CSV?

Not completely. Excel stops at 1,048,576 rows per sheet, so it loads the file but warns that it didn’t load everything. Use it to test that limit, or a streaming reader such as pandas with chunksize.

How do I load a CSV into PostgreSQL?

Create a table with the twelve columns, then run \copy customers FROM 'sample-1k-rows.csv' WITH (FORMAT csv, HEADER true) in psql.

Can I load these files directly from my code?

Yes. Files are served from files.samplefiles.com with permissive CORS headers, so fetch(), <video>, <audio> and <img> can use the URLs directly.