TR

Home / Guides / What Is Fake Test Data? A Guide to Safe Mock Data for Testing and Demos

What Is Fake Test Data? A Guide to Safe Mock Data for Testing and Demos

Updated: November 6, 2026 · AracMerkezi

▶ Open Fake Test Data Generator

When you test an application’s interface, API or report, you need data that fills it: a user list, an order table, email addresses. Typing them by hand is slow; copying real production data is both risky and often inappropriate. The solution is fake test data (mock/fake data). This guide shows how to design a good fake data set, how many records you need to test what, and when fake data is not enough.

Why not use real data?

Real customer data is personal data. Regulations such as KVKK (Turkey’s Personal Data Protection Law) in Turkey and GDPR in Europe restrict using this data outside its purpose, in unprotected environments. Test environments are usually not as well protected as production; data can leak through backups, screenshots and shared files. This article is not legal advice; for the details of the rules, consult your organization’s data protection officer. Technically the basic approach is simple: if you do not need real data for the test, do not use it.

Three approaches: fake, masked, anonymized

ApproachSourceUpsideWatch out
Synthetic (fake)Generated from scratchNo tie to a real personMay not reflect the real distribution
MaskedFields of real data are scrambledStructure is very close to the real thingRemaining fields may identify a person
AnonymizedThe link to identity is irreversibly removedSuitable for analysisHard to do correctly; needs an expert

The tool and examples in this article rely on the first approach, fictional data generated from scratch.

What does good fake data look like?

A sample record

{"id": 1, "ad": "Elif", "soyad": "Kaya", "eposta": "elif.kaya42@example.com", "sehir": "Ankara", "yas": 29, "kayit_tarihi": "2025-03-12"}

From a record like this you can produce 5, 50 or 100 and try your interface’s pagination, sorting and filtering behavior.

How many records do you need? A pagination example

The number of records is not chosen at random; the behavior you want to test determines it. Consider a list that shows 20 records per page:

Our tool generates 1–100 records; you can run the 101-record test by adding one record by hand.

Edge-case records

Add a few “hard” records by hand to the clean generated ones:

FieldNormal valueEdge value
ad (first name)ElifŞükrü Ahmet Mehmet Çağlayan-Yıldızoğlu (very long)
soyad (surname)KayaİĞDIR (capital İ and Ğ)
eposta (email)elif@example.comempty value (null)
yas (age)290

Turkish letters are especially valuable: in JavaScript, 'İĞDIR'.toLowerCase() gives “i̇ğdir” (with a combining dot character), while 'İĞDIR'.toLocaleLowerCase('tr') gives “iğdır”. The default sort puts “Ş” after “z”. These are real bugs that fake data can catch.

JSON or CSV?

File size is also a test input: if you assume about 120 bytes per record, 1,000 records come to 120,000 bytes, about 117 KB (an illustrative assumption; real size depends on the fields). Estimates like this are useful for load tests.

Unique identifiers (UUID)

If records must be distinguishable from each other, you can use a UUID instead of a sequence number. The UUID Generator produces random v4 identifiers. Random identifiers are hard to guess, but outside of testing they are not a substitute for a security token.

On repeatability

Some libraries produce the same fake data every time with a “seed” value; this is useful when debugging. For example, in Python, after calling random.seed(7) the same random.choice sequence comes out identical on every run (we tried it: two runs gave the same list). The tool on our site uses the browser’s secure random generator, so it produces different data on every run. If you need the same data again, save the output to a file.

A practical test plan

  1. First check the interface by eye with a few (5–10) records.
  2. Then look at pagination, sorting and search behavior with 100 records.
  3. Add records by hand for edge cases: a very long name, an empty field, special characters.
  4. In bug reports, share these fake records instead of real personal data.

Common mistakes

Limits

Fake data tests only format and structure. For the oddities of real-world data (incorrect entries, old records, unexpected characters) you need to write extra scenarios. In security tests, performance measurements or data analysis work, the distribution of fake data may not represent real data; if the age field is generated with a uniform distribution, it does not reflect your real customer base. Also, using records that look like real people to create fake identities, to mislead or to commit fraud is neither legal nor ethical.

Tools

The Fake Test Data Generator produces 1–100 records; it outputs JSON or CSV and keeps emails in the example.com domain. To make the generated JSON readable, use the JSON Formatter. This article is general information; consult an expert for personal data rules.

Frequently asked questions

Can I use real customer data for testing?

It should generally be avoided; personal data protection rules create risk for test environments as well. For details, consult your organization’s data protection officer.

Which domain should be used in fake emails?

example.com, example.org or example.net; these are domains reserved by RFC 2606 that do not belong to real people.

Is fake data generated the same every time?

With libraries that support a seed, yes; the tool on our site generates different data on every run, so save the output if you need it again.

Tools mentioned in this guide

More guides

This article is for general information only and is not legal, financial or medical advice. We are not an official institution.