Mock Data Generator

Pick users, orders or products, or describe your own fields, and get fake records as JSON, CSV or SQL INSERTs. Up to 10,000 at a time, made on this device, with every email address on a reserved example domain.

How it works

Each kind of data is a short schema, one field per line, such as "total: float(5, 500, 2)". Users, Orders and Products are ready schemas; open Fields to see one, change it or write your own. Editing a schema makes it yours.

Each record is built by going down the schema and drawing a value for each field with crypto.getRandomValues. Names, words and cities come from short bundled lists, and email addresses follow the record's own name on example.com, example.org or example.net.

The records are then written in the format you chose. JSON is an array with two-space indents. CSV has a header row in schema order and quotes only where needed. SQL starts with a CREATE TABLE whose column types follow the schema, then INSERTs in batches of up to 500 rows, in the dialect you pick.

How to use it

  1. 1 Choose what data you need: Users, Orders, Products or My own fields.
  2. 2 Choose the format: JSON, CSV or SQL. For SQL, pick your database and, if you like, a table name.
  3. 3 Set how many records, from 1 to 10,000.
  4. 4 Open Fields to change the schema. A mistake is named by its line, and nothing half-made is shown.
  5. 5 Copy the result or download it as a .json, .csv or .sql file. New data draws a fresh set with the same settings.

Good to know

  • Start from the closest preset and edit it. Adding one line is faster than writing a schema from nothing.
  • pick() repeats are weights: status: pick(paid, paid, paid, refunded) makes paid three times as likely.
  • For SQL, run the file against an empty database. The CREATE TABLE fails if the table already exists.
  • There is no seed, so the data changes on every draw. Download a file and commit it if a test needs the same rows each time.

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 data that fits the database you are testing

Most test data starts life as a fixture someone typed by hand: three users called Test, Test2 and Alice. That is enough to see a page render, and not enough to see it break. A table needs a few hundred rows before pagination, sorting and slow queries show up, and a layout needs long names and odd cities before it wraps in the wrong place. This page makes those rows in seconds, in the format your code reads: a JSON array for an API mock or a front end, a CSV for a spreadsheet or an import screen, or SQL to load straight into a database.

You start from what you need, not from a blank box. Users gives an id, first and last name, email, city, country code, sign-up date and an active flag. Orders gives an order id, customer, email, a total with two decimal places, an item count, a status and a timestamp. Products gives an id, a UUID as the SKU, a name, a category, a price, stock and a colour. Open Fields to see the schema behind each one. Change a range, add a column or delete one, and the data follows on the next draw.

The SQL output is meant to run as it is. It begins with a CREATE TABLE whose column types come from the schema, not from the values that happened to be drawn: a float(0, 5) column is a decimal column even if every row came out whole. id and int fields become integers, float becomes a floating point type, bool becomes the dialect's own boolean (BIT in SQL Server, INTEGER in SQLite), and everything else is text. The INSERTs that follow are split into batches of 500 rows, which keeps each statement under SQL Server's limit of 1,000 rows and well inside what PostgreSQL, MySQL and SQLite accept. Names and strings are quoted and escaped for the dialect you chose.

Fake data should never become real data by accident. Every email address here is on example.com, example.org or example.net, the three domains RFC 2606 reserves for exactly this use, so a test that sends mail cannot reach a person. Each address follows the record's own name, so Priya Okafor gets something like priya.okafor@example.org, which keeps screenshots and demos believable. Names and cities come from short international lists, so they repeat in large sets; that is fine for layout and load testing and wrong for anything that studies names.

Values are drawn with crypto.getRandomValues and are evenly spread across each range, both ends included. There is no seed, so every draw is different. If a test must see the same rows every time, download the file once and commit it next to the test. The limit is 10,000 records at a time, which take a fraction of a second to make in any format. Everything happens in this page; neither the schema nor the records are sent anywhere.

Frequently asked questions

Which SQL databases does it write for?

PostgreSQL, MySQL and MariaDB, SQLite, and SQL Server. Names are quoted the way each one expects, and each gets its own column types, such as BIT for a yes or no column in SQL Server. INSERTs carry at most 500 rows, under SQL Server's limit of 1,000.

Can the email addresses reach real people?

No. They only ever use example.com, example.org or example.net, which are reserved for documentation and testing by RFC 2606. Mail to them goes nowhere.

What field types can I use?

id, uuid, int(min, max), float(min, max, places), bool, pick(a, b, c), firstName, lastName, fullName, email, word, sentence, date(from, to), datetime, city, country and color. The full list with examples is under Fields.

Is any of my data uploaded?

No. The schema and the records stay in this page. Nothing is sent to YappyKit or anyone else.

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.