Fake Data Generator
Generate realistic mock data from a field list or a JSON Schema — as JSON, CSV or SQL for Postgres, MySQL and SQLite
Was the Fake Data Generator helpful?
About this tool
The Fake Data Generator turns a field list or a JSON Schema into realistic-looking mock data, as JSON, NDJSON, CSV or SQL. SQL output is written for PostgreSQL, MySQL or SQLite, with a matching CREATE TABLE and batched INSERT statements. Choose from 20 field types including names, emails, phone numbers, UUIDs, addresses, companies, job titles, dates, and Lorem-style text. Use it to populate a frontend with realistic test data before a real API exists, generate CSV fixtures for a data pipeline test, or quickly produce a batch of sample records for a demo. An optional seed value makes output reproducible — the same seed with the same schema always generates identical data, useful for consistent test fixtures across CI runs. All generation happens in your browser using JavaScript — no data is sent anywhere, and there's no rate limit like hosted mock-data APIs often impose.
When to use it
- →Populating a frontend UI with realistic-looking data before the real backend API is ready
- →Generating CSV fixtures for testing a data import or ETL pipeline
- →Creating reproducible test data for CI by setting a fixed seed value
- →Producing quick demo datasets (users, products, orders) for a presentation or prototype
Tips
- ◆Set a seed value to get the exact same generated data every time — useful for deterministic test fixtures instead of random data that changes each run.
- ◆Field names become JSON object keys or CSV column headers directly — use camelCase or snake_case to match what your API or database expects.
- ◆Generate up to 10,000 rows per run. Large results show a preview on the page, and Download and Copy include every row.
- ◆Already have a JSON Schema for your API? Paste it in From JSON Schema mode to get data in exactly that shape, nesting included.
- ◆Switch to CSV output to get a file you can drag straight into Excel, Google Sheets, or a database import tool.
- ◆Switch to SQL output and pick your database: column types, quoting, booleans and dates all follow that dialect. Untick CREATE TABLE if the table already exists.
Frequently asked questions
Is there a version set up for my database?
Yes: there are pages for PostgreSQL, MySQL, SQLite, CSV and JSON, linked under the generator. Each starts with the right output and column types and shows example output and how to load it.
Is the generated data safe to use — does it resemble real people?
The names, emails, and addresses are drawn from small fixed lists of common placeholder values (similar to how Lorem Ipsum works for text) combined randomly — they are not sourced from real user records and any resemblance to a real person is coincidental, the same as with any synthetic test data generator.
What does the seed value actually do?
Without a seed, each generation uses fresh randomness and produces different data every time. With a seed, the generator uses that value to initialize a deterministic pseudo-random sequence — the same seed plus the same field schema and row count will always produce identical output, which is useful when you need a stable fixture that doesn't change between test runs.
Can I generate nested JSON objects, like an address object inside a user object?
Yes, with From JSON Schema mode: describe the shape with nested objects and arrays, and the output follows it. In CSV and SQL, nested values go in the cell as JSON, using a JSON column on Postgres and MySQL. The Pick fields mode stays flat.
Which parts of JSON Schema does it follow?
type, format (email, uuid, date, date-time, uri, ipv4 and others), enum, const, minimum and maximum, minLength and maxLength, minItems and maxItems, required, oneOf, anyOf, allOf and $ref within the schema. Values for pattern aren't generated to match the regular expression, and the tool tells you when a schema uses one.
How is this different from a hosted service like Mockaroo?
The core schema-to-mock-data workflow is similar, but this tool runs entirely client-side with no account, no row limits tied to a free tier, and no data ever leaves your browser. Hosted services offer a wider variety of field types and API-based generation for live mock endpoints — for a quick one-off dataset without signing up, this tool covers the common field types you'd need.