Mock CSV Generator

Describe each column on its own line, such as "age: int(18, 90)", and get a CSV of fake rows to test an import, a report or a spreadsheet with. Every email address uses a reserved example domain.

How it works

The schema is one column per line: a name, a colon and a type, with optional settings in brackets. int(18, 90) is a whole number from 18 to 90, pick(free, pro, team) is one of those values, and date(2024-01-01, 2024-12-31) is a date in that range. Lines starting with # are ignored. The schema is the same as the Mock JSON Generator uses, so one written for either works in both.

The first row is the header, made from the column names. Each row after it is built by making a value for every column. Numbers, choices and dates are drawn with crypto.getRandomValues, evenly across the range with both ends included. Names come from short bundled lists, and an email uses the same row’s name on example.com, example.org or example.net, which are reserved so that no real person can be mailed.

The rows are written as CSV with the separator you choose. A value that holds the separator, a quote mark or a line break is quoted. Rows end with CRLF, as the CSV standard and Excel expect.

How to use it

  1. 1 Write your columns in the Schema box, one "name: type" per line. The types are listed under the box.
  2. 2 Set how many rows to make, from 1 to 10,000, and the separator.
  3. 3 Read the CSV that appears. If a line of the schema has a mistake, the message names the line.
  4. 4 Copy the CSV or download it. Regenerate makes a new set from the same schema.

Good to know

  • Put "id: id" first if your import needs a row number: it counts 1, 2, 3 and so on.
  • Repeat a value in pick() to make it more likely: status: pick(active, active, active, paused) gives active three times as often.
  • There is no seed, so every Regenerate is different. If a test needs the same file every time, download it once and keep it with the test.
  • Choose semicolons for a file that will be opened in Excel set to a European language, and tab for a file you want to paste into a sheet.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Fake CSV data for testing imports, reports and spreadsheets

Sooner or later every system that accepts CSV needs a test file. An import screen has to be tried with ten rows and with ten thousand. A report has to be checked with plenty of names, dates across a whole year and a sensible spread of numbers. A spreadsheet template needs data to show the client before the real data exists. Using a copy of production data for this is the habit that ends up in a breach notice, because test files get emailed, committed and forgotten. Fake data has none of that risk.

This generator builds the file from a schema you write in plain text, one column per line. Each line names the column and says what goes in it: id for a running number, fullName for a person, email for a matching address, int(18, 90) for a whole number in a range, float(0, 5, 2) for a decimal with two places, pick(free, pro, team) for one of a fixed set of values, and date or datetime for a point in time. The header row is made from the names, in the order you wrote them. A mistake in a line is reported with its line number, so you never get half a file.

The values are drawn with crypto.getRandomValues, the browser’s cryptographic random source, and spread evenly across each range with both ends included. Emails are built from the same row’s name, so Priya Okafor gets an address like priya.okafor@example.org, and they only ever use example.com, example.org and example.net. Those three domains are reserved for documentation and testing, so a system under test that sends a welcome email by mistake cannot reach anyone.

The output is real CSV, not text with commas pasted in. A value that contains the separator, a quote mark or a line break is wrapped in quotes with inner quote marks doubled, and rows end with CRLF as RFC 4180 and Excel expect. You can choose comma, semicolon, tab or pipe as the separator, and the download is named mock.csv, mock.tsv or mock.txt to match. Up to 10,000 rows can be made at a time.

The schema format is shared with the Mock JSON Generator, so the same description can produce a CSV for one test and a JSON array for another. Names come from short international lists, so they repeat in large files; that is fine for load and layout testing but not for anything that studies names. Nothing is sent anywhere. The rows are made on your device, and a new set is one press of Regenerate away.

Frequently asked questions

Which types can I use?

id, uuid, int, float, bool, pick, firstName, lastName, fullName, email, word, sentence, date, datetime, city, country and color. The list under the schema shows each one with an example.

Are the email addresses real?

No. They are built from the row’s fake name on example.com, example.org or example.net. Those domains are reserved by RFC 2606 for examples, so a test that sends mail by mistake reaches nobody.

How many rows can it make?

Up to 10,000 at a time, plus the header row.

Is anything sent to a server?

No. The rows are made in your browser with its built-in random number generator.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.