Skip to content
Random & fun

Test Data Generator

Choose the fields you need and how many rows, then take the result as JSON, CSV or ready-to-run SQL inserts.

Fields

Emails use reserved documentation domains and phone numbers use the ranges set aside for fiction, so nothing here can reach a real person.

0 rows

About the Test Data Generator

Test data is one of those needs that arrives suddenly and is always more annoying than expected. You want a hundred rows that look plausible, with the right shape and enough variety that a layout breaks in the ways real data would break it, and typing them is an hour you will not get back.

Realistic matters more than random for this purpose. Names of varying lengths from different scripts, addresses with different line lengths, and a mix of long and short values are what expose the layout bug where a name overflows its column, or the sort that assumes ASCII. A hundred rows of the same seven-letter placeholder tell you nothing.

Everything generated here is fabricated on purpose, and the specific values are chosen so nothing can reach a real person. Email addresses use example.com and its siblings, reserved by the IETF precisely so documentation and tests never send mail to a real inbox. Phone numbers use the ranges set aside for fiction — 555-01xx in North America — which exist because test suites have dialled real people often enough for regulators to act.

Card numbers are built on the published test prefixes and carry a valid Luhn check digit. That last part is what makes them useful rather than decorative: every payment form validates the check digit before contacting anyone, so a number that fails it never reaches the code you are trying to test. There is no account behind any of them.

The SQL output escapes single quotes by doubling them and leaves genuinely numeric columns unquoted, so it can be pasted straight into a database rather than needing a pass of manual cleanup. Everything is generated in your browser.

Frequently asked questions

Are the email addresses and phone numbers safe to use?

Yes. Emails use example.com and its siblings, reserved by the IETF so test mail cannot reach anyone. Phone numbers use the ranges set aside for fiction, which exist because test suites really have called real people.

Are the card numbers real?

No. They are built on the published test prefixes with a valid Luhn check digit, so they pass form validation and reach the code you are testing. There is no account behind any of them.

Can I paste the SQL straight into a database?

That is the intent. Single quotes are escaped by doubling and numeric columns are left unquoted, so no manual cleanup is needed. Check the table and column names match yours.