previous icon Back to blog
Nov 27, 2020
3 minutes read

How to format international telephone numbers

Sending SMS messages is easy, although some of the finer details can be a little confusing. Formatting international phone numbers, for example, can be tricky, so here's how it's done.

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 don't add an international country code, a computer might interpret that phone number as something else altogether. The country code for Russia is ‘+7’, and Russian mobile phone numbers start with ‘+79’, so ‘+7911 123456’ might actually be a Russian mobile phone number.

Adding ‘+44’, the UK’s country code makes the number unambiguous; ‘+44 7911 123456’ will always connect to a mobile phone in the UK.

I want to sign up for a demo account and Start sending SMS messages

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 national public telephone network.

Here's how 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
  • The result: +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 by using the Phone Number Parser demo. This 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 the International Telecommunication Unit (ITU) and the numbering plan E.164

SMS: instant international reach

SMS is an effective way of instantly reaching people all over the world. See how our partners are using SMS to reach their customers, improve customer service and increase conversion.

Try SMS for free

Was this article interesting?
Share it!
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.

Related articles

SMS Security
Apr 22, 2024 • Security

Secure your business with SMS OTPs and alerts

In the current digital era, technological and online advances are rapidly growing, creating new ways for businesses to engage their customers. Unfortunately, where there is growth, there will be criminals trying to steal some of the profits. Protecting business data, customer information and online accounts is a priority for every modern business. SMS security can help protect your business and your customers from online fraud and cybercrime.

WhatsApp New Policy
Apr 15, 2024 • WhatsApp

Create quality customer engagement with WhatsApp Templates

We all want to get our brand messages out there. We want to engage with our customers, raise brand awareness and connect with our target audience. But how? Provide meaningful and relevant customer experiences to help grow your business and safeguard the way you communicate with both customers and potential customers with WhatsApp. In this blog, we'll explore how to create quality customer engagement with the WhatsApp Business Platform.

sms-10dlc
Apr 08, 2024 • SMS

Increase Promise to Pay conversion rates with SMS

Today business communication is often reduced to quick exchanges and instant messaging, the role of SMS has become increasingly pivotal to keep conversations front of mind. One such area where SMS has proven to be a game-changer is for late payments, especially Promise to Pay (PTP) agreements. These agreements, which involve a commitment to settle a financial obligation, benefit immensely from the efficiency and immediacy that SMS brings to the table. In this blog, we will explore the power of SMS in the context of Promise to Pay agreements.

SMS Appointment Notifications
Apr 01, 2024 • SMS

Streamline your business to success with SMS notifications

From appointment no-shows to late payments, every disruption in the flow of a business is costly in both time and money. Lost preparation time, altered schedules and the additional time taken to reschedule appointments or deliveries impact revenue, a situation any business wants to avoid. Yet, timely communication via SMS can help prevent such disruptions in your business flow. In this blog, we'll explore how SMS offers a solution and share some SMS templates.

SMS Customer Service
Mar 25, 2024 • SMS

How to effectively use SMS for late payments

Organisations face a significant challenge in effectively managing overdue payments and cash flow in a positive light with customers. To collect payments while keeping relationships intact and increasing engagement, SMS has emerged as a powerful, efficient and convenient tool for both businesses and customers. In this blog, we’ll explore how to effectively use SMS for late payments, highlighting its benefits and best practices.

cashless
Mar 18, 2024 • Live

Introducing Box Office: the solution for on-the-door sales

We're excited to release our latest development for on-the-door ticket staff; a solution that enables sales before and during your event or club night. Powered by the CM.com Ticketing platform and enabled on a variety of hardware and operating systems, we help your staff connect online sales to offline sales, seamlessly. In this blog, we look at some of the key features of Box Office.

sms-in-ecommerce
Mar 11, 2024 • SMS

How to create a successful eCommerce strategy with SMS

Every successful eCommerce strategy should aim to optimise customer communication across the entire buying journey. Why? The customer buying journey isn't limited to the point of sale alone. It encompasses everything leading up to purchase and everything afterwards. So, businesses need to engage and assist customers during the pre-sale, purchase and post-purchase stages - via a channel available to all - to create a successful eCommerce strategy.

how-popular-is-sms
Mar 04, 2024 • SMS

How popular is SMS in 2024? And how can it add value to your business?

While SMS is one of the oldest messaging services, the rise of instant messaging channels made a dent in its traffic. Why? Compared to the newer channels with rich features, SMS is relatively basic in its features, with plain text messages and a character limit of 160. Yet in customer communication, basic is often effective. So much so, that SMS is still one of the most impactful communication channels today. But how can it add value to your business? In this blog, we explore the popularity and key use cases of this ever-lasting channel.

whatsapp-business-telecom
Feb 26, 2024 • WhatsApp

10 ways to optimise the customer experience with WhatsApp Business

WhatsApp dominates the messaging landscape in the United Kingdom, securing its position as the top messaging channel. According to Statista, WhatsApp stood out as the most used messaging channel in the UK in 2023.

Is this region a better fit for you?
Go
close icon