Phone Number Formatter
How it works
Phone number formatting is inconsistent across countries, organisations, and databases. The same number might be stored as +44 7700 900123, 07700 900123, 447700900123, or +44-7700-900123 — four representations of the same number. The Phone Number Formatter normalises phone numbers to E.164 format (the international standard) and displays them in local and international formats.
**E.164 format** The international standard for phone numbers is E.164: + followed by country code and subscriber number, no spaces or punctuation, up to 15 digits. +447700900123, +12025551234, +81345678901. E.164 is required by SMS APIs (Twilio, MessageBird), voice calling APIs, and CRM systems. It unambiguously identifies any phone number globally.
**National vs. international format** National format omits the country code and uses national conventions: 07700 900123 (UK), (202) 555-1234 (US), 03-4567-8901 (Japan). International format includes the country code but varies in punctuation: +44 7700 900123, +1 202-555-1234, +81 3-4567-8901. The formatter accepts either and outputs both.
**Country code coverage** The formatter validates number length and format for 100+ countries using the ITU-T E.164 numbering plan. Country codes range from 1 digit (+1 for North America) to 3 digits (+380 for Ukraine). The formatter detects the country code from the input and validates the subscriber number length (which varies by country — UK mobile numbers are 10 digits excluding the country code; US numbers are exactly 10 digits).
**Formatting for display** Different contexts require different formats: HTML `tel:` links use E.164. Voice call menus often use local format. Database storage should use E.164 for consistent querying. The formatter outputs all variants for copy-paste into different systems.
Privacy: all processing runs in the browser. No phone numbers are transmitted.
Frequently Asked Questions
- E.164 is the ITU-T international standard: + followed by country code (1–3 digits) and national subscriber number (up to 12 digits), no spaces or punctuation, maximum 15 digits total. Example: +447700900123 (UK), +12025551234 (US). Storing in E.164 in databases ensures: consistent querying (no format mismatch duplicates), global uniqueness (country code prevents collisions between national number spaces), compatibility with all SMS/voice APIs (Twilio, Vonage, Amazon SNS all require E.164), and deduplication (the same number in different display formats maps to one E.164).
- Prefix the local number with the international dialling prefix (varies by country — in most countries it's 00 or +; in the US it's 011) followed by the country code, then drop any leading 0 from the local number. UK example: local number 07700 900123 → international: +44 7700 900123 (drop the leading 0). US number (212) 555-1234 → international: +1 212 555 1234 (no leading 0 to drop since US numbers don't have one). In mobile phone contacts, always use + for international numbers — it works regardless of which country you're calling from.
- +1 was assigned to the North American Numbering Plan (NANP), which covers the US, Canada, and 24 other countries and territories (Bermuda, Jamaica, Trinidad and Tobago, etc.) — all sharing the same country code. +1 was assigned first (along with the NANP) because the Bell System dominated the International Telegraph and Telephone Consultative Committee (CCITT) early standardisation process in the 1960s. The NANP assigns 3-digit area codes within +1 space, with rules ensuring no US area code matches a country code for another NANP country.
- No — E.164 is designed to be globally unambiguous. Each country has a unique country code, and each national numbering plan manages subscriber numbers to be unique within that country. The combination country_code + national_number is globally unique in the E.164 system. Duplicate E.164 numbers would represent a fault in a national number assignment, not a design issue with E.164. This uniqueness is why databases can use E.164 as a unique key for contact records, phone number verification systems, and fraud detection.