previous icon Back to blog
Jul 23, 2014
3 minutes read

How to Format International Telephone Numbers?

Sending SMS messages is easy, although there are some details that need attention. There is, for instance, quite some confusion in how to format telephone numbers correctly.

TABLE OF CONTENTS
  • Country Codes
  • E.164 Formatting
  • How Does the E.164 Numbering Plan Works?
  • To Use the Previous Example:
  • Two Important Things to Note
  • International Phone Number Validator
  • Country-Specific Rules and Regulations

Country Codes

The most important part to remember is to add the international country code. A mobile phone number in the United Kingdom always starts with the digits '07', for instance ‘07911 123456’. If you would not add an international country code, the computer might interpret that phone number otherwise. The country code for Russia is ‘+7’, and Russian mobile phone numbers start with ‘+79’, so ‘+7911 123456’ might be a Russian mobile phone as well.

Therefore you should add ‘+44’ UK’s country code to make the number unambiguous; ‘+44 7911 123456’ will always lead to a mobile phone in the UK.

E.164 Formatting

It might be clever to format numbers using the E.164 recommendation. An international E.164 number is designed to include all of the necessary information to successfully route a call or SMS message to an individual subscriber on a nation's public telephone network.

How Does the E.164 Numbering Plan Works?

  • A telephone number can have a maximum of 15 digits
  • The first part of the telephone number is the country code (one to three digits)
  • The second part is the national destination code (NDC)
  • The last part is the subscriber number (SN)
  • The NDC and SN together are collectively called the national (significant) number

To Use the Previous Example:

  • Country code: +44
  • National destination code: 7911
  • Subscriber number: 123456
  • In total: +447911123456

Two Important Things to Note

First of all, in the international E.164 notation a leading ‘0’ is removed. The UK mobile phone number ‘07911 123456’ in international format is ‘+44 7911 123456’, so without the first zero. Secondly in the E.164 notation all spaces, dashes [‘-‘] and parentheses [ ‘(‘ and ‘)’] are removed, besides the leading ‘+’ all characters should be numeric.   

International Phone Number Validator

A great way to check whether a phone number is correct or how it should look in E.164 formatting is using the Phone Number Parser demo. That is part of a piece of software that Google uses to check phone number formatting in Android phones.

The website ‘howstuffworks’ has more valuable background information on the origin of International Telecommunication Unit (ITU) and the numbering plan E.164

Country-Specific Rules and Regulations

SMS is an easy and effective way to instantly reach people all over the world. But with this wide range of countries you can reach, comes a wide range of differences in national habits, restrictions and options. For further tips and guidelines, please read our article on country-specific rules, regulations and habits for sending international SMS.

Was this article interesting?
Share it!

Ready to Start Sending SMS? Contact Us

CM.com
connects tens of thousands of companies with millions of consumers via their mobile phone each day. Behind the scenes, from our innovative platform, CM.com makes sure companies can use these millions of messages, phone calls and payments to become part of people’s lives.

Latest Articles

Is this region a better fit for you?
close icon