✈️ Travel & Outdoors

Phone Number Formatter

Check if a phone number is valid and format it correctly for any country.

  • 240+ regionsfrom libphonenumber
  • 7 outputsE.164 to country
  • Number typemobile, landline, toll-free…
  • wa.me + tel:ready-made links

—

How to use the Phone Number Formatter

  1. 1

    Type or paste a number

    Spaces, dashes and brackets are fine.

  2. 2

    Set the default country

    Used only when the number has no +code; it is remembered.

  3. 3

    Check the verdict

    Valid, possible but not valid, or invalid length — plus the number type and country.

  4. 4

    Copy what you need

    E.164, international, national or RFC 3966 form, or open the WhatsApp and tel: links.

Features

Three-level check

Valid, possible-but-not-valid, or wrong length.

Number type

Mobile, landline, toll-free, VoIP, premium rate and more.

Country detection

Works out the country from the +code and number.

RFC 3966 URI

The tel: form used in web links.

WhatsApp link

wa.me link built from the digits.

Remembers country

Your default country is saved on this device.

Who uses it — and for what

CRM clean-up

Normalise customer numbers to E.164.

Websites

Correct click-to-call and WhatsApp buttons.

SMS campaigns

Gateways usually require E.164.

Travellers

How to dial a local number from abroad.

Phone number formats

E.164 is the international standard used by SMS gateways, CRMs and APIs: a plus sign, the country code and the national number with no spaces or leading zero — for example +442079460958. The international format adds spaces for readability (+44 20 7946 0958), and the national format is how people dial inside the country (020 7946 0958). The validator checks the length and number ranges for each country and tells you whether it is a mobile, landline, toll-free or VoIP number where the plan allows.

Valid, possible, or invalid?

The verdict comes from libphonenumber’s per-country rules. Invalid length means the number has too few or too many digits to be a phone number in that country — usually a missing digit or a wrong default country. Possible but not valid means the length fits, but the digits fall in a range that is not assigned to any service (for example a mobile prefix that does not exist). Valid means the number matches a range allocated in the numbering plan. None of these mean the number is switched on or belongs to the person you think — that can only be confirmed by calling, an SMS code, or a carrier lookup service.

Storing numbers properly

  • Store E.164, display international or national. One canonical form avoids duplicates such as “+91 98765 43210” and “09876543210” for the same person.
  • Keep the country with the number when collecting it in a form; numbers typed without a +code can be read differently in different countries.
  • Don’t store numbers as spreadsheet numbers. Excel drops a leading + or 0 and may show long numbers in scientific notation — format the column as text.
  • Respect privacy. Formatting happens in your browser and nothing is sent, but treat customer lists under your local data-protection rules.

To look up a country’s code and dialling notes, see Country Info Lookup.

Worked examples

A local Indian mobile number

Type 98765 43210 with India as the default country. The E.164 result is +919876543210, and the WhatsApp link is https://wa.me/919876543210 — the same digits without the plus. If you had typed 098765 43210 with the trunk 0, the 0 is understood as the national prefix and the E.164 form is the same.

Converting by hand

As dialled locallyE.164Rule
020 7946 0958 (UK)+442079460958Drop the 0, add +44
98765 43210 (India)+919876543210Add +91
(415) 555-2671 (US)+14155552671Add +1, remove punctuation

Italy is a well-known exception: landline numbers keep their leading 0 after +39, which is exactly why a library with per-country rules is safer than “always delete the 0”.

Pro tips

  • “Type unknown” often means the number is not valid, or that the country’s plan does not distinguish the type — check the verdict line first.
  • For WhatsApp Business buttons, test the wa.me link on a phone before publishing it.
  • Numbers in the +1 zone may show a specific country such as Canada or Jamaica, based on the area code.

Glossary

E.164
The ITU format for international numbers: + country code and subscriber number, up to 15 digits.
National number
The number without the country code or trunk prefix.
RFC 3966
The standard for tel: URIs used in links.

Frequently asked questions

What is E.164 format?

+ then country code and number, with no spaces — up to 15 digits, e.g. +14155552671.

Do I keep the leading 0?

No — drop the national trunk 0 when adding the country code.

Does it check if the number is active?

No, it checks the format and number ranges only.

What does “possible but not valid” mean?

The number has a plausible length for the country but its digits are not in an assigned range, so it is probably mistyped.

Why do I need a default country?

Without a +code, the same digits could belong to different countries; the default tells the tool which national plan to apply.

Found it useful? Share the Phone Number Formatter:

Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Travel & Outdoors (10 tools)