Skip to content

Menu

Seed Data Generator

Generate realistic seed data SQL

Runs entirely in your browserDatabaseFree, no sign-up
Loading tool

01What is Seed Data Generator?

Every new project hits the same moment. The tables exist, the app runs, and every list page is empty. This generator writes one multi-row INSERT INTO statement full of plausible fake rows so you can paste it and move on. You set a Table Name, a row count between 1 and 100, and a list of columns. Each column gets a name and one of thirteen types. They are Auto-increment ID, Full Name, Email, Phone, Address/City, Lorem Text, UUID, Price/Decimal, Quantity/Integer, Boolean, Date/Timestamp, Enum/Random Choice and Foreign Key (int). Here is how the values are made. Names pair one of 20 common first names with one of 20 last names. Emails use a lowercase first name, a number under 99 and a domain. The domains are example.com, example.org and example.net, which RFC 2606 reserves for documentation, so no real inbox gets your test mail. Phones are +1 followed by ten digits. Addresses are a house number on Main St in one of ten US cities. UUIDs follow the version 4 layout, with a 4 in the version spot and 8, 9, a or b in the variant spot. They come from the seeded generator, not a crypto source. Prices fall between 1.00 and 999.99, quantities between 1 and 100, and dates fall in the 700 days starting 1 January 2023. Enum columns pick from your comma-separated list, and foreign keys pick a number from 1 up to the range you set. All values come from a linear congruential generator seeded with 42. The same columns and row count therefore always give the same rows, and adding rows only appends to the end. A quick example. The Products preset with 3 rows starts with (1, 'Consectetur adipiscing elit', 89.03, 58, 2). Now the limits, because a few of them bite. The Dialect menu doesn't change the output at all. The standard INSERT syntax works in PostgreSQL, MySQL and SQLite as long as your booleans are accepted. Apostrophes in enum values are doubled, so won't fix is written as 'won''t fix', which is valid SQL. Dates are built in UTC, so they come out the same in every time zone. Emails can repeat within a batch, so a UNIQUE email column may reject some rows. Nothing leaves your machine while you build the statement. The SQL is generated in the page and only goes where you paste it.

Backend and QA developers who need a quick, repeatable INSERT statement of fake but realistic rows for a local or demo database. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Seed Data Generator

  1. Type a Table Name, or load the Users table, Products table or Orders table example.
  2. Set Rows to a number between 1 and 100.
  3. Click the plus button to add a column, give it a name and pick its Type.
  4. For an Enum/Random Choice column type the values as a,b,c. For a Foreign Key (int) column set the highest ID it may use.
  5. Check the Seed SQL panel, then click Copy SQL and run the statement against your database.

03Worked examples

Input: Users table preset, 2 rows
Result: INSERT INTO users (id, name, email, phone, active, created_at) VALUES (1, 'Jennifer Johnson', '[email protected]', '+11230975143', FALSE, '2023-03-24'), (2, 'Sarah Lee', '[email protected]', '+18753105686', TRUE, '2023-03-05');
The email picks its own first name, so it doesn't have to match the Full Name column.
Input: Products table preset, 3 rows
Result: INSERT INTO products (id, name, price, stock, category_id) VALUES (1, 'Consectetur adipiscing elit', 89.03, 58, 2), (2, 'Consectetur adipiscing elit', 26.63, 45, 1), (3, 'Ut enim ad minim veniam', 994.63, 86, 3);
Seed 42 makes this output identical every time. Lorem text comes from five fixed phrases, so repeats are normal.
Input: Orders table preset, 2 rows
Result: INSERT INTO orders (id, user_id, total, status, created_at) VALUES (1, 6, 89.03, 'cancelled', '2023-06-05'), (2, 8, 26.63, 'completed', '2023-03-24');
Dates are built in UTC, so this output is the same in any time zone.
Input: Table tickets, 2 rows: ref (UUID), city (Address/City), label (Enum/Random Choice: won't fix,open)
Result: INSERT INTO tickets (ref, city, label) VALUES ('41936071-dfd7-4ad9-82fe-e8284fd2d700', '5372 Main St, Dallas', 'open'), ('a69bbbf7-1372-4c9c-9340-45ef3d9552f1', '9214 Main St, Dallas', 'won''t fix');
The apostrophe in won't fix is doubled, which is how SQL escapes a quote inside a string.

04Common use cases

  • Filling a fresh local Postgres or MySQL table so list pages, search and pagination have something to show
  • Creating predictable fixture rows for integration tests, since the fixed seed gives the same data every run
  • Seeding an orders table whose user_id values point at the 20 users you inserted first
  • Populating a demo database with names, emails on reserved example domains and prices before a walkthrough
  • Testing table sorting and filtering in an admin dashboard with up to 100 rows
  • Checking how a UI handles booleans, enum statuses and dates side by side in one table

05Tips

  • Insert the parent table first and set the foreign key range to its row count, so every reference points at a row that exists.
  • Because the seed is fixed, running the same setup twice gives identical rows. Change a column or row count if you need different data in a second batch.
  • Booleans come out as TRUE and FALSE. SQLite added those keywords in version 3.23.0, so swap in 1 and 0 for older builds.
  • Remove the Auto-increment ID column if your table generates IDs, or reset the sequence afterwards, so later inserts don't collide.

06Related concepts

seed data, INSERT statement, test fixtures, foreign keys, fake data.

Frequently Asked Questions

What is Seed Data Generator?

Seed Data Generator is a free, browser-based developer tool on AIDToolStack. Generate realistic seed data SQL It requires no installation or sign-up and works entirely in your browser.

Is Seed Data Generator free to use?

Yes. No sign-up, no fees and no usage cap.

Does Seed Data Generator store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe