Fake Data Generator
Generate realistic test data as CSV, JSON or SQL — unlimited rows, all local.
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.
Schema
Preview
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:
| Type | Sample output | Type in JSON / SQL |
|---|---|---|
| Full Name, First Name, Last Name | Lacy Corkery | text |
| Lacy_Corkery23@hotmail.com | text | |
| Username | Webster79 | text |
| Phone | (456) 978-6965 x956 — format varies per row | text |
| Street Address, City, Country | 2048 Ritchie Oval · Leuschkeside · Peru | text |
| Zip | 04826 or 92935-9405 (5-digit or ZIP+4) | text |
| Company, Job Title | — | text |
| UUID | random version-4 UUID | text |
| Integer | 1 to 100,000 | number |
| Float | 0 to 10,000, two decimals | number |
| Currency Amount | 682.85 (0 to 1,000) | text, quoted |
| Boolean | true / false | boolean (TRUE / FALSE in SQL) |
| Date | 2026-03-14, within the past year | text |
| Datetime | 2026-03-14 09:21:07, in UTC | text |
| Lorem Word, Lorem Sentence | Latin-style filler | text |
| URL | https://critical-marten.com | text |
| Color Hex | #ec6dd3 | text |
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… | Export | What you get |
|---|---|---|
| Open the data in Excel or Sheets, or test a file-upload feature | CSV | Header 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 fixtures | JSON | A pretty-printed array of objects, keys = your column names |
| Fill a database table directly | SQL | One 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 runSET sql_mode = 'ANSI_QUOTES';first or replace the double quotes with backticks. - SQL Server: there is no
TRUE/FALSEliteral; replace them with1and0for abitcolumn. - 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-itemsbecomesorder_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
04826into the number4826when 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-14format. - 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_activeorpaidto 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.
