Skip to content

Phone Number Parser and Formatter

Parse and format phone numbers with international codes, detect country, and convert to E.164 format.

Phone Number Parser and Formatter tool

Loading...

Example

Input: (415) 555-2671 with Country set to US

Result: Valid - E.164 +14155552671, International +1 415 555 2671, National (415) 555-2671, Type FIXED_LINE_OR_MOBILE

E.164 is a plus sign, the country calling code (1 for the US) and the national number with no spaces or punctuation. US numbers cannot be told apart as mobile or landline from the number alone.

  1. Enter a phone number in any format, with spaces, dashes, dots, brackets or plain digits.
  2. If the number does not start with + and a country code, pick its country from the dropdown.
  3. Check the Valid, Possible or Invalid badge, the detected country and the number type (such as MOBILE, FIXED_LINE or TOLL_FREE).
  4. Read the E.164 (+14155551234), international (+1 415 555 1234), national ((415) 555-1234) and tel: URI formats.
  5. Copy the format you need with the copy button next to it.

Formatting Phone Numbers to E.164

This tool turns a phone number written any way into standard formats. Type (415) 555-2671 with the country set to US and you get E.164 (+14155552671), international (+1 415 555 2671), national ((415) 555-2671) and a tel: link. E.164 is the format most SMS and calling APIs expect.

E.164 is the ITU numbering standard: a plus sign, the country calling code and the national number, with no spaces and at most 15 digits. It is the best way to store numbers in a database, because each number has exactly one E.164 form. The national and international forms are for showing numbers to people.

The Country list only matters when a number has no + at the start. The number 020 7946 0958 means little on its own, but with GB selected it becomes +442079460958. If you type a + and a country code, the tool finds the country itself. An exit code such as 011 from the US or 00 from most of Europe also works when it matches the selected country.

The badge reads Valid, Possible or Invalid. Valid means the number fits a range the country actually uses. Possible means the length is right, but the range is not known to be in use. Where the data allows, the tool also shows the line type, such as MOBILE, FIXED_LINE or TOLL_FREE, and otherwise Unknown. In the US and Canada, mobile and landline numbers share ranges, so you see FIXED_LINE_OR_MOBILE. It is built on the libphonenumber-js library and lists 245 countries and regions.

The check covers the format only. It cannot tell you whether a number is in service or who answers it. To tidy email lists in a similar way, try the Email Normalizer.

Sources

Frequently Asked Questions

Start with +, add the country calling code, then the national number with no spaces or symbols. Usually you drop the leading 0 used for calls inside the country, though Italy is a known exception. A UK number 020 7946 0958 becomes +442079460958, and a US number (415) 555-2671 becomes +14155552671.
Possible means the number has a length that could exist in that country. Valid is stricter: the digits also fall inside a range the numbering plan really uses, such as a real area code or mobile prefix. A number can be possible but not valid, which usually points to a typo or a reserved range, such as UK drama numbers like 07700 900123.
Numbers without a + are read using the country in the dropdown, which is US by default. If you paste a German number such as 030 12345678 while US is selected, it is treated as a US number and fails. Either choose the right country first, or type the full international form starting with + and the country code.
No. It checks the number against the numbering plan, not the phone network. A valid result means the format and range are right, not that the line is connected or reaches the person you expect. Services that confirm a number usually send a one-time code by SMS or place a test call.
It is a link format for phone numbers defined in RFC 3966, written as tel:+14155552671. Use it as a link on a web page and tapping it on a phone starts a call. The tool builds it from the E.164 form, which makes click-to-call links work the same way in every country.

Related Tools

Email Normalizer

Normalize email addresses by lowercasing, removing dots and plus aliases for Gmail, and trimming whitespace.

Network Tools

IBAN Validator and Parser

Validate IBAN format, verify check digits, and extract country code, bank code, and account number.

Network Tools

Text to Slug and URL Generator

Convert any text into a clean, URL-friendly slug. Handles special characters and accented Latin letters automatically.

Text and Writing

URL Parser

Break down URLs into protocol, host, port, path, query parameters, and hash components.

Developer Tools