Fake Data Generator

Generate realistic test data as CSV, JSON or SQL — unlimited rows, all local.

Runs in your browserUpdated Built and maintained by Leon and Henrik

Build a schema, choose your field types, and generate realistic test data as CSV, JSON or SQL — up to 10,000 rows per click, nothing leaving your browser. Free. No sign-up. Runs in your browser, nothing is uploaded.

Fake Data Generator

Schema

Preview

Runs in your browser
Nothing is uploaded

Define your columns, pick a type for each, choose how many rows and export as CSV, JSON or SQL INSERT statements. A starter schema (name, email, city) is generated as soon as the page loads, so you can copy something straight away and adjust from there.

The 23 field types and what they produce

All values are generated by the open-source faker library in US English. Formats matter more than people expect, so here's what each type actually gives you:

TypeSample outputType in JSON / SQL
Full Name, First Name, Last NameLacy Corkerytext
EmailLacy_Corkery23@hotmail.comtext
UsernameWebster79text
Phone(456) 978-6965 x956 — format varies per rowtext
Street Address, City, Country2048 Ritchie Oval · Leuschkeside · Perutext
Zip04826 or 92935-9405 (5-digit or ZIP+4)text
Company, Job Title—text
UUIDrandom version-4 UUIDtext
Integer1 to 100,000number
Float0 to 10,000, two decimalsnumber
Currency Amount682.85 (0 to 1,000)text, quoted
Booleantrue / falseboolean (TRUE / FALSE in SQL)
Date2026-03-14, within the past yeartext
Datetime2026-03-14 09:21:07, in UTCtext
Lorem Word, Lorem SentenceLatin-style fillertext
URLhttps://critical-marten.comtext
Color Hex#ec6dd3text

Note the two that trip people up: Currency Amount comes out as a string ("682.85" in JSON, '682.85' in SQL) — use Float if your column is numeric and you need a JSON number. And Phone mixes several US formats, including extensions, so it's good for testing how your UI copes with messy input but not for validating a strict pattern.

Which export for which job

You want to…ExportWhat you get
Open the data in Excel or Sheets, or test a file-upload featureCSVHeader row plus one line per row; values with commas, quotes or line breaks are quoted
Feed a mock API, a db.json or front-end fixturesJSONA pretty-printed array of objects, keys = your column names
Fill a database table directlySQLOne INSERT INTO "table" (…) VALUES (…); per row

Column names become the CSV header, the JSON keys and the SQL column list. Empty column names are skipped, and duplicates get a suffix (email, email_2) so no data silently overwrites another column. To convert an export between formats later, the JSON ↔ CSV Converter does it in one step.

Making the SQL run first time

The SQL output is written for PostgreSQL and SQLite, and a few databases need a small adjustment:

  • MySQL / MariaDB: identifiers are wrapped in double quotes ("users", "email"). By default MySQL reads double quotes as strings, so either run SET sql_mode = 'ANSI_QUOTES'; first or replace the double quotes with backticks.
  • SQL Server: there is no TRUE / FALSE literal; replace them with 1 and 0 for a bit column.
  • Apostrophes are escaped the standard way, so a surname like O'Kon becomes 'O''Kon' and won't break the statement.
  • Table names are cleaned to letters, digits and underscores, so order-items becomes order_items.
  • Ten thousand single-row INSERTs load fine in a console, but wrap them in a transaction (BEGIN; … COMMIT;) if your client is slow to commit each one.

Spreadsheet gotchas with CSV

  • Leading zeros vanish. Excel and Sheets turn the zip code 04826 into the number 4826 when you open a CSV directly. Import the file via the data import dialog and set that column to text.
  • Dates may be reformatted to your locale on opening; the file itself still contains the ISO 2026-03-14 format.
  • Long numbers aren't an issue here — integers stay at or below 100,000 — but keep it in mind if you later add IDs from elsewhere.

Patterns that make test data more useful

  • Name columns exactly as your code expects (first_name, created_at), so an export drops straight into a migration or fixture.
  • Add a Boolean column like is_active or paid to exercise both branches of a UI component.
  • Use Lorem Sentence in title and description fields to see how layouts cope with long text.
  • Use UUID as the primary key, since it's the only type that's effectively collision-free. For a handful of standalone IDs, the UUID Generator is quicker.
  • Generate once, keep the file. Each click produces a fresh random batch, so save the download if your tests need the same rows every time.

Frequently asked questions