SQL test data generator
Paste a CREATE TABLE statement, pick a shape for each column (names, emails, dates, UUIDs) and get INSERT statements ready to run on your engine. It all runs in your browser: your schema and the generated rows never leave your device.
Columns reload as you type. Settings you changed stay put for columns that keep their name and type.
What the parser understands
SQL Server [brackets], MySQL `backticks` and double-quoted names; inline and table-level PRIMARY KEY; NOT NULL; UNIQUE; and MySQL ENUM 그리고 SET lists. IDENTITY, AUTO_INCREMENT, serial and GENERATED columns stay out of the INSERTs so the database fills them. Until you edit it, the sample table follows the dialect you pick and switches to its column types.
Column shapes
What each shape generatesNo columns yet. Paste a table on the left and they show up here, one row per column.
Oracle output stays one row per INSERT: multi-row VALUES only arrived in Oracle Database 23ai.
Same schema, settings and seed give the same rows, so you can regenerate the same data later, row for row.
Using generated data responsibly
Synthetic test data is the boring, correct answer to a real problem: test databases need rows that behave like production data, and the easiest way to get them should never be copying production rows. The names, companies and street addresses this tool generates are invented and belong to nobody, so there is nothing to anonymize and nothing to leak.
- Keep personal data out of tests entirely. A test database full of real customer rows is a second production system to secure, back up and eventually delete, and under laws like the GDPR copying it into a test environment is still processing personal data that needs a lawful basis.
- Shape beats realism. Queries slow down on long values, NULL bursts and uneven distributions, not on realistic first names. Match the row count, value lengths, nullability and number of distinct values of the real columns and the planner's statistics come out close to production's, so the plans do too.
- Seed your runs. A deterministic seed means a failing test rebuilds the exact same rows tomorrow, on a teammate's machine or in CI. A bug no longer depends on data you have since overwritten.
- Volume on purpose. Generate the row count that tests the thing you are testing: a dozen rows for logic, thousands when you want to see the query plan sweat. Paste the INSERTs into a scratch database first and check they load cleanly.
Column shape reference
Every column gets a shape guessed from its name and SQL type, and you can override any of
them: email suggests an email, created_at a timestamp, user_id
a key. A name guess that does not fit the type is dropped, so
an INT column called company_id gets numbers, not company names.
Lengths, DECIMAL(p, s) limits and TINYINT ranges are respected.
| 모양 | What it generates |
|---|---|
Full name | Invented full names assembled from first- and last-name lists, sized to the column. |
First name / Last name | One part of a name, for split name columns. |
Email | Invented addresses at example domains, unique per row. |
Company | Invented company names. |
Address / City / Country | Invented street addresses, and real city and country names for geography columns. |
Lorem sentence | Filler prose for free-text and description columns. |
Integer range / Decimal range | Numbers between a minimum and maximum you set, whole or fractional. |
Date range / Timestamp range | Dates, or dates with a time of day, between two bounds you set. Timestamp bounds take YYYY-MM-DD HH:MM. |
Boolean | TRUE/FALSE or 1/0, whichever the chosen dialect speaks. |
UUID | Random unique identifiers, quoted the way the engine expects. |
Enum from list | Values picked from a comma-separated list you type, e.g. free, pro, team. |
Id (sequential / random-unique) | Primary keys: sequential integers from 1 for number keys, random-unique UUIDs for UUID keys, and either one for text keys. Integer columns named like foreign keys (*_id, *_key) get an integer range of 1 to 999 instead; narrow it to the ids that exist in the parent table. |
Skip (database fills it) | Leaves the column out of the INSERT. Chosen automatically for IDENTITY, AUTO_INCREMENT, serial and GENERATED columns, which reject or mishandle explicit values. |
NULL percentage | Any column can be NULL on a share of rows, except primary keys and columns declared NOT NULL. |
SQL test data generator FAQ
Is this test data generator free?
Yes. There is no sign-up and no usage quota. It is a free web tool from the makers of the SQLly desktop app, and every feature on the page works without an account.
Is my schema sent to a server?
No. Your CREATE TABLE statement is parsed and filled by JavaScript running in your browser tab. Nothing is uploaded, logged or stored, and the page keeps working once your connection drops.
Which databases are supported?
SQL Server (T-SQL), PostgreSQL, MySQL and MariaDB, SQLite and Oracle. Each gets correctly quoted identifiers and literals: bracketed or backticked names, doubled single quotes, TRUE/FALSE or 1/0 booleans, and DATE or TIMESTAMP literals where the engine expects them.
What column shapes can I generate?
Full, first and last names, email addresses, company names, addresses, cities and countries, lorem sentences, integers and decimals in a range, date and timestamp ranges, booleans, UUIDs, and an enum drawn from a custom list. Any column can also be set to NULL on a percentage of rows.
How does it handle NOT NULL and primary keys?
Columns declared NOT NULL are never nulled, whatever percentage you pick. Primary key columns get unique values (sequential integers for number keys, random-unique UUIDs for UUID keys), so every row inserts without collisions, and IDENTITY or AUTO_INCREMENT keys are left out so the database numbers them. UNIQUE text columns get the row number appended. Integer columns named like foreign keys, such as user_id or order_id, get the range 1 to 999; set it to the ids that exist in the parent table.
Why use a deterministic seed?
The seed makes the generator a pure function: the same schema, settings and seed always produce the same rows. That means you can regenerate identical data next week, share it with a teammate, or rebuild a failing case in a bug report without pasting thousands of INSERTs.
Is generated data safe to use?
The generator produces synthetic data only: names, companies and street addresses are assembled from fixed word lists, and emails use domains reserved for documentation (example.com, example.org, example.net and the .example top-level domain), so no message can reach a real inbox. Copying production data into test environments, by contrast, puts personal data somewhere with weaker controls.
Can it put more than one row in each INSERT?
Yes. Set Rows per INSERT to 100 or 1,000 and rows are grouped into one INSERT ... VALUES statement per batch, so there are far fewer statements to send and parse. 1,000 is the largest batch on offer because SQL Server allows at most 1,000 rows in a VALUES list. Oracle output stays one row per statement, since multi-row VALUES only arrived in Oracle Database 23ai.
Can I use this instead of the SQLly desktop app?
The web tool covers one-off seeding of a single table. SQLly for macOS, Windows and Linux is the full workbench: it connects to the database, with IntelliSense that knows your schema, guardrails for risky queries and a formatter in the editor. The download is free.
Like this? Meet the rest of SQLly
A native SQL workbench for macOS, Windows and Linux with IntelliSense that knows your schema, guardrails for risky queries, and a formatter built into the editor.