Why WhatsApp Requires E.164 Format
WhatsApp's account system uses mobile numbers as unique identifiers, and all numbers must comply with the ITU-T E.164 international telecommunications numbering standard. This standard defines the numbering structure for public switched telephone networks worldwide: it starts with '+', followed by a 1-3 digit country code, then the national significant number, all digits except the plus sign, with a total length not exceeding 15 digits.
This format requirement directly affects three types of operations:
- Importing into CRM or marketing systems: Systems need to identify the country of origin and route to the appropriate WhatsApp Business API node.
- Bulk status detection: Detection platforms must match WhatsApp account databases; format errors can cause query failures or misjudgments.
- API integration and message sending: Meta's official Cloud API strictly validates the phone number field in E.164 format.
If your customer list comes from multiple countries or contains local formats (e.g., 020-1234-5678, (44) 20 1234 5678), you must standardize the format before submitting for detection or sending messages.
The Three-Layer Structure of Standard E.164 Format
An E.164 number consists of three parts:
- Plus sign prefix: Always '+', indicating this is an international format number.
- Country code: 1 to 3 digits, such as 1 for USA/Canada, 86 for China, 44 for UK, 49 for Germany, 55 for Brazil.
- National significant number: Includes area code/network code and subscriber number; length varies by country.
Complete examples:
- China mobile 13812345678 →
+8613812345678 - UK London landline 020 1234 5678 →
+442012345678(strip leading 0 from area code) - US number (212) 555-0123 →
+12125550123 - Germany Berlin number 030 12345678 →
+493012345678(strip leading 0 from area code)
Elements not allowed:
- Spaces, parentheses, hyphens, dots, or other separators
- Local trunk prefix zeros (e.g., 0 in UK and Germany)
- International exit prefixes (e.g., 00, 011)
- Any letters or special characters
The total length (excluding the plus sign) must be within 15 digits. Numbers longer than 15 digits do not conform to E.164 and cannot be registered on WhatsApp.
General Conversion Rules: Stripping Leading Zeros and Exit Prefixes
Stripping Local Trunk Prefix Zeros
In many countries, local numbers require a leading 0 for domestic dialing to indicate long distance or mobile networks, but this must be removed when converting to international format. Typical cases:
- UK: Local format 020 1234 5678, remove the leading 0 from the area code to become +442012345678
- Germany: Local format 030 12345678, convert to +493012345678
- Italy: Local format 02 1234 5678, convert to +39212345678
- Australia: Local format 04 1234 5678 (mobile), convert to +61412345678
The rule is: after identifying the country code, check if the national number part starts with 0; if so, strip it.
Stripping International Exit Prefixes
Raw lists may contain exit codes used for international dialing:
- 00 (most European and Asian countries)
- 011 (USA, Canada)
- 810 (Russia)
For example, when dialing a Chinese number from Germany, you enter 0086 13812345678; during conversion, remove the 00 and keep 86 as the country code.
Handling Parentheses and Separators
First filter out all non-digit characters (keeping the leading +), then apply the above rules. For example:
(44) 20-1234-5678→ after filtering442012345678→ identify country code 44 → strip leading 0 →+44201234567800 49 (0)30 12345678→ filter00493012345678→ remove 00 → strip leading 0 →+493012345678
Special Country Rules: Extra Digits for Argentina and Mexico
WhatsApp's official Help Center explicitly states that two countries require special encoding logic, which directly affects number validity determination.
Argentina (+54): Add 9, Remove 15
Argentinian mobile numbers in international format must insert the digit '9' between the country code 54 and the area code, and remove the local mobile prefix '15'.
Local format: 15 1234-5678 (Buenos Aires, area code 11)
Incorrect conversion: +541115123456789
Correct conversion: +54**9**11**1234**5678
Complete rules:
- Country code is always 54.
- Followed by the digit 9 (required by WhatsApp, not domestic dialing rules).
- Then the area code (e.g., 11 for Buenos Aires, 341 for Rosario).
- Strip the mobile prefix 15 if present.
- Then the subscriber number.
The standard format is 13 digits (+54 9 + area code + number). If the raw data has a 15 between the area code and number, it must be removed.
Mexico (+52): Retain or Add 1
Mexican mobile numbers in WhatsApp format require retaining or adding the digit '1' after the country code 52.
Local format: 55 1234 5678 (Mexico City, area code 55)
Correct conversion: +52**1**5512345678
Unlike Argentina, Mexico's '1' is a network identifier for mobile numbers; landlines do not need it. During conversion:
- If the original number already includes a leading 1 (e.g., 1-55-1234-5678), keep it.
- If it is purely local format (e.g., 55-1234-5678), add 1 when determining it is a mobile number.
- Total length is typically 13 digits (+52 1 + 10-digit number).
Other Countries to Note
- India (+91): Mobile numbers start with 6/7/8/9, 10 digits, no additional prefix needed.
- Brazil (+55): Mobile numbers added a 9th digit after 2016 (starting with 9), but this is part of the number itself, not a WhatsApp special rule.
- Russia (+7): Shares the country code with Kazakhstan; distinguish by the first three digits of the number.
If your list covers multiple Latin American or European countries, it is advisable to first consult the WhatsApp official Help Center or ITU country code list to confirm whether there are special rules similar to Argentina and Mexico.
Five-Step Process from Raw List to E.164
Suppose you have an Excel or CSV list containing customers from multiple countries, with a messy number column (local format, international format, with separators). Here is the complete sequence to standardize to E.164:
Step 1: Filter Non-Digit Characters, Keep Leading +
Use regular expressions or string functions to strip spaces, parentheses, hyphens, and dots. If the number starts with +, keep it; otherwise mark it for country code addition.
Example: (44) 20-1234-5678 → +442012345678 or 442012345678
Step 2: Strip International Exit Prefixes
Check if the number starts with exit codes like 00, 011, 810, and remove them if so. This step must be done before identifying the country code.
Example: 00442012345678 → 442012345678
Step 3: Identify or Add Country Code
- If the number starts with +, the country code already exists (e.g., +44).
- If there is no +, add the country code based on the 'Country' column in the list or the default market.
- If the numbers in the list are from a single country (e.g., all UK customers), you can batch add +44.
Note: Country codes are 1 to 3 digits and may be ambiguous. For example, 1 is both USA/Canada and could be the start of some numbers. It is recommended to prioritize the country field in the list.
Step 4: Strip Leading Zeros and Add Special Digits per Country Rules
Based on the identified country code, apply the corresponding rules:
- UK (44), Germany (49), Italy (39), etc.: Strip leading 0 from the national number part.
- Argentina (54): Add 9 after the country code, remove mobile prefix 15.
- Mexico (52): Check if there is already a 1; if not, add it.
- China (86), USA (1), etc.: No leading zero to strip; concatenate directly.
This is the most error-prone step. If special rules are skipped (e.g., directly concatenating an Argentinian number as +54 11 1234 5678), WhatsApp will consider the format incorrect or unable to match the account.
Step 5: Length Validation and Deduplication
Check if the total length of each number (excluding the plus sign) is between 4 and 15 digits. Numbers longer than 15 digits are marked invalid; those shorter than 4 digits may indicate format recognition failure.
Also deduplicate the list. In E.164 format, +442012345678 and +44 20 1234 5678 are the same number; the version with spaces needs to be filtered first before deduplication.
After these five steps, you will have a clean list of E.164 numbers compliant with WhatsApp specifications. If you need to further detect the activation status, registration time, or activity level of these numbers on WhatsApp, you can submit them directly to a detection platform.
Processing the Formatted List with NexCheck
After converting your raw list to standard E.164 format using the above process, the next step is usually to verify the validity of these numbers on WhatsApp: which are registered, which are active, and which are banned. NexCheck WhatsApp platform detection accepts such formatted lists.
When uploading a txt or csv file, ensure the number column has completed E.164 conversion. The platform will check each number's WhatsApp activation status and available attributes one by one, returning results grouped by valid and invalid. If the list still contains numbers with format errors (missing country code, containing letters, exceeding 15 digits, etc.), these rows will be flagged during the pre-validation stage and will not count towards detection consumption.
If you need to integrate with a CRM or automated workflow, you can also submit an array of E.164 numbers via REST API and receive detection results via Webhook. In either case, format standardization is the first step, directly determining the coverage and accuracy of subsequent detection.
Length Validation and Common Errors
The E.164 standard specifies a maximum total length of 15 digits (excluding the plus sign). In practice, most countries' numbers are between 10 and 13 digits:
- China mobile: +86 + 11 digits = 13 digits
- US number: +1 + 10 digits = 11 digits
- UK mobile: +44 + 10 digits = 12 digits
- Argentina mobile: +54 9 + 10 digits = 13 digits
Common reasons for exceeding 15 digits:
- Duplicate country code added (e.g., +86 86 138...)
- Local leading zero not removed (e.g., +44 020... should be +44 20...)
- Exit prefix not stripped (e.g., +00 44 20...)
- Special digits incorrectly added (e.g., Argentina retaining both 9 and 15)
Reasons for fewer than 4 digits:
- Country code identification failed, only part of the local number retained
- Filtering rules incorrect, valid digits deleted as separators
When processing lists in bulk, it is advisable to output numbers with abnormal lengths separately and manually check whether it is a format issue or a data source error.
Next Steps After Format Conversion
After completing E.164 standardization, your number list can be safely imported into WhatsApp Business API, CRM systems, or status detection platforms. Unified format eliminates matching failures caused by encoding differences and provides a consistent primary key for subsequent deduplication, grouping, and write-back operations.
If the list comes from multiple collection channels (website forms, offline events, third-party data providers), different sources may use different local formats. Before merging, perform E.164 conversion separately for each to minimize duplicate records and format conflicts. For markets with special rules like Argentina and Mexico, it is recommended to create separate conversion scripts or configuration files to ensure the correct logic is applied each time.
NexCheck-筛号平台
Comments(0)