Skip to content

Menu

Test Data Generator

Generate realistic test data

Runs entirely in your browserTesting & QAFree, no sign-up
Loading tool

01What is Test Data Generator?

Sooner or later every project needs a table full of rows that look real but aren't. You want to test an import screen, fill a dashboard during a demo, or seed a local database before the API exists. This generator gives you that in a few clicks. Pick a template, set how many records you want and choose JSON, CSV or SQL INSERT. There are five templates. Users get an id, first and last name, an email built from the name, a phone number in (XXX) XXX-XXXX form, an age from 18 to 75, an isActive flag and a createdAt date from 2020 onward. Products get a name like "Smart Gadget", a price between 9.99 and 999.99, and a category. They also get stock, a rating from 1 to 5, a SKU and an inStock flag that is true whenever stock is above zero. Addresses pair a street with one of ten large US cities and that city's state, plus a five-digit ZIP and country US. Companies carry industry, employee count, revenue in millions, a founding year from 1990 to 2023 and a website built from the company's own name. Transactions have a TXN id, amount, currency, status, date, payment method and merchant id. Emails and websites always use example.com, example.org or example.net. RFC 2606 reserves those domains for documentation and testing, so no message can reach a stranger. The output formats follow familiar rules. JSON is pretty-printed with two spaces. CSV wraps a value in double quotes only when it contains a comma or a quote, and doubles any inner quote, as RFC 4180 describes. SQL writes one INSERT per row, wraps strings in single quotes, doubles any apostrophe and leaves numbers and booleans bare. For example, a row with the name O'Brien, Ltd becomes 'O''Brien, Ltd' in SQL and "O'Brien, Ltd" in CSV. Everything is generated with Math.random in your own tab, and the records are never uploaded. A few limits are worth knowing before you build tests on it. Ids are random, not sequential, so duplicates can appear. The ZIP is random and won't match the city. Phone area codes are random too, so some won't exist. Booleans come out as true and false, which SQLite and MySQL accept but some older engines may not. Values change on every click, so save a copy when you need fixed fixtures.

Developers and QA engineers who need a quick batch of fake users, products or transactions as JSON, CSV or SQL to seed a database or test an import. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Test Data Generator

  1. Choose a Template: Users, Products, Addresses, Companies or Transactions.
  2. Set Count between 1 and 100.
  3. Pick a Format: JSON, CSV or SQL INSERT. For SQL, type the Table Name (it defaults to test_data).
  4. Click Generate, check the output panel, then click Copy.
  5. Click Generate again for a fresh set, or use the reset icon to go back to Users, 10 records and JSON.

03Worked examples

Input: Template: Users, Count: 1, Format: JSON
Result: {"id":96743,"firstName":"Wendy","lastName":"Lee","email":"[email protected]","phone":"(734) 935-1963","age":72,"isActive":false,"createdAt":"2024-06-30"}
One sample run, shown on a single line. Values are random, so yours will differ.
Input: Template: Transactions, Count: 1, Format: JSON
Result: {"id":"TXN-337648","amount":1929.26,"currency":"USD","status":"failed","date":"2024-02-13","method":"paypal","merchantId":"MER-2544"}
One sample run, shown on a single line.
Input: Template: Companies, Count: 1, Format: CSV
Result: id,name,industry,employees,revenue,founded,website 21027,DataFlow Inc.,Healthcare,150,$309.9M,2016,https://dataflow.example.com
One sample run. The header comes from the record keys.
Input: Template: Addresses, Count: 1, Format: JSON
Result: {"id":47604,"street":"7129 Cedar Ln","city":"Phoenix","state":"AZ","zip":"90518","country":"US"}
City and state match, but the ZIP is random and isn't a Phoenix ZIP.
Input: A row {id: 1, name: "O'Brien, Ltd", q: 'say "hi"', ok: true} formatted as CSV and as SQL with table customers
Result: 1,"O'Brien, Ltd","say ""hi""",true INSERT INTO customers (id, name, q, ok) VALUES (1, 'O''Brien, Ltd', 'say "hi"', true);
Run through the tool's own formatter to show its quoting rules. The built-in templates rarely produce such values.

04Common use cases

  • Seeding a local Postgres or MySQL table with SQL INSERTs before demoing a CRUD app
  • Producing a CSV with quoted commas to test an import feature or spreadsheet upload
  • Filling a React table or chart with JSON while the real API is still being built
  • Creating transactions with mixed completed, pending, failed and refunded statuses to test filters and badges
  • Testing how a form or report handles apostrophes and commas in company names and addresses
  • Giving students a ready-made dataset to practise SELECT and GROUP BY queries

05Tips

  • Picking an example card only switches the template. You still need to click Generate.
  • The table name is pasted into the SQL as-is, so use a plain identifier and create the table first with columns matching the keys, like firstName and isActive.
  • Drop the id column before importing if you need unique keys, and let the database assign them.
  • Prices and ratings are numbers, so 532.50 shows up as 532.5. Format them in your UI rather than expecting two decimals in the data.
  • Reset doesn't clear the Table Name, so double-check it before copying SQL for a different table.

06Related concepts

Test fixtures, Seed data, Mock data, CSV, SQL INSERT.

Frequently Asked Questions

What is Test Data Generator?

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

Is Test Data Generator free to use?

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

Does Test Data Generator store my data?

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

Cheat sheet

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