Phone number validator and formatter
Check a number and get it in the four formats people and software ask for.
Validate and format a number
What this tool does
It reads a phone number the way a phone system does. It tells you whether the number is valid for its country, then writes it four ways.
- National: how people in that country write it, such as (202) 456-1111.
- International: with the country code and spaces, such as +1 202 456 1111.
- E.164: the compact form for software, such as +12024561111.
- RFC 3966: the form used in tel: links.
Each format has a copy button. Use E.164 when you store a number in a database or a spreadsheet, because it sorts and matches cleanly.
How the checking works
The tool uses libphonenumber-js, a JavaScript port of Google’s libphonenumber, with its full metadata. The metadata holds number patterns for 245 regions. A number is valid when it matches an assigned pattern for its country. It is possible, but not valid, when the length fits and the pattern does not. Where the numbering plan sets the line type, such as mobile, toll-free or premium rate, the tool says so. Where it does not, as for US cell phone and landline numbers, it says that instead of guessing.
Tips for keeping numbers tidy
If you collect phone numbers in a form or a spreadsheet, store the E.164 value and show the national format to people. E.164 has one correct spelling for each number, so duplicates are easy to spot and software can match records without guessing. Keep the country with the number, or store the full international form, because the same digits can mean different numbers in different countries.
Paste numbers as people wrote them. Spaces, dashes and brackets are ignored. A leading 00 or + tells the tool the number is international, and the country menu is then not used.
Where the data comes from
The formats and patterns come from libphonenumber, snapshot of 1 December 2026. The country list is the same data. Read more on the data sources page.
Limits
- Valid means the number fits the numbering plan. It does not mean someone answers it today.
- Short codes such as 911 or a five-digit text code are not full numbers and are not checked here.
- Extensions are not read. Remove them before you format.
- Numbers assigned very recently may show as invalid until the metadata catches up.
For the region, time zone and prefix assignment of the same number, use the number check.
Frequently asked questions
What is E.164?
E.164 is the name of the international numbering plan. In software it also names the compact way to write a number: a + sign, the country code and the national number, with no spaces or punctuation, for example +12125550123. It is unambiguous, so databases and phone systems use it.
When should I use the national format?
Use it when you write a number for people in the same country, such as (212) 555-0123 in the United States. Use the international format for anyone outside the country.
What does "right length, not a valid number" mean?
The digits could fit a number in that country, but they do not match any assigned range. A typo in the area code or prefix is the usual cause.
Why must I pick a country for numbers without +?
Without a country code the digits are ambiguous. The country you pick tells the tool how to read them. If the number starts with +, the selected country is ignored.
What is the RFC 3966 format for?
It is the format for tel: links, such as tel:+12125550123. A link like that lets a phone or a softphone start a call when you tap it.
Does the formatter store or send my number?
No. The formatting runs in your browser using the libphonenumber-js library. Nothing about the number is sent to a server.