What is a test phone number?

A test phone number is a made-up number that looks and validates like a real one. Sign-up forms, CRMs, and APIs check phone numbers against each country's numbering plan: the country calling code, the number length, and which leading digits belong to mobiles or landlines. Typing 123456789 into such a form fails, so testers need numbers that pass these checks without copying anyone's real contact details.

Tool description

Pick one or more countries, or leave the list empty to mix numbers from every country. Choose mobile numbers, landlines, or a mix of both, and the format to write them in. The tool generates a list of random numbers that follow each country's numbering plan, ready to copy or download as a text file. Changing the format rewrites the same numbers, so you can compare how one number looks in each format.

Examples

Format United States United Kingdom
E.164 +12015550123 +447400123456
International +1 201 555 0123 +44 7400 123456
National (201) 555-0123 07400 123456
RFC 3966 (tel:) tel:+12015550123 tel:+447400123456

Features

  • Numbers for any country, or for a list of countries you pick
  • Mobile numbers, landlines, or both mixed
  • E.164, international, national, and RFC 3966 tel: formats
  • No duplicates within a list
  • Copy the list or download it as a text file
  • Runs in your browser

How it works

The tool builds each number from the patterns in Google's libphonenumber metadata, which list the valid prefixes and lengths of every number type in each country. Every generated number is then checked with libphonenumber-js to make sure it's valid and of the chosen type. In countries where mobiles and landlines share the same ranges, like the United States and Canada, a number can be either.

Tips

  • The numbers are valid in format, so some of them may belong to real people. Use them in forms and test data, but don't call or text them.
  • Use E.164 for APIs and databases, and the national format to test how your app displays local numbers.
  • Countries like Germany, Austria, and Finland have numbers of different lengths, so some of their numbers are much shorter or longer than others. Both are valid, which makes them good for testing length checks.
  • Some territories, like the Åland Islands or Vatican City, share their calling code with a larger country, so phone parsers may report that country for their numbers.