What is E.164?
Known as the international public telecommunication numbering plan, this International Telecommunication Union Telecommunication Standardization Sector (ITU-T) specification defines the format of all numbers available on the Public Switched Telephone Network (PSTN).
This numbering plan standard provides a globally unique number for each device on the PSTN. These devices can then route phone calls and text messages to individual devices in different countries.
According to the official ITU E.164 recommendation, the format must:
- Use decimal integers
- Be limited to a total of 15 digits in length
- Start with a
+ - Exclude
0as the first character as no E.164 country code starts with0
The following diagram shows the E.164 format:
Country codes have a length between one and three digits. The combined length of the National Destination Code (NDC), also known as an area code, and Subscriber Number equals 15 minus the length of the country code.
| E.164 format | Country | Country code | NDC | Subscriber number |
|---|---|---|---|---|
| +14155552671 | US | 1 | 415 | 555 2671 |
| +442071838750 | Great Britain | 44 | 20 | 7183 8750 |
| +551155256325 | Brazil | 55 | 11 | 5525 6325 |
To learn more, see How to build international phone number input in HTML and JavaScript, including how to transform the phone number input into E.164 format.
To validate a phone number and its format, use the Twilio Lookup API. A regular expression (regex) can't guarantee a match with a valid number.