Free CSV sample, test and dummy files
Tabular data as plain text, one record per line. The universal import and export format. Download valid CSV test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.
- Extension
- .csv
- MIME type
- text/csv
- Kind
- Text
- Category
- Spreadsheets
Create a CSV file of any size
Choose any size from 201 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.
CSV files by size
Every file below is a valid Comma-separated values file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.
| File | Size | Contents | Download |
|---|---|---|---|
| 1 KB CSV samplesample-csv-1kb.csv | 1 KB1,024 bytes | Data rows: 5 | Download CSV |
| 5 KB CSV samplesample-csv-5kb.csv | 5 KB5,120 bytes | Data rows: 36 | Download CSV |
| 10 KB CSV samplesample-csv-10kb.csv | 10 KB10,240 bytes | Data rows: 76 | Download CSV |
| 25 KB CSV samplesample-csv-25kb.csv | 25 KB25,600 bytes | Data rows: 194 | Download CSV |
| 50 KB CSV samplesample-csv-50kb.csv | 50 KB51,200 bytes | Data rows: 389 | Download CSV |
| 100 KB CSV samplesample-csv-100kb.csv | 100 KB102,400 bytes | Data rows: 780 | Download CSV |
| 200 KB CSV samplesample-csv-200kb.csv | 200 KB204,800 bytes | Data rows: 1,552 | Download CSV |
| 500 KB CSV samplesample-csv-500kb.csv | 500 KB512,000 bytes | Data rows: 3,859 | Download CSV |
| 1 MB CSV samplesample-csv-1mb.csv | 1 MB1,048,576 bytes | Data rows: 7,884 | Download CSV |
| 2 MB CSV samplesample-csv-2mb.csv | 2 MB2,097,152 bytes | Data rows: 15,657 | Download CSV |
| 3 MB CSV samplesample-csv-3mb.csv | 3 MB3,145,728 bytes | Data rows: 23,426 | Download CSV |
| 5 MB CSV samplesample-csv-5mb.csv | 5 MB5,242,880 bytes | Data rows: 38,898 | Download CSV |
| 10 MB CSV samplesample-csv-10mb.csv | 10 MB10,485,760 bytes | Data rows: 77,650 | Download CSV |
| 15 MB CSV samplesample-csv-15mb.csv | 15 MB15,728,640 bytes | Data rows: 116,277 | Download CSV |
| 20 MB CSV samplesample-csv-20mb.csv | 20 MB20,971,520 bytes | Data rows: 154,320 | Download CSV |
| 25 MB CSV samplesample-csv-25mb.csv | 25 MB26,214,400 bytes | Data rows: 192,698 | Download CSV |
| 30 MB CSV samplesample-csv-30mb.csv | 30 MB31,457,280 bytes | Data rows: 230,928 | Download CSV |
| 50 MB CSV samplesample-csv-50mb.csv | 50 MB52,428,800 bytes | Data rows: 383,801 | Download CSV |
| 100 MB CSV samplesample-csv-100mb.csv | 100 MB104,857,600 bytes | Data rows: 766,000 | Download CSV |
More CSV samples
Hand-designed files with realistic content or a specific edge case.
| File | Size | Contents | Download |
|---|---|---|---|
| Sample customers CSV (100 rows)sample-customers.csv | 7.84 KB8,028 bytes | Data rows: 100 | Download CSV |
| CSV with quoted fields, embedded commas and line breakssample-csv-quoted-fields.csv | 324 B324 bytes | Data rows: 6 | Download CSV |
| Semicolon-delimited CSV with decimal commassample-csv-semicolon-delimited.csv | 2.02 KB2,066 bytes | Data rows: 25 | Download CSV |
| CSV with a UTF-8 byte order mark and non-ASCII textsample-csv-utf8-bom.csv | 193 B193 bytes | Data rows: 6 | Download CSV |
| Sample CSV file with 1,000 rowssample-csv-1000-rows.csv | 79.8 KB81,739 bytes | Data rows: 1,000 | Download CSV |
| Sample CSV file with 10,000 rowssample-csv-10000-rows.csv | 818 KB837,484 bytes | Data rows: 10,000 | Download CSV |
What is a CSV file?
CSV stores a table as text: each line is a row and commas separate the fields. Fields that contain commas, quotation marks or line breaks are wrapped in double quotes, with embedded quotes doubled.
There is no single enforced standard. RFC 4180 documents the common conventions, but real files vary in delimiter, quoting, encoding and line endings, which is exactly why importers need testing.
How to recognise a CSV file
CSV files have no file signature, the magic bytes that most binary formats begin with.
No signature bytes. CSV files are identified by parsing their content.
| Extension | .csv |
|---|---|
| MIME type | text/csv |
| Reference | RFC 4180 |
| Delimiter | Comma; semicolon and tab variants are common |
| Quoting | Double quotes, doubled to escape |
| Types | None: every value is text until the reader interprets it |
What to test for
These are the behaviours that most often go wrong when software handles CSV files.
- 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.
- Values beginning with =, +, - or @ can be executed as formulas when a CSV is opened in a spreadsheet, a risk known as CSV injection.
For a full test plan with files and expected results, see how to test a CSV import.
Strengths of CSV
- Understood by every spreadsheet, database and programming language.
- Can be read and written as a stream, one row at a time, at any size.
Limitations of CSV
- No types, no schema and no standard encoding: the reader has to guess.
- Delimiter and quoting conventions vary between tools and locales.
Typical uses of CSV test files
- Testing data import features
- Checking delimiter and encoding detection
- Load-testing with many rows
- Seeding databases and demos
Software that opens CSV
- Microsoft Excel, Google Sheets and LibreOffice Calc
- Databases (COPY, LOAD DATA, .import)
- pandas, Papa Parse and the Python csv module
Specifications
Related
CSV sample files: questions
- 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.
- 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.
- What is the MIME type of a CSV file?
- The MIME type is text/csv. The file extension is .csv.
- Is a sample CSV file the same as a dummy or example CSV file?
- Yes. Sample, test, dummy and example CSV files are different names for the same thing: a CSV file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy CSV file.
Build a fixture for your parser
Create synthetic records with quoted fields, Unicode, missing values or nested JSON. Preview the output and check the actual bytes before downloading.
A repeatable quoted-field test
Download the quoted-fields CSV fixture. It contains six data records, but a line break inside a quoted field means that counting physical lines is not a reliable row count. A comma inside quotes must also remain inside one field.
Save the fixture, then run this Python standard-library check locally:
import csv
from pathlib import Path
with Path("sample-csv-quoted-fields.csv").open(encoding="utf-8-sig", newline="") as source:
rows = list(csv.reader(source, strict=True))
assert len(rows) - 1 == 6
assert all(len(row) == len(rows[0]) for row in rows[1:])
print("Six records with consistent columns")These assertions test row parsing and column count. They do not validate email addresses, required fields or business rules. Repeat the import in your application and compare the parsed values, especially quoted commas and newlines. Use the test-data generator to create a larger version after the small fixture works.