Phone Number Parser

Pick a country and paste a number to get its E.164 form, national and international formatting, calling code, and a validity check. Twenty countries, all in your browser.

This phone number parser takes a number and a country and works out its E.164 form, national and international formatting, the country calling code, and whether the length is valid. Pick a country, type or paste a number in any style, and it strips trunk prefixes and spacing to parse a phone number cleanly. It doubles as an e164 formatter for storing numbers in a database and as a quick phone number validator before you send an SMS. The country rules are hand-written for twenty common countries and run entirely in your browser.

Valid United States number
E.164
+14155552671
National format
415 555 2671
International format
+1 415 555 2671
Country calling code
+1
National number
4155552671
Country
United States

How it works

  1. 1

    Pick the country

    Choose the country the number belongs to so the right calling code and length rules apply.

  2. 2

    Type the number

    Enter it however you have it: with spaces, brackets, a leading zero, or a + and country code.

  3. 3

    Read the formats

    E.164, national, and international versions update live, along with a valid or invalid flag.

Instant & 100% private — nothing is uploaded

Everything runs locally in your browser. Your code, text and files are processed on your own device and are never sent to a server — so there are no upload waits, no size limits from us, and nothing is ever stored or logged.

Frequently asked questions

What is E.164 format?
It’s the international standard that writes a number as a + sign, the country code, and the national number with no spaces, like +14155552671. This e164 formatter builds it for you from any input style.
How does it decide if a number is valid?
The phone number validator checks the count of national digits against the expected length for the country you picked. It’s a length and prefix check, not a live lookup of whether the line is in service.
Do I need to type the country code?
No. Pick the country from the list and enter the national number on its own. If you do include a + and country code, the parser handles that too.
Which countries are supported?
Twenty for now, including the US, UK, Germany, France, India, the UAE, Australia, Japan, China, Brazil, and more. Each has its own dial code and length rules.
Is my number sent anywhere?
No. The whole parse runs in your browser. Nothing you type is uploaded, which matters when you’re handling real customer numbers.