CSV Test Data Generator

Generate a CSV of realistic fake data, with a header row, ready for Excel, Google Sheets or an import test.

Define your fields above and hit Generate

Example output

id,first_name,last_name,email,company,country,lifetime_value
a1c20910-0d21-44f5-bcb4-32b7ef0d7f20,Matthew,Silva,margaret.taylor85@demo.io,Soylent Corp,India,10.74
d1059345-906c-4b9e-ad42-87efad1d3f8f,Sofia,Lewis,ahmed.andersen93@demo.io,Initech,Germany,823.7
612193c1-f997-4223-8bb7-15650cc904fa,Thomas,Clark,james.nguyen6@demo.io,Massive Dynamic,Canada,809.28

Loading it

PostgreSQL

\copy customers FROM 'mock-data.csv' WITH (FORMAT csv, HEADER true)

Python

import pandas as pd
df = pd.read_csv("mock-data.csv")

How the CSV output is built

  • →The file follows RFC 4180: commas between values, quotes around values that contain commas, quotes or line breaks.
  • →The first row holds the field names, so spreadsheet and database imports can map the columns.
  • →Nested values from a JSON Schema are written into the cell as JSON.

Frequently asked

How big a CSV can I generate?

Up to 10,000 rows at a time, generated in your browser. For more, generate several files with different seeds.

Will the CSV open correctly in Excel?

Yes. If accented characters look wrong in older Excel versions, use Data → From Text/CSV and choose UTF-8.

How do I convert the CSV to JSON afterwards?

Pick JSON here instead, or use the CSV to JSON converter, which also turns numbers and true/false into real types.

Everything is generated in your browser. Need the data in another shape? Convert it with CSV ↔ JSON, or describe its structure first with the JSON Schema Generator.

ToolNinja