Sooner or later every test needs people: rows in a table, accounts in a demo, orders moving through a checkout flow. The fastest source is the production database, and it is also the worst one. Copying real customer records into a test system spreads names, email addresses and phone numbers into places with weaker access controls, longer retention and far more screenshots, and one leaked test database becomes a genuine privacy incident involving people who never agreed to be test data.
The fix is data that looks real enough to exercise the software but belongs to nobody. This guide shows how to create it with the free Fake Data Generator on Ovatly, and how the records are constructed so they can never be mistaken for real customers.
Contents
- Quick answer
- Why real records are the wrong test data
- What makes this data safely fake
- How to generate fake test data, step by step
- Worked example: one record, piece by piece
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Open the Fake Data Generator, set how many records you need, up to 200, tick the fields your test uses, and press Generate test records. Download the result as CSV or JSON, or copy rows from the table. Every email uses a reserved example domain and every phone number uses the fictional 555-01XX range, so the data fills a UI or a database realistically without exposing, or accidentally contacting, a real person.
Why real records are the wrong test data
A test environment is never guarded like production. More people can open it, backups of it travel further, and its contents end up in bug reports, screen recordings and sales demos. Real customer details placed there inherit all of that exposure. If a test system is ever copied, shared or breached, the people in it are real, and so is the harm.
There is also a practical risk: realistic data triggers realistic behaviour. A test that sends email, prints invoices or syncs contacts will happily act on real addresses and real numbers. Teams discover this when a customer receives a test invoice or a password reset message for an order they never placed. Fake data removes both risks at the source, because there is nobody on the receiving end.
What makes this data safely fake
The generator creates clearly fictional people records: names, emails, phone numbers, addresses, usernames and companies that look structured like real data but belong to nobody. Three construction choices keep that promise.
First, emails use only the reserved example.com, example.org and example.net domains. Those domains are set aside for documentation and testing and can never be registered, so an address built on one can never belong to a person and test mail can never be delivered. The tool never generates realistic addresses at a domain like gmail.com, because those might belong to real people who would receive your test messages.
Second, phone numbers use the 555-01XX range set aside for fiction. A dialled test number cannot ring a stranger's phone.
Third, every field is fabricated from small built-in word lists rather than copied from any real source. The names, streets and company names are generic parts assembled at random, which is why a record can carry several invented markers at once, as the worked example below shows.
How to generate fake test data, step by step
- Open the Fake Data Generator and set how many records you need, up to 200.
- Tick the fields your test needs: names, emails, phone numbers, addresses, usernames and companies are available. Leave unticked anything your test does not use.
- Press Generate test records and look over the table that appears.
- Download the result as CSV or JSON for importing into your test system, or copy rows straight from the table. Save the file if the test will need the same dataset again.
Worked example: one record, piece by piece
A record from an actual run: Nina Notreal, [email protected], +1 555-0112, 48 Placeholder Boulevard, Anytown, username nina_notreal69, Demo Works LLC.
Read it closely and the invention shows everywhere. The surname Notreal is a word list joke, not a family name. The email sits on example.net, a domain that can never be registered, so the address cannot receive mail. The phone number, 555-0112, sits inside the range reserved for fiction. The street is Placeholder Boulevard in Anytown, and the employer is Demo Works LLC. Each marker is deliberate: test data should never be mistakable for a real customer, even when a single row is copied out of context into a screenshot or a ticket. That obviousness is a feature. It is also why the data is useless for impersonation, by design.
Limitations and honest tradeoffs
Phone numbers are North American fictional-range numbers; other countries have their own reserved ranges, which this tool does not generate. If your test validates numbers for a specific country, check that the format still passes.
Because every field comes from small built-in word lists, names repeat across large batches and combinations can look odd. That is fine for testing, where the software cares about structure rather than plausibility, but it means a 200-record batch will not read like a census.
There is no seed or save feature, and records are generated fresh on each press with cryptographic randomness and are not stored anywhere. If a test needs a fixed dataset, download the CSV or JSON and reuse that file. And if a combination happens to resemble a real person, it is coincidence: the data was assembled from generic parts, never sourced from real records.
The tool also deliberately does not generate credit cards or ID numbers. Payment testing belongs in your payment provider's sandbox with its published test numbers, and government ID numbers are never safe as test data.
Common mistakes
- Testing with a trimmed copy of production. Deleting a few columns does not anonymise real records. Names, emails and numbers are the sensitive part, and they are exactly what tests need.
- Sending test messages before checking the data. If any real address slipped into a test set, the first campaign reaches a real inbox. Reserved domains make this impossible by construction.
- Regenerating instead of saving. A bug reported against one dataset cannot be reproduced against a fresh one. Download the file and attach it to the report.
- Expecting census-realistic variety. Repeated names and odd combinations are normal output from small word lists, not a fault.
- Asking the tool for payment or ID data. It will not produce any, on purpose. Use your payment provider's sandbox numbers instead.
FAQs
Why do the emails use example.com, example.org and example.net? Those domains are reserved for documentation and testing and can never be registered, so test mail can never reach a real person. Generating realistic addresses at a domain like gmail.com would risk sending test messages to real inboxes.
Can I get the same dataset again later? No. Records are generated fresh on each press with cryptographic randomness and are not stored anywhere, and there is no seed or save feature. Download the CSV or JSON if a test needs a fixed dataset, and reuse that file.
How many records can I generate at once? Up to 200 records per run. Tick the fields your test needs before generating, then download the result as CSV or JSON or copy rows from the table.
Does the generator create credit card or ID numbers? No, deliberately. Payment testing belongs in your payment provider's sandbox with its published test numbers, and government ID numbers are never safe as test data.
What if a generated record looks like a real person? Every field is fabricated from small built-in word lists, never sourced from real records, so any resemblance is coincidence. Names repeat across large batches and combinations can look odd, which is fine for testing and useless for impersonation, by design.
Conclusion
Good test data does two jobs at once: it behaves like real data inside the software, and it is obviously nobody's data outside it. Reserved domains, fictional phone numbers and word list fabrication get you both, with no anonymisation project and no risk to your customers. The same principle, never putting real secrets where they do not belong, is why you should also know what makes a password weak and the patterns hackers try first. For more guides in this series, see our Security and Privacy guides.
References
- RFC 2606, Reserved Top Level DNS Names, which reserves the example domains for documentation and testing: https://www.rfc-editor.org/rfc/rfc2606
- example.com, the reserved domain itself: https://example.com