Skip to main content
ToolsHub

Phone Number Parser

Validate a phone number and see every format at once — E.164, international, national, and RFC 3966 URI — along with the detected country, calling code, and line type, powered by libphonenumber and processed locally.

Updated

Files never leave your browser

Numbers are parsed entirely in your browser — nothing is uploaded.

No number parsed yet

Enter a phone number and pick a default country to see its formats.

How to use Phone Number Parser

A phone number parser takes a number written in almost any style and tells you everything about it: whether it is valid, which country it belongs to, its line type, and how to write it in every standard format. This tool is built on libphonenumber, the same Google library that powers phone validation on Android and countless apps. Type a number in national form with a default country, or paste one already in international +country form, and get the E.164, international, national, and RFC 3966 URI formats side by side. Everything runs in your browser, so numbers are never uploaded.

  1. Type or paste a phone number.
  2. Pick the default country for national-format numbers.
  3. Click Parse Number.
  4. Read the validity, formats, country, and line type.
  5. Copy whichever format you need.

Your data never leaves your device — 100% private processing.

Why phone parsing is harder than it looks

Phone numbers seem simple but are full of edge cases: different countries have different lengths, trunk prefixes like the leading 0 that are dropped internationally, area codes that vary in size, and special ranges for mobile, toll-free, and premium services. Writing your own validation with regular expressions quickly becomes a losing battle against this complexity. libphonenumber solves it by encoding Google's carefully maintained metadata for every country's numbering plan, so it knows that a given range is a valid mobile number in one country and meaningless in another. This tool puts that intelligence one paste away, which is invaluable whenever you accept phone numbers from users.

Storing and displaying numbers correctly

A good rule for any application is to store phone numbers in E.164 and format them for display only when showing them to a user. E.164 is canonical and unambiguous, so it deduplicates cleanly, works with every telephony API, and never depends on knowing a default region later. When you present a number to a user, the national format is friendliest for people in the same country, while the international format is clearest across borders. This parser gives you all of these at once from a single input, so you can capture the E.164 value for your database and the formatted versions for your interface without writing any formatting code yourself.

Worked examples

US national input

Inputs: (213) 373-4253 · US

Result: +12133734253 · valid · mobile/fixed line

UK international

Inputs: +44 20 7946 0958

Result: Country GB · national 020 7946 0958

Glossary

E.164
The international standard format: + country code and number, no spaces.
Calling code
The country dialing prefix, such as +1 or +44.
National format
How a number is written for dialing within its own country.
Line type
The category of a number, such as mobile, fixed line, or toll-free.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Generators

Explore all Generators.