Boneyard Tools

National, E.164 and international phone formats explained

How the national, E.164, and international phone layouts differ, when each is required, and how to turn a messy number into every style.

Why one number has three shapes

A single phone number can be written many ways without changing which handset it reaches. The digits (123) 456-7890, +1 123 456 7890, and +11234567890 all point to the same US line. What differs is the audience: a printed business card wants a human-friendly national layout, while a software API wants a strict machine-readable one. Picking the wrong shape for the wrong system is a common cause of failed sign-ups and undelivered texts, which is why converting cleanly between them matters.

The national format for people

National format is what a reader in a given country expects to see. In the United States that means the three-digit area code wrapped in parentheses, a space, then the seven-digit local number split by a hyphen, as in (123) 456-7890. It drops the country code because everyone dialing domestically already knows it. This tool produces that layout for any clean 10-digit US number, and keeps a visible +1 when an 11-digit number carries the country code.

E.164 for machines

E.164 is the standard defined by the international telecommunication union for a globally unambiguous number. It is a plus sign, the country code, and the national number, with no spaces, dashes, or parentheses, and at most fifteen digits total. For a US line that is +11234567890. Payment forms, two-factor authentication providers, and SMS gateways almost always store and send numbers this way because there is exactly one correct spelling, so there is nothing to parse or guess.

International format as a readable middle ground

International format keeps the leading plus and country code that E.164 requires but reintroduces spaces so a person can read the number aloud. This tool renders a US number as +1 123 456 7890, and for lengths it does not recognize as US it groups the remaining digits into triples from the right. That grouping keeps even an unfamiliar foreign number tidy, though the spacing is a readability aid rather than a claim about that country's official dialing plan.

Frequently asked questions

Which format should I store in a database?

Store E.164. It is unambiguous, has a single valid spelling per number, and is what telephony and verification APIs expect, so you can always render a friendlier national or international view later.

Does E.164 include a leading zero or trunk prefix?

No. E.164 uses the country code and national significant number only, so trunk prefixes like a domestic leading zero are dropped. This tool builds the US form as +1 followed by the ten-digit number.