Random Phone Number Generator

Fill signup forms, CRM imports and screenshots with numbers shaped like the real thing for 20 countries. Leave safe mode on and US, Canadian, UK and Australian rows come from blocks regulators keep for fiction, so a stray test SMS reaches nobody.

Phone number generator

Pick a country, then press Generate numbers. Rows from a reserved fiction block carry a green tag.

Random digits reach real people

Most phone generators fill a mask such as 07XXX XXXXXX with random digits. The result looks right because it is right. UK mobile ranges are close to fully allocated, so a random 07 number has a good chance of ringing a stranger's pocket.

That stops being theory the first time a staging server sends a password reset by SMS, or a sales demo dials the sample contact. The fix is old. Regulators in a few countries set aside blocks for film, television and fiction, and carriers never hand those out to subscribers. Safe mode builds rows from those blocks first and only falls back to random digits where no block exists.

Reserved ranges behind safe mode

Rows built from a published fiction block carry a reserved tag. A row without the tag has a real prefix and random digits after it.

Country Source Mobile Landline Toll-free
United States, Canada NANPA 555-0100 to 555-0199 in any area code Same block No block, random
United Kingdom Ofcom drama numbers 07700 900000 to 900999 020 7946 0xxx, 0121 496 0xxx, 0161 496 0xxx and other city blocks 0808 157 0xxx
Australia ACMA Published list starting 0491 570 02, 03, 07, 08 then 5550 xxxx 1800 160 401, 1800 975 707 to 711
Other 16 countries None used Valid prefix plus random subscriber digits

The 555 block catches people out. Only 0100 to 0199 is fictional. Plenty of other 555 lines are in service, 555-1212 being the best known, so a hand-typed 555-4821 in a fixture is no safer than any other number.

One number, three spellings

The format tabs above the list change how every row is written without changing the number. Here is one UK drama number in all three:

National        07700 900461
International   +44 7700 900461
E.164           +447700900461

Watch the zero. The leading 0 in a UK, German, Pakistani or Australian national number is a trunk prefix, dialled only inside the country. It drops out the moment you add the country code. Writing +44 07700 900461 is a common bug in hand-built fixtures, and stricter validators reject it.

Italy breaks the pattern. Its landline zero belongs to the number itself, so Rome stays +39 06 xxxx xxxx with the zero kept. Russia uses 8 as its trunk prefix instead of zero. The generator handles both, which makes Italy and Russia good rows to throw at a parser you suspect of stripping digits by habit.

For storage, pick E.164 and format at display time. The CSV export writes all three columns per row, so one download covers the database seed and the UI copy.

Where this generator is the wrong tool

Notes on specific countries

US and Canadian rows pick a real area code first, then an exchange starting 2 through 9, the way the North American plan requires. Brazilian rows pick a real two-digit DDD code and give mobiles the leading 9 added in the 2010s. Mexican rows follow the 2019 change to ten-digit dialling, so 55 for Mexico City and three-digit codes elsewhere.

Mixed line type picks the type per row first, then the mask, so a country with five landline masks and one toll-free mask still returns toll-free rows at a fair rate.

All of it runs in this tab. The batch, the country and the settings never leave your browser, and a reload clears the list. Pair a row with a street from the Random Address Generator when you need a full contact record, or check your own phone pattern against these rows in the Regex Tester.

Phone test data questions

Reserved ranges, formats and what a generated row proves.

Is a 555 number always fake?

No. Only 555-0100 through 555-0199 is set aside for fiction across the North American Numbering Plan. Other 555 lines such as 555-1212 have carried directory assistance for decades. Safe mode stays inside the 0100 to 0199 block for the US and Canada.

Why does safe mode repeat Australian mobile numbers?

ACMA publishes a short fixed list of fictional mobile numbers, not an open block. A batch of 25 Australian mobiles draws from that list, so repeats show up. Landlines use the 5550 block and repeat far less.

Which output format belongs in a database column?

E.164. A plus sign, the country code, then the national number with no spaces, trunk zero or punctuation, fifteen digits at most. Store E.164 and format for display at render time, so one record never sits in the table three different ways.

Will an SMS to one of these numbers go anywhere?

Rows without the reserved tag fit a real numbering pattern and might reach a live phone. Rows tagged reserved should reach nobody, though no regulator promises a carrier rejects them cleanly. For OTP and SMS tests, use the test credentials your SMS provider issues instead.

Does the generator check numbers against a carrier database?

No. Rows are built from prefix masks inside your browser. Nothing is looked up, and nothing is sent to Toolexe. A row passing your validator proves the format, not the line.