DataSwitch Pro Private, in-browser data converter

Test Data Generator

Realistic fake names, emails, addresses, dates and prices — up to a million rows as CSV, JSON, SQL or Excel. The columns of each row match, and the same seed gives the same data. Free, no sign-up, nothing uploaded.

1 · Columns
2 · Settings
3 · Preview

        

How to generate realistic test data

Updated · 6 min read

Developers, testers and analysts need believable data long before real data exists — to fill a database, load-test an API, demo a dashboard or teach SQL. Typing it by hand is slow, and copying production data puts real people's details at risk. This generator builds as many rows as you need, in the format you need, and makes the columns of each row agree with each other.

  1. Pick a template (users, customers, orders, employees, products), paste your own column names, or add columns one by one and choose a type for each.
  2. Set each column's options — number ranges, date ranges, list values with weights — and, if you need them, the share of blank values and Unique.
  3. Choose how many rows, the country for names and addresses, and the output format. The preview updates as you type.
  4. Click Generate & download. Big files are built in the background with a progress bar; nothing leaves your browser.

Nothing leaves your device. The rows are generated in this browser tab; nothing is uploaded or stored on a server.

Common test data problems — and how this tool avoids them

“Free plans stop at 1,000 rows”

Many online generators cap free downloads at 1,000 rows or ask for an account. Here you can generate up to 1,000,000 rows per file, with no sign-up and no daily limit, because the rows are built on your own computer. A million rows of ten columns takes about ten seconds.

“The email has nothing to do with the name”

Generators that fill each column on its own give you Maria Lopez with the address kevin.smith42@…. Here the columns of a row describe one person: the email and username are built from the name, the gender matches the first name, the age matches the date of birth, and the street, city, region, postcode, phone, country and coordinates belong together.

“Orders shipped before they were placed”

Random dates in separate columns produce impossible timelines — a last login before sign-up, a delivery before shipping. Use the Date after another column type: shipped 0–4 days after the order date, delivered 1–8 days after shipping. When the earlier date is blank, the later one is blank too.

“Duplicate values in a unique column”

Tick Unique and no value repeats — duplicate emails get a number added. If a column cannot hold enough different values (say, 500 unique rows from the range 1–100), you are told before anything is generated, and the CREATE TABLE gets a matching UNIQUE constraint.

“The SQL fails on O'Brien”

Names such as O'Brien and streets like rue de l'Église break hand-written INSERT statements. Quotes are escaped for each database, backslashes too for MySQL, column names are quoted (so order or full name work), SQL Server gets N'…' strings, and rows are grouped into multi-row INSERTs inside one transaction — at most 1,000 rows per INSERT for SQL Server, which refuses more.

“Accents and Arabic turn into ???”

CSV files start with a UTF-8 byte order mark so Excel shows José, Müller and Arabic names correctly. MySQL scripts set utf8mb4, which also stores emoji, and SQL Server columns are NVARCHAR.

“Excel ruins my ZIP codes and dates”

Opened as CSV, Excel turns the Boston ZIP code 02134 into 2134 and may read 03/04 as the wrong month. The Excel (.xlsx) download keeps codes as text and writes real dates. For CSV, dates are ISO (2026-03-31) by default, and there is a semicolon version for Excel set to a decimal comma.

“My test emails reached real people”

By default every email ends in example.com, example.net or example.org — domains reserved for documentation (RFC 2606), so a test that sends mail cannot reach anyone. Phone numbers use the ranges set aside for fiction where they exist: 555-0100 to 555-0199 in the US, 07700 900xxx in the UK, 06 39 98 xx xx in France.

“Every run gives different data and my tests break”

The seed makes the output repeatable: the same columns and seed always give the same rows, on any computer. Adding or removing a column does not change the values in the others. Copy link to this setup shares the columns and seed with a colleague.

“Uniform numbers look fake”

Real prices are mostly small with a few large ones and often end in .99. The Price / amount type follows that pattern, list values take weights (delivered:60, cancelled:10), and any column can have a share of blank values to test how your code handles NULL.

What you get

Over 40 column types

IDs, UUIDs, foreign keys and patterns like INV-{row:6}; names, emails, usernames, phones, birth dates, jobs and companies; street, city, region, postcode, country and coordinates; numbers, prices, true/false; dates, times, timestamps; weighted lists, products, categories, currencies, text; URLs, IP and MAC addresses, colours.

Seven countries and Arabic

Names, streets, postcodes and phone numbers for the United States, the United Kingdom, France, Germany, Spain and Morocco, Arabic-script names and addresses for the Gulf, Egypt, the Levant and North Africa, or a mix of several countries.

Ready-to-run SQL

MySQL / MariaDB, PostgreSQL, SQLite or SQL Server, with a CREATE TABLE whose types are worked out from the data (INT, DECIMAL, DATE, BOOLEAN, VARCHAR sized to fit), PRIMARY KEY, NOT NULL and UNIQUE.

Private

The rows are made in this browser tab. Nothing is uploaded, and your columns are remembered on this device only.

Patterns and dates

In a Pattern column, # is a digit, ? a capital letter, * a letter or digit, and {row} the row number — {row:6} pads it to six digits. INV-{row:6} gives INV-000001, INV-000002…; SKU-????-### gives SKU-KXPM-407. Use \# for a literal #.

Date ranges accept a date (2025-01-31) or a period relative to today: today, -30d, -6m, -2y, +1y. List values are separated by commas; a number after a colon is the weight, so active:70, inactive:30 makes “active” seven times out of ten.

Frequently asked questions

Is this test data generator free? Is there a row limit?

It is free and needs no account. You can generate up to 1,000,000 rows per file in CSV, TSV, JSON, JSON Lines or SQL, and up to 100,000 rows in an Excel file.

Is the data real?

No. Each row is put together at random from lists of common first names, surnames, streets and cities, so it does not describe a real person. Emails use the reserved example.com domains unless you choose otherwise, and phone numbers use fictional ranges where a country has one (US, UK, France).

How do I get the same data again?

Keep the same seed. The same seed and columns always produce the same rows, so a test fixture can be rebuilt exactly. Click ⟳ for new data, or use Copy link to this setup to save or share everything at once.

How do I generate related tables with foreign keys?

Generate the parent table first, for example 100 customers with a Row number ID from 1. Then generate the child table, such as orders, with a Foreign key column whose range is 1 to 100. Every customer_id then points to a customer that exists.

Which SQL databases are supported?

MySQL and MariaDB, PostgreSQL, SQLite and Microsoft SQL Server. Each gets its own quoting, escaping, boolean and date handling, and column types. The scripts were checked by running them in PostgreSQL and SQLite.

Can I create data in French, Spanish, German or Arabic?

Yes. Choose the country under Names & addresses: names, streets, postcodes, regions and phone formats follow it. Arabic produces names and addresses in Arabic script, with emails built from the Latin spelling.

How do I keep leading zeros when I open the file in Excel?

Download the Excel (.xlsx) format: postcodes, codes and phone numbers are stored as text, so nothing is trimmed. A CSV opened by double-click is always re-read by Excel, which drops leading zeros.

Can I use my own column names?

Yes. Click Paste column names and paste a header row or a CREATE TABLE statement. A type is guessed for each column from its name — email, phone, created_at, price, status and so on — and you can change any of them.

Related tools