E.164 Phone Number Formatter

Convert messy phone numbers to E.164 format (+1234567890). Country code selector, batch mode, and reference table.

Last reviewed: April 2026

New to this tool? Click here for instructions

Input
E.164 Output
Input (one number per line)
Results

E.164 country calling codes - click any row to copy the code.

CountryCodeExample NumberDigits
Enter a phone number above to format it.

How to Use the Phone Number Formatter

To use the E.164 Phone Number Formatter, follow these steps:

1. Select your country from the dropdown menu to add the appropriate country code.

2. Enter the phone number you want to format. The tool supports various formats such as (555) 123-4567, 555-123-4567, 555.123.4567, or +1 (555) 123-4567.

3. Click the 'Format' button to convert the phone number to E.164 format.

4. The result will be displayed in E.164 format, e.g., +15551234567.

  • Select country code
  • Enter phone number
  • Click 'Format'
  • View E.164 output

When to Use the Tool in Real Workflows

Use the E.164 Phone Number Formatter in the following scenarios:

1. When building applications that require international phone number support, such as SMS messaging or phone calls.

2. When storing user contact information in a database to ensure consistency and compatibility with telephony APIs.

3. When preparing phone numbers for transmission to telephony services that require E.164 format.

4. When normalizing phone numbers for batch processing or bulk uploads.

How It Works

The E.164 Phone Number Formatter uses a simple, deterministic algorithm to convert phone numbers to E.164 format:

1. It detects whether the input starts with a + sign. If so, it preserves the + and strips all non-digit characters from the remainder.

2. If the input starts with 00, it treats it as an international prefix and replaces 00 with +.

3. If the input does not start with a + or 00, it strips all non-digit characters and prepends the selected country code.

4. It validates the final length to ensure it is between 7 and 15 digits after the + sign.

Frequently Asked Questions

E.164 is the international standard format for phone numbers, defined by the ITU-T. An E.164 number always starts with a + followed by the country code (1-3 digits) and the subscriber number, with a maximum of 15 digits total. Example: +14155552671 for a US number. This format is required by most telephony APIs like Twilio, WhatsApp Business API, and AWS SNS.
E.164 is the required format for programmatic telephony. Twilio, Vonage, AWS SNS, WhatsApp Business, and virtually all SMS/voice APIs require E.164 input. It eliminates ambiguity between local, national, and international dialing formats, ensuring numbers work globally. Databases storing phone numbers should use E.164 as the canonical form.
The formatter removes all non-numeric characters except a leading + sign. It strips spaces, dashes, dots, parentheses, and any other punctuation. The selected country code is prepended if the number does not already start with +. The result is validated against the E.164 maximum length of 15 digits (excluding the +).
If you enter a number that already starts with +, the formatter preserves that leading + and uses the digits as-is, ignoring the country code selector. This lets you format a mixed list of numbers where some already include country codes and some are local numbers.
The ITU-T E.164 standard sets a maximum of 15 digits total (excluding the leading +). This includes the country code digits. A US number (+1) can have up to 14 additional digits (though NANP numbers are exactly 10 digits). Numbers exceeding 15 digits are flagged as invalid by this tool.