How Phone Number Validation Works
Every country has a numbering plan that defines how long its phone numbers are and which digits they can start with. UK mobile numbers start with 07 and have 11 digits, US numbers have a three-digit area code followed by seven digits, and German mobile numbers start with 015, 016 or 017. The validator compares your number with these rules, using metadata maintained by Google's libphonenumber project and updated regularly as countries change their plans.
The result has three levels:
- Valid number: the length and the leading digits match a range that the country actually uses.
- Possible length, but not valid: the length fits, but no current range starts with these digits – often a typo or an unassigned block.
- Invalid number: too short, too long, or not a phone number at all.
How to Use It
- Type or paste a number. Spaces, dashes, dots and brackets are fine.
- If it starts with + or 00 and a country code, the country is detected automatically.
- If it's written locally, such as 020 7946 0958, choose the country from the list.
- Copy the format you need – E.164 for databases and SMS services, international for business cards, national for local use.
Phone Number Formats
| Format | Example (London) | Used for |
|---|---|---|
| E.164 | +442079460958 | Databases, CRMs, SMS and calling APIs, sign-up forms |
| International | +44 20 7946 0958 | Websites, email signatures and business cards for an international audience |
| National | 020 7946 0958 | Calling from within the same country |
| RFC 3966 (tel:) | tel:+44-20-7946-0958 | Clickable "call" links on websites |
E.164 is the international standard: a plus sign, the country code and the national number without its leading zero, with no spaces – at most 15 digits. Storing numbers this way avoids duplicates and makes them work from any country.
What Validation Can't Tell You
A "valid" result means the number could exist under the country's rules. It does not prove the number is currently connected, who owns it or which network it uses today – many countries let people keep their number when they switch providers. Confirming that a number really works requires sending a code by SMS or calling it. The line type is also based on number ranges; in some countries, such as the USA and Canada, mobile and landline numbers share the same ranges, so the result is "landline or mobile".
Country Calling Codes
Some frequently used codes: +1 USA, Canada and parts of the Caribbean, +44 United Kingdom, +49 Germany, +33 France, +34 Spain, +39 Italy, +31 Netherlands, +61 Australia, +91 India, +971 United Arab Emirates. When you dial abroad, replace the plus sign with your country's international exit code – 00 in most of Europe and 011 from the USA and Canada – or simply keep the + on a mobile phone. Codes are shared by several countries in some cases, such as +1 and +7, which is why the area code also matters for detecting the country.
Common Uses
- Cleaning contact lists before importing them into a CRM or newsletter tool.
- Checking a number from a website, invoice or message before calling.
- Formatting numbers consistently for a website or print.
- Creating WhatsApp and call links – also see the WhatsApp link generator.
Tip: when collecting phone numbers in a form, store them in E.164 format and show them in international format. That keeps your data clean and makes numbers easy to read for people in any country.
Frequently Asked Questions
How do I know if a phone number is valid?
Enter it with the international code or choose its country. The tool checks the length and number range against that country's official numbering plan.
Can it tell if a number is mobile or landline?
Yes, in most countries. Where mobile and landline numbers share the same ranges, it shows "landline or mobile".
Does a valid result mean the number is active?
No. It means the number follows the rules. Only calling or texting it can confirm it is in service.
What is the E.164 format?
The international standard format: a plus sign, the country code and the number, with no spaces or leading zero, for example +442079460958.
Why does my number need a country?
A local number like 020 7946 0958 could belong to several countries. The country tells the validator which rules to apply.
Is the number sent anywhere?
No. The validation rules are downloaded once and the number is checked in your browser.