b2KIT

Phone Number Formatter

Format phone numbers to international, national, and E.164 standards with country code detection.

Tested tool guide Tested browser tools Checked August 16, 2026

What Phone Number Formatter does, with a checked example

Paste any phone number - spaced, hyphenated, parenthesized, or prefixed with a country code - and this tool returns it in three forms: E.164 (the +14155552671 style that most APIs require), international, and national. It identifies the country from the + prefix and applies that country's dialing conventions. The surprise most users hit: a number typed without a + prefix cannot be identified, so it is parsed under the tool's default country, and a UK number entered as 020 7946 0958 silently comes out as a US number. The digits stay in the browser; nothing is uploaded.

Worked example

A concrete input and expected output from the current implementation.

Input

+1 (415) 555-2671

Expected output

E.164: +14155552671
International: +1 415 555 2671
National: (415) 555-2671

The +1 prefix selects the North American dialing plan, so the national form keeps the familiar (415) grouping while E.164 strips all punctuation and the international form groups digits with spaces.

How the result is produced

1

Country detection

A number starting with + is read against the standard country-code table, so +44 selects the UK dialing plan and +1 the North American one. Without the + prefix, the same digits mean different things in different countries, so the tool parses the number under a default country - taken from your locale or chosen in the interface - and shows which plan it applied. Check that label when the number came from somewhere unexpected.

2

What E.164 actually is

E.164 is the ITU-T numbering standard: a + sign, the country code, and the national significant number, up to 15 digits with no spaces, hyphens, or parentheses. The leading zero used for national dialing (the trunk prefix, as in UK 020) is dropped because it only exists for calls made inside that country. Extensions have no place in E.164, so they are preserved only in the national and international forms.

Good uses

  • Preparing numbers for SMS, telephony, or billing integrations whose APIs accept only E.164 - many providers reject any other shape.
  • Normalizing a contact list where every row formats the same number differently - some with +, some with parentheses, some with stray spaces - into one consistent form.
  • Converting a number to international form for a business card or a call from abroad, where national-format numbers often do not dial at all.

Limits and checks

  • Ambiguity without a + prefix: 020 7946 0958 is a UK number, but pasted bare it is parsed under the default country. Include the +44 or set the country yourself, or the output will be confidently wrong.
  • The 15-digit E.164 ceiling: country code plus national number may exceed it for very long numbers, and an extension never fits - it has no legal place in the E.164 form.
  • Normalization is not verification: +1 spans the US, Canada, and Caribbean territories, so detection narrows to a plan, not a country, and the tool cannot confirm a number is real or in service.

Common questions

Why did my number lose its leading zero?

Because the zero is a trunk prefix, not part of the international number: it signals national dialing inside the UK (020) or Germany (030) and disappears once the country code takes over, so 020 7946 0958 becomes +44 20 7946 0958. The zero never appears in E.164 output but does return in the national form. When in doubt, count digits - 15 is the ceiling.

Is +1 415 555 2671 the same as 14155552671?

The digits are identical, but the + carries meaning: it declares the number international and tells a dialer to use the international access prefix. 14155552671 dials fine within the North American plan but can misroute from other countries, while +1 415 555 2671 dials from anywhere. Prefer the + form in documents and code.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools