Names that test your code properly
Most test suites are full of John Smith and Jane Doe. Those names never contain an accent, an apostrophe, a space inside the family name or a second surname, so they never reveal the bugs that real names cause. This generator draws from lists of common given names and family names for 20 countries, spelled the way people in those countries spell them: José and María with accents, Müller with an umlaut, Turkish Gül and Yıldız with a dotless i, Japanese names in Hepburn romanisation, and Nigerian, Pakistani and Filipino names as they appear in those countries’ English-language records.
Each result has the full name in the country’s usual order plus the given and family names separately, and a gender label (female or male) if your schema has one. Choose a gender or leave it on Any for an even mix.
Naming conventions worth testing
| Convention | Where | What breaks |
|---|---|---|
| Family name first | Japan (also China, Korea, Hungary) | Greetings like “Dear {first_name}” that assume the first word is the given name |
| Two family names | Spain, Mexico and most of Latin America | A single “last name” field that is too short, or search that only indexes the first surname |
| Particles and spaces | Netherlands (van, de), Germany (von), Brazil (da, dos) | Sorting by the first letter of the family name, capitalisation routines |
| Diacritics and special letters | Germany, France, Spain, Brazil, Türkiye | Non-UTF-8 database columns, ASCII-only validation, case conversion of ı and İ |
| Very short or single-word names | Indonesia, parts of India | Required last-name fields and minimum-length rules |
A good rule, in line with the W3C article Personal names around the world: ask for a single “full name” field unless you really need the parts, allow every Unicode letter plus spaces, hyphens and apostrophes, and never assume a minimum length. Generated names from several countries are a quick way to check that your form follows it.
Uses for random names
- Fixtures and factories. Paste a CSV into your seed script or factory files so that every developer sees the same realistic data.
- UI mockups. Fill avatars, comment threads and tables with names of varied length to check truncation and wrapping in every layout.
- Localisation testing. Pick the country you are launching in and check sorting, search and greetings with local names.
- Training material. Use fictional names in documentation, tutorials and screenshots instead of colleagues’ or customers’ names.
Need the names together with addresses, e-mails and phone numbers? The fake address generator adds a random name to each address, and the test data generator builds complete user records in JSON, CSV or SQL.
Where the names come from
The lists were compiled by us from widely used given names and family names in each country — roughly 60 or more given names per gender and 80 or more family names per country. Names are facts and the lists are our own selection, so you can use the output freely, including commercially. Because the names are common, a generated combination will sometimes match a real person; that is harmless as long as you don’t attach the name to real data or present it as a real person.
Frequently asked questions
Are these real people?
No. Each name is a random combination of a common given name and a common family name for the country. Because the names are common, a combination can match a real person by chance — that is unavoidable and harmless, but do not attach generated names to real data or present them as real people.
Why do Japanese names show the family name first?
In Japanese the family name comes first (Satō Haruto). The generator follows the local order for the full name and also returns the given and family names in separate columns, so you can test both orders.
Why do Spanish and Mexican names have two surnames?
People in Spain and most of Latin America use two family names: the first from the father, the second from the mother. Many forms cut the second one off — a good reason to test with them.
Can I use the names commercially?
Yes. Names are facts, not creative works, and the lists were compiled by us. Use them freely in tests, demos and screenshots.