Skip to content

International (exit) prefix

published · September 27, 2026

An international prefix is what is dialled to leave a country before the calling code: 00 in most of the world, 011 in North America. Spaw reads it and suggests a fix in did_you_mean.

An international prefix, or exit code, is what a caller dials to leave their own country's network before the calling code of the country being called: 00 in most of the world, 011 in the North American plan, 0011 in Australia, 010 in Japan. It belongs to the way a number is dialled, not to the number, so the E.164 form replaces it with a plus sign. It is not the trunk prefix, the 0 (or the 1 in North America) dialled in front of a number inside its own country, which E.164 drops as well.

In libphonenumber 9.0.37's metadata, 185 of the 245 regions dial 00 to leave the country and 26 dial 011: the 25 regions of the North American plan and the Marshall Islands. Sixteen store a pattern of several prefixes with none preferred, and the rest have one of their own, such as Russia's 8, a pause for the tone, then 10. The phone number formatter lists every region's international and trunk prefix from the same metadata.

What Spaw answers

A prefix the lookup can read leaves no trace in the answer: e164 is the same with or without it. A number written with the international prefix of the country sent is read as international: 011 44 … with country: "US", 00 44 … with "GB". A leading 00 is also tried as a plus when no country is sent or the national reading fails, and kept when that gives a valid number.

When the input still does not parse as a number of the country sent, the answer is invalid and free, and did_you_mean carries the E.164 form of the one valid reading of two common mistakes: a missing plus, or a foreign international prefix left in (such as 011 sent with a country that does not dial it). 01112025550142 sent with country: "GB" answers too_long with did_you_mean: "+12025550142", and 447700900123 sent with "US" answers too_long with did_you_mean: "+447700900123". The suggestion is never applied. It is null when no reading or more than one is valid, when the reading lands in a block the regulator's table says nobody holds (unless the block sits in a range reserved for fiction), when the digits could be a national number with one digit too many or too few, for input that already starts with a plus, and for a short_number or emergency_number.

What it does not mean

did_you_mean is a reading of the digits, not a claim that the suggested number is in service or belongs to the person who typed it; looking the suggestion up is a separate lookup. A number whose prefix Spaw can already read answers valid with nothing to suggest, which is why the field is set only on invalid answers. Which prefix a country uses, and how its numbers are written for display, is on its page under phone facts by country.

Related

markdown version: /glossary/international-prefix.md

Verify addresses the same way

The Spaw API runs every check described here on each lookup, with an SMTP handshake that never sends mail. 10 free lookups a month, no card required.

Get your API key

More glossary

  • Area-code overlay

    An area-code overlay is a new area code added over the same area as an existing one, instead of splitting it, so neighbours can hold different codes and local calls need ten digits.

  • Calling window

    A calling window is the span of local hours a sender contacts people in. Spaw answers in_call_window from the number's time zones: clock arithmetic, not compliance advice.

  • Fictional number

    A fictional number sits in a range kept out of service for films, TV and other fiction: 555-0100 to 555-0199 in North America, and ranges Ofcom, ARCEP, ACMA and ComReg reserve elsewhere.

  • International network number

    An international network number sits under a calling code the ITU gives a global service rather than a country, such as +870, +881, +882 or +883, so its country is null.

  • Live carrier check (HLR lookup)

    A live carrier check asks the mobile networks, at the moment of the lookup, whether a number is in service, which network serves it and whether it is roaming. On Spaw it is not enabled.

  • Number pooling (thousands-blocks)

    Number pooling splits a North American central office code into ten blocks of a thousand numbers, each assigned to a carrier separately, so one code can hold several carriers' numbers.

  • Number portability

    Number portability lets a subscriber keep a phone number when changing carrier. The number's block stays listed under the carrier it was issued to, so block data names the original holder.

  • Operating company number (OCN)

    An operating company number (OCN) is the four-character code North American numbering tables use to identify the company that holds a central office code or thousands-block.