Fictitious phone numbers and email addresses
When testing software we sometimes need to create user accounts. Who hasn’t — in this situation — mashed their keyboard to produce a phone number, maybe tweaking it to have it be accepted by whatever validation logic is built in the form you’re testing? Sometimes you’re testing a live system and going for the obvious “@email.com” address or using some random phone number means some unsuspecting, unlucky stranger might receive some strange messages as a collateral. This can be avoided however: some email addresses and phone numbers are set aside for testing purposes (or something close) and are guaranteed to never be assigned to any user. On this page I try to summarize what email addresses and phone numbers you can use without fear of spamming someone.
Email addresses
Actually this is the easiest one. RFC 2606 sets aside three domain names to be used in examples. These domains will never be used for anything else, so it is fairly safe to assume noone will ever get an email address with any of those domains. At least currently, none of those has an MX record.
- xxx@example.com
- xxx@example.net
- xxx@example.org
To that list you can add subdomains to domains you control, which you can decide to set aside for testing purposes: for example if you own mycompany.xyz, you can use any @example.mycompany.xyz and be sure that noone will ever receive those emails unless you decide to start receiving them yourself.
Phone numbers
Phone numbers are another story. Each country has its own numbering plan. Numbering plans are exactly what they say they are: they are documents defining how phone numbers work in a country: what phone number prefixes are used how, how phone numbers are allocated to phone service providers and end users… You may ask yourself: why would countries bar phone numbers from ever being allocated to a user? It turns out works of fictions often contain phone numbers, and people tend to actually try to call those phone numbers. In order to avoid that, phone numbering plans tend to include a few phone numbers dedicated to works of fiction for use by authors, so as to prevent their audience from bothering people whose phone numbers end up in a movie. Because each country establishes its own phone numbering plan, there isn’t an international standard for fictitious phone numbers, so we need to dig for each country. I will try to add this information for as many countries as I can, which probably won’t be a lot. Expect this page to be updated.
Australia
Australia has a very friendly website which lists in plain language the phone numbers which can be used for fiction.
- +61 2 5550 XXXX (Central East, covering NSW and ACT)
- +61 2 7010 XXXX (Central East, covering NSW and ACT)
- +61 3 5550 XXXX (South East, covering VIC and TAS)
- +61 3 7010 XXXX (South East, covering VIC and TAS)
- +61 7 5550 XXXX (North East, covering QLD)
- +61 7 7010 XXXX (North East, covering QLD)
- +61 8 5550 XXXX (Central West, covering SA, WA and NT)
- +61 8 7010 XXXX (Central West, covering SA, WA and NT)
- +61 491 570 006 (mobile)
- +61 491 570 156 (mobile)
- +61 491 570 157 (mobile)
- +61 491 570 158 (mobile)
- +61 491 570 159 (mobile)
- +61 491 570 110 (mobile)
- +61 491 570 313 (mobile)
- +61 491 570 737 (mobile)
- +61 491 571 266 (mobile)
- +61 491 571 491 (mobile)
- +61 491 571 804 (mobile)
- +61 491 572 549 (mobile)
- +61 491 572 665 (mobile)
- +61 491 572 983 (mobile)
- +61 491 573 770 (mobile)
- +61 491 573 087 (mobile)
- +61 491 574 118 (mobile)
- +61 491 574 632 (mobile)
- +61 491 575 254 (mobile)
- +61 491 575 789 (mobile)
- +61 491 576 398 (mobile)
- +61 491 576 801 (mobile)
- +61 491 577 426 (mobile)
- +61 491 577 644 (mobile)
- +61 491 578 957 (mobile)
- +61 491 578 148 (mobile)
- +61 491 578 888 (mobile)
- +61 491 579 212 (mobile)
- +61 491 579 760 (mobile)
- +61 491 579 455 (mobile)
- 1800 160 401 (Freephone)
- 1800 975 707 (Freephone)
- 1800 975 708 (Freephone)
- 1800 975 709 (Freephone)
- 1800 975 710 (Freephone)
- 1800 975 711 (Freephone)
- 1300 975 707 (local rate)
- 1300 975 708 (local rate)
- 1300 975 709 (local rate)
- 1300 975 710 (local rate)
- 1300 975 711 (local rate)
France
The ARCEP is in charge of managing France’s phone numbering plans. In its Décision n°2018-0881 modifiée de l'Autorité de régulation des communications électroniques et des postes en date du 24 juillet 2018 établissant le plan national de numérotation et ses règles de gestion it allocates six blocks of 100 000 phone numbers for works of fiction.
- +33 1 99 00 XX XX XX (geographic, Île-de-France)
- +33 2 61 91 XX XX XX (geographic, North-west, Réunion, Mayotte)
- +33 3 53 01 XX XX XX (geographic, North-east)
- +33 4 65 71 XX XX XX (geographic, South-east)
- +33 5 36 49 XX XX XX (geographic, South-west, Overseas)
- +33 6 39 98 XX XX XX (mobile)
Ireland
In its Numbering Conditions of Use and Application Process document, the Commission for Communications Regulation sets out a full area code for use in drama and fiction: +353 20 XXX XX XX.
United Kingdom
The british Office of Communications (or Ofcom for short) set aside 20 blocks of 1000 phone numbers for use in works of fiction.
- +44 113 496 0XXX (Leeds)
- +44 114 496 0XXX (Sheffield)
- +44 115 496 0XXX (Nottingham)
- +44 116 496 0XXX (Leicester)
- +44 117 496 0XXX (Bristol)
- +44 118 496 0XXX (Reading)
- +44 121 496 0XXX (Birmingham)
- +44 131 496 0XXX (Edinburgh)
- +44 141 496 0XXX (Glasgow)
- +44 151 496 0XXX (Liverpool)
- +44 161 496 0XXX (Manchester)
- +44 20 7946 0XXX (London)
- +44 191 498 0XXX (Tyneside/Durham/Sunderland)
- +44 28 9649 6XXX (Northern Ireland)
- +44 29 2018 0XXX (Cardiff)
- +44 1632 960XXX (no area)
- +44 7700 900XXX (mobile)
- +44 8081 570XXX (Freephone)
- +44 909 8790XXX (premium)
- +44 3069 990XXX (UK-wide)
United States of America
The United States have set aside 99 phone numbers under each area code. Therefore for some area code XXX you can use any phone number in the range +1 XXX-555-0100 to +1 XXX-555-0199.