E-mail domains reserved for testing
Using a real-looking address such as test@gmail.com in fixtures is a classic mistake: the address may belong to someone, and the first time a staging server sends a password reset or newsletter, a stranger receives it. The internet standards reserve a handful of names that can never be registered by anyone, so mail to them can never reach a person:
| Domain | Reserved by | Use it for |
|---|---|---|
example.com, example.net, example.org | RFC 2606 §3, RFC 6761 §6.5; operated by IANA | Documentation, sample data, screenshots. The domains resolve to an IANA information page but don’t receive mail for users. |
.test | RFC 2606 §2, RFC 6761 §6.2 | Testing. You may run your own DNS for it, e.g. mail.myapp.test in a staging environment. |
.example | RFC 2606 §2, RFC 6761 §6.5 | Examples in documentation, like shop.example. |
.invalid | RFC 2606 §2, RFC 6761 §6.4 | Values that must be obviously invalid: name lookups should always fail. |
.localhost | RFC 2606 §2, RFC 6761 §6.3 | Loopback only; not suitable for e-mail addresses. |
Sources: RFC 2606 – Reserved Top Level DNS Names and RFC 6761 – Special-Use Domain Names. Our test data generator and address generator only create e-mail addresses on these domains.
E-mail addresses for validation tests
All on reserved domains, so they are safe to submit anywhere. “Valid” refers to the address syntax in RFC 5321/5322; many real-world validators are stricter.
| Address | Syntax | What it tests |
|---|---|---|
| valid | Plus addressing (sub-addressing) — often wrongly rejected | |
| valid | Apostrophe in the local part | |
| valid | Several subdomain levels | |
| valid | Quoted local part with a space — rarely supported | |
| valid with SMTPUTF8 | Internationalised local part (RFC 6531) | |
| invalid | Leading dot in the local part | |
| invalid | Two consecutive dots | |
| invalid | Domain label starting with a hyphen |
Phone numbers reserved for fiction
Films and TV shows need phone numbers that nobody owns, and so do test fixtures, demos and documentation. A handful of regulators publish such ranges. Numbers in them are format-valid — they pass libphonenumber-style checks for length and prefix — but they are not assigned to subscribers, so a test SMS or call reaches no one. Where a country has no published range, it is safer to leave the phone field empty than to invent a number that might ring a real person.
United States — NANPA (North American Numbering Plan Administrator)
| Type / area | Reserved range | Example |
|---|---|---|
| Any area code (NANP) | NXX 555-0100 to 555-0199 |
Only 555-0100 to 555-0199 are reserved as fictitious, non-working numbers. The rest of the 555 exchange can be assigned to real lines (555-1212 is directory assistance). Source: NANPA – 555 line numbers.
Canada — NANPA (shared North American Numbering Plan)
| Type / area | Reserved range | Example |
|---|---|---|
| Any Canadian area code (NANP) | NXX 555-0100 to 555-0199 |
Canada is part of the North American Numbering Plan, so the same 555-0100 to 555-0199 block applies. Source: NANPA – 555 line numbers.
United Kingdom — Ofcom
| Type / area | Reserved range | Example |
|---|---|---|
| Mobile | 07700 900000 to 07700 900999 | |
| No specific area | 01632 960000 to 01632 960999 | |
| London | 020 7946 0000 to 020 7946 0999 | |
| Leeds, Sheffield, Nottingham, Leicester, Bristol, Reading (0113–0118) | 011x 496 0000 to 011x 496 0999 | |
| Birmingham, Edinburgh, Glasgow, Liverpool, Manchester (0121–0161) | 01x1 496 0000 to 01x1 496 0999 | |
| Tyneside, Durham, Sunderland | 0191 498 0000 to 0191 498 0999 | |
| Northern Ireland | 028 9649 6000 to 028 9649 6999 | |
| Cardiff | 029 2018 0000 to 029 2018 0999 | |
| Freephone | 08081 570000 to 08081 570999 | |
| UK-wide (03) | 03069 990000 to 03069 990999 | |
| Premium rate | 0909 8790000 to 0909 8790999 |
Ofcom recommends these 1,000-number blocks for drama and says they will not be allocated to providers in the foreseeable future. For any other area code it suggests the 01632 block. Source: Ofcom – Telephone numbers for use in TV and radio drama programmes.
Australia — ACMA (Australian Communications and Media Authority)
| Type / area | Reserved range | Example |
|---|---|---|
| NSW and ACT | (02) 5550 xxxx and (02) 7010 xxxx | |
| VIC and TAS | (03) 5550 xxxx and (03) 7010 xxxx | |
| QLD | (07) 5550 xxxx and (07) 7010 xxxx | |
| SA, WA and NT | (08) 5550 xxxx and (08) 7010 xxxx | |
| Mobile (30 individual numbers) | 0491 570 006, 0491 570 156 … 0491 579 455 | |
| Freephone | 1800 160 401, 1800 975 707 to 1800 975 711 | |
| Local rate | 1300 975 707 to 1300 975 711 |
Geographic blocks accept any last four digits. Mobile, freephone and local-rate numbers are individual numbers, not ranges. Source: ACMA – Phone numbers for use in TV shows, films and creative works.
France — Arcep
| Type / area | Reserved range | Example |
|---|---|---|
| Île-de-France (01) | 01 99 00 00 00 to 01 99 00 99 99 | |
| North-west (02) | 02 61 91 00 00 to 02 61 91 99 99 | |
| North-east (03) | 03 53 01 00 00 to 03 53 01 99 99 | |
| South-east (04) | 04 65 71 00 00 to 04 65 71 99 99 | |
| South-west (05) | 05 36 49 00 00 to 05 36 49 99 99 | |
| Mobile (06) | 06 39 98 00 00 to 06 39 98 99 99 |
Arcep reserves six blocks of 10,000 numbers for audiovisual works; they can neither make nor receive calls. Source: Arcep – Plan national de numérotation (numéros pour œuvres audiovisuelles).
Germany — Bundesnetzagentur
| Type / area | Reserved range | Example |
|---|---|---|
| Berlin | 030 23125000 to 030 23125999 | |
| Frankfurt am Main | 069 90009000 to 069 90009999 | |
| Hamburg | 040 66969000 to 040 66969999 | |
| Köln (Cologne) | 0221 4710000 to 0221 4710999 | |
| München (Munich) | 089 99998000 to 089 99998999 | |
| Mobile (Telekom) | 0171 3920000 to 0171 3920099 | |
| Mobile (Telefónica) | 0176 04069000 to 0176 04069099 |
The Bundesnetzagentur provides 1,000 landline numbers in five cities and mobile operators added two blocks of 100 plus ten individual numbers (not used here). Source: Bundesnetzagentur – Mitteilung 148/2021, Rufnummern für Medienproduktionen.
All ranges checked against the regulators’ own pages in October 2026. Regulators can change them; check the source before printing a number in a broadcast.
Tips for test contact data
- Store phones in E.164 (
+442079460754) and format them for display only. Fictional numbers make good fixtures because they still parse correctly. - Block real delivery in non-production environments. Reserved domains protect you when the data is fictional; a mail catcher such as Mailpit or MailHog protects you when it is not.
- Make test records easy to find. A query like
email LIKE '%@example.%'or a phone prefix of555-01lets you exclude test users from metrics and delete them later. - Don’t use 555-1212 or random 555 numbers. In North America only 555-0100 to 555-0199 are reserved; other 555 numbers can be assigned.
Frequently asked questions
Can I send e-mail to example.com?
No message will reach a person. IANA operates example.com, example.net and example.org only as documentation examples; they don’t accept mail for users. Your mail server will usually bounce the message or drop it.
What is the difference between .test and .invalid?
.test is for testing: you may run a local DNS zone for it, so it suits staging environments. .invalid is meant to be obviously invalid — any lookup should fail — which suits tests that must not deliver anything.
Is 555-1234 a fake number?
Not necessarily. In the North American Numbering Plan only 555-0100 to 555-0199 are reserved for fiction; other 555 numbers can be assigned to real services. Use a number such as (212) 555-0142.
Why not just use 000-000-0000 or 123-456-7890?
Some systems reject them as invalid, and in many countries a similar-looking number is a real line. Reserved fictional numbers pass format validation and still never ring anyone.