Use case · 19 files

Test CSV import

CSV looks simple until real users upload files from Excel, legacy systems and other countries. These files reproduce the problems that most often break imports: encodings, byte-order marks, line endings, delimiters and quoting.

Download all with curl
Download 19 files (171 MB)Shell
# 19 files, 171 MB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/spreadsheet/csv/sample-100-rows.csv
https://files.samplefiles.com/spreadsheet/csv/sample-10k-rows.csv
https://files.samplefiles.com/spreadsheet/csv/sample-100k-rows.csv
https://files.samplefiles.com/spreadsheet/csv/sample-1m-rows.csv
https://files.samplefiles.com/edge-cases/encoding/utf8-bom.csv
https://files.samplefiles.com/edge-cases/encoding/utf16le.csv
https://files.samplefiles.com/edge-cases/encoding/latin1.csv
https://files.samplefiles.com/edge-cases/encoding/windows-1252.csv
https://files.samplefiles.com/edge-cases/encoding/shift-jis.csv
https://files.samplefiles.com/edge-cases/encoding/gb18030.csv
https://files.samplefiles.com/edge-cases/encoding/crlf.csv
https://files.samplefiles.com/edge-cases/encoding/cr-only.csv
https://files.samplefiles.com/edge-cases/encoding/mixed-line-endings.csv
https://files.samplefiles.com/edge-cases/encoding/semicolon.csv
https://files.samplefiles.com/edge-cases/encoding/no-header.csv
https://files.samplefiles.com/edge-cases/encoding/quoted-fields.csv
https://files.samplefiles.com/edge-cases/corrupt/malformed.csv
https://files.samplefiles.com/edge-cases/empty/header-only.csv
https://files.samplefiles.com/edge-cases/empty/zero-byte.csv
EOF

Row counts

Clean UTF-8 CSV with a header row, for testing performance and pagination.

FileSizeDetailsDownload
CSV, 100 rowssample-100-rows.csv15 KB100 rowsDownload
CSV, 10,000 rowssample-10k-rows.csv1.5 MB10,000 rowsDownload
CSV, 100,000 rowssample-100k-rows.csv15.2 MB100,000 rowsDownload
CSV, 1,000,000 rowssample-1m-rows.csv154 MB1,000,000 rowsDownload

Encodings

The most common cause of garbled names (é instead of é).

FileSizeDetailsDownload
CSV, UTF-8 with BOMutf8-bom.csv987 BDownload
CSV, UTF-16 LE with BOMutf16le.csv1.9 KBDownload
CSV, ISO-8859-1 (Latin-1)latin1.csv974 BDownload
CSV, Windows-1252windows-1252.csv1014 BDownload
CSV, Shift_JIS (Japanese)shift-jis.csv61 BDownload
CSV, GB18030 (Chinese)gb18030.csv49 BDownload

Line endings and delimiters

Windows, classic Mac and mixed line endings, European semicolons and missing headers.

FileSizeDetailsDownload
CSV with CRLF line endingscrlf.csv1008 BDownload
CSV with CR-only line endingscr-only.csv984 BDownload
CSV with mixed line endingsmixed-line-endings.csv992 BDownload
CSV with semicolon delimitersemicolon.csv984 BDownload
CSV without a header rowno-header.csv947 BDownload

Quoting and injection

Commas, quotes and newlines inside fields, plus a formula-like value for CSV-injection testing.

FileSizeDetailsDownload
CSV with tricky quoted fieldsquoted-fields.csv329 BDownload

Broken and empty

Short rows, long rows, an unterminated quote, and files with no data.

FileSizeDetailsDownload
Malformed CSVmalformed.csv149 BDownload
CSV with a header and no rowsheader-only.csv30 B0 rowsDownload
Zero-byte .csv filezero-byte.csv0 BDownload