What is a phone number parser?
A phone number can be written in dozens of ways: (415) 555-2671, 415-555-2671, +1 415 555 2671, 00 1 415 555 2671. A phone number parser reads whatever you paste, works out the country, and rewrites the number in the standard formats that software expects. It also tells you whether the number is valid for that country and what type it is (mobile, fixed line, toll free, premium rate, VoIP and so on).
The central format is E.164, the international numbering plan standard from the ITU-T: a plus sign, the country calling code and the national number, with no spaces and at most 15 digits, such as +14155552671. It is what APIs, SMS gateways, WhatsApp links and databases should store. The parser also shows the international format for reading (+1 415 555 2671), the national format as people dial it inside the country ((415) 555-2671) and the RFC 3966 tel: URI used in links.
Under the hood it uses libphonenumber-js, a JavaScript port of Google's libphonenumber metadata, which carries the numbering plans of every country. Validation is based on those plans, so it knows that a French mobile number starts with 6 or 7 and a Brazilian mobile has 9 digits after the area code. Everything is done in your browser: the number you type is not sent to any server, and the tool does not call it. Note that a valid number only means it fits a numbering plan, not that someone owns it or that it is in service.
How to parse and format a phone number
- Paste the number in the input. Digits, spaces, dots, plus, hyphens and parentheses are accepted. The page opens with a French example.
- If the number has no
+and country code, pick the default country so it can be read as a national number. When you have not chosen one, the country of the page language is used. - Read the details: country, calling code, whether the number is valid and possible, the line type and the four formats (international, national, E.164, RFC 3966).
- Use the contact links to get a
tel:link, an SMS link or a WhatsApp link built from the E.164 number. - Copy the format you need with the copy buttons.
Examples
A French mobile number
+33 6 12 34 56 78: country France, calling code 33, valid, type mobile. E.164 +33612345678; national format 06 12 34 56 78.
A Brazilian mobile number without the country code
(11) 91234-5678 with Brazil as default country: calling code 55, valid, mobile. International +55 11 91234 5678, E.164 +5511912345678.
A Brazilian landline and a toll-free number
(11) 3123-4567 is a fixed line (E.164 +551131234567). 0800 123 4567 is toll free (E.164 +558001234567): the trunk prefix 0 is dropped in E.164.
A US number
(415) 555-2671 with United States as default country: E.164 +14155552671. In the United States the type is reported as "fixed line or mobile", because the numbering plan does not distinguish them.
A Spanish number
+34 612 34 56 78 is a valid Spanish mobile number; the national format is 612 34 56 78 and the E.164 form is +34612345678.
Common mistakes
- Missing the country code. Without
+and a country code the number is ambiguous. The tool asks you to start with the code or pick the right default country. - Keeping the trunk zero in international format.
+33 06 12 ...is wrong; the leading 0 is dropped after the country code. - Storing formatted numbers. Store E.164 and format on display, so searches and deduplication work.
- Treating "valid" as "reachable". A valid number fits the numbering plan. It can still be unassigned or disconnected.
- Typing letters or symbols. Only digits, spaces, dots, plus, hyphens and parentheses are accepted.
- Mixing up the country calling code with the country prefix.
+1is shared by the United States, Canada and other countries; the tool names the country it finds.
Frequently asked questions
What is E.164?
The ITU-T international numbering format: +, the country code and the subscriber number, up to 15 digits in total, without spaces or punctuation.
How do I convert a phone number to international format?
Paste it, choose the country if it has no +, and copy the international or E.164 line.
How do I make a WhatsApp link from a number?
Use the digits of the E.164 number without the plus after https://wa.me/, for example https://wa.me/5511912345678. The tool builds it for you.
Does the tool call or look up the number?
No. It checks the number against numbering rules in your browser; it does not identify the owner.
What else can I validate?
Bank accounts with the IBAN validator and national ID numbers with the test documents tool.