Generate a sample CSV file for import tests
Create tabular test data at the byte count you need. Check the final filler line and column rules against your importer before using the fixture as a schema test.
1 MB = 1,000,000 B · 1 MiB = 1,048,576 B
Advanced: test an upload limit
Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 10,485,760 B. Generate and download each file to test your endpoint.
What to test with a CSV fixture
Check the header and column counts before loading the file into an importer. Record whether your endpoint rejects the byte size or the row schema.
50 MB CSV import test · JSON sample · Convert CSV, JSON and YAML
Choose a size here
These options set the generator above. Separate size guides explain how to test a particular upload boundary.
Guides for specific upload limits
File structure and testing limits
Generated tabular records reach the chosen byte count with a final filler line. Check column counts and importer rules; this is not a guarantee that every row fits your production schema.
Format reference: RFC 4180.
This generator assembles the file in your browser; file content is not sent to a server. Site analytics may make network requests. Office ↔ PDF conversion uses a separate server workflow. Data processing and privacy.
Technical notes for every format · Guide to testing file upload limits
Questions
How small can a CSV file be?
About 80 bytes. Below that the format cannot carry its mandatory structure, let alone padding.
Will every generated CSV row match my import schema?
The sample header has id, first_name, last_name, email, country, signup_date, plan and mrr_usd fields. The final filler line may have a different column count; validate your schema separately or use your own production-shaped fixture.
Can I ask for an unusual size?
Any byte count above the minimum works — for example 3,145,728 bytes (exactly 3 MB) or 27.5 MB. Drag the caliper or type the number.
Noticed an issue with this test file? Report an issue →