Skip to content
UniKit

Phone number parser

Built-in calling-code table for 90+ countries (flags included): normalise numbers to E.164, format them the local way, check whether a number can possibly be valid (length + country code) and parse a whole list, one number per line.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Single number

Enter a number to see the result

Batch parsing

Paste a list of numbers above

What this tool does

  • Normalise numbers to E.164: pull the digits out of spaces, parentheses and dashes and emit +8613800138000, ready for a database column.
  • Show numbers the local way: every result includes the international form (+86 138 0013 8000), the national form (138 0013 8000) and a tel: link, which suits address books and support desks.
  • Clean a list in bulk: paste one number per line, parse the whole column at once, skip blank lines, and let numbers without + or 00 fall back to the default country you selected.
  • Screen out obviously broken numbers: length outside the country range, a national number starting with 0, or an unknown calling code each come back with a reason so you can check them by hand.

Example

Input

+1 415 555 2671

Output

E.164: +14155552671
International: +1 415 555 2671
National: 415 555 2671
tel: link: tel:+1-415-555-2671
Country: 🇺🇸 United States
Possibly valid: yes (length and calling code check out)
Other countries with the same code: 🇨🇦 Canada

The longest calling code wins, and +1 belongs to both the US and Canada, so the "other countries" line lists the alternative. The 10-digit length satisfies both rules.

Frequently asked questions

With no + and no leading 00, how does it know the country?

From the default country selector. It starts on China, so 13800138000 is read as a +86 number. If the number actually belongs elsewhere, switch the default first, otherwise both the national format and the length check will be wrong.

Is "possibly valid" checked against real number ranges?

No. It performs two coarse checks: whether the calling code is recognised, and whether the national number length is one the country allows (10 or 11 digits for China, for example). A national number starting with 0 is rejected outright. Whether a prefix is assigned or a number really exists is beyond this tool.

Why is a leading 0 sometimes removed?

Many countries have a domestic trunk prefix — 0 in the UK and France, for example. The country table records these prefixes and strips them before converting to the international form, so 07911 123456 becomes +44 7911 123456, which is standard E.164 practice.

How many rows does batch mode take, and does it deduplicate?

There is no hard limit. Each line is parsed independently, blank lines are skipped, and nothing is deduplicated or reordered, so the output lines up with your input for pasting back into a spreadsheet.

Are the numbers uploaded?

No. The calling-code table for 98 countries ships with the page and parsing happens locally with no network request, so numbers are never logged.

Keywords:phonetelephonee164country code电话号码区号国际号码手机号格式化号码解析

Related tools