About Mock CSV Generator
Testing an import screen, a spreadsheet template or an ETL job needs a file with believable rows: names with accents, prices with decimals, dates in a fixed format and some empty cells. Pick a template or list your columns one per line, choose how many rows, and download a comma-separated file with a header row.
Values containing commas or quotes are quoted correctly, and any text that a spreadsheet would run as a formula gets a leading apostrophe, so the file opens safely in Excel, Numbers or LibreOffice.
How it works
- Each line of the schema is a field name, a colon and a type, with optional settings in parentheses: integer(1, 100), decimal(0, 5, 1), date(2020-01-01, 2025-12-31), oneOf(red, green, blue), words(4) or boolean(80) for 80% true.
- Other types: id, uuid, firstName, lastName, fullName, email, username, phone, company, jobTitle, street, city, country, countryCode, postcode, latitude, longitude, product, sku, price, word, sentence, paragraph, url, ipv4, color, currency and datetime.
- A ? after the type makes the field empty (null) in about one row in five, for testing how your code handles missing values.
- Values come from a seeded generator, so a given seed and schema always produce the same rows. It is not suitable for anything secret, such as passwords or tokens.
Questions
What do empty values look like in the CSV?
A column marked with ? in the schema is left empty in about one row in five: two commas with nothing between them. That is how most spreadsheets and importers read a missing value.
Can I use semicolons instead of commas?
The file uses commas, the most widely accepted separator. Spreadsheets set to a European locale may expect semicolons; their import dialog lets you pick the comma, or convert the file afterwards.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.