Random Phone Number Generator
Generate fake phone numbers in a chosen country format for testing, demos, and mock data.
How this fake phone number generator works
Each number is built entirely in your browser using the Web Crypto API (crypto.getRandomValues) — nothing is sent to a server. Where a country has an officially reserved "fictional" numbering range, this tool uses it: the US and Canada share the North American Numbering Plan's 555-0100 through 555-0199 block, which NANPA permanently reserves for film, TV, and software testing so the numbers can never be assigned to a real subscriber. The UK's telecom regulator, Ofcom, similarly reserves 07700 900000- 999999 for mobile and 020 7946 0XXX for London landlines. Countries without a published fictional range (Germany, France, India, Japan, Australia) instead get a realistic-length number with an embedded "555"/"55" marker segment, clearly labeled fake above — always double-check local rules before using generated numbers in any public-facing material.
Common uses: populating test databases and QA fixtures, filling out UI mockups and design prototypes, seeding demo accounts, and testing phone-number input validation and formatting logic without exposing a real number.
Built and maintained by Meet Shah · Last updated
What this tool is used for
- Producing numbers in a country's format for a test fixture.
- Generating input to exercise phone number parsing and formatting.
- Filling a demo dataset with plausible-looking numbers.
- Testing how a form handles the various international formats.
- Producing values to check a lookup handles unknown numbers gracefully.
Frequently Asked Questions
- Are the generated numbers safe to use?
- They are generated to look valid rather than to be guaranteed unassigned, so treat them as test data only. Never send messages or calls to a generated number — in many countries it may reach a real subscriber.
- Which numbers are genuinely reserved for fiction?
- In North America, the 555-0100 through 555-0199 range. The UK reserves specific blocks per area code — 020 7946 0xxx for London, for example — and Ofcom publishes the full list. Those are the safe choices for published examples.
- What does a valid North American number require?
- Area code and exchange code both start with 2 to 9, never 0 or 1, and neither may be N11 such as 411 or 911. Those rules are what make a number look real to a validator.
- What is E.164 format?
- The international standard: a plus sign, country code, then the national number with no spaces or punctuation, up to fifteen digits. It is the only format that is unambiguous worldwide, and what APIs generally require.
- Can I use these for test databases?
- Yes — that is the intended use, alongside form validation, UI mock-ups and load testing. Make sure your staging environment cannot actually dial or message out, because that safeguard matters more than the numbers themselves.
- Will these pass phone validation libraries?
- Structurally valid ones usually pass a format check. They will not pass a lookup against real carrier data, which is the point — a number that passed that would be somebody's actual line.
Common errors and gotchas
- Calling or texting a generated number, which may reach a real person.
- Assuming a format-valid number is unallocated, since many ranges are in service.
- Testing only one country's format, so international parsing goes unexercised.
- Ignoring the reserved fictional ranges some countries publish specifically for this purpose.
- Treating a well-formatted number as reachable, which only a call establishes.