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.

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

verification-services
Nov 04, 2024 • Security

Your one-stop-shop for verification services

Securing online accounts, data and users is a must in business today. At least, if you don't want to end up as the next security breach headline in the papers. But simply implementing a few, disconnected security measures isn't always enough. Loose apps and services become vulnerable to fraud and are often cost-inefficient. That's why CM.com now offers a one-stop-shop to safely secure your business: Verification API.

fraud-and-simplify-verification-processes-hero
Oct 21, 2024 • Security

Prevent fraud and simplify verification processes with Number Verify

Customer communication via SMS has become an integral part of the modern business landscape. In recent years, however, criminals have used SMS to steal data and money from both businesses and customers. But, to combat this, there's a new convenient, fast verification method to help businesses secure online accounts: Number Verify.

blackfriday-2024 blog
Oct 07, 2024 • Conversational AI

The art of simplicity: help customers make quick Black Friday decisions

Black Friday 2024 is just around the corner, bringing with it a great opportunity for retailers to maximise sales. However, standing out in such a competitive event isn’t easy. Consumers expect attractive offers, fast deliveries and top-notch customer support. In this article, we’ll show you how to simplify the purchasing process during Black Friday, optimising everything from promotions to logistics and 24/7 customer service to ensure a seamless experience and increase customer loyalty.

puzzle cm.com
Sep 23, 2024 • CM.com

The puzzle comes together: from pieces to platform

CM.com started as an SMS provider, yet today, we offer an integrated customer engagement platform to drive meaningful business interactions. Over the past 25 years, we have been assembling this platform piece by piece, with each innovation, product and acquisition adding to the bigger picture. Let’s explore how these puzzle pieces have come together to build the CM.com of today.

amnesia
Sep 18, 2024 • Live

Building a superclub: behind-the-scenes at Amnesia

When you think of superclubs, you probably think of Amnesia. For five decades this Ibiza institution has set the beat for the island’s party scene and the global clubbing landscape as a whole – a mainstay on lists of the World’s Best Clubs and a bucket-list destination for clubbers the world over. Amnesia has always been a place of innovative thinking. Today, the club is a globally-recognised brand, having long ago embraced the possibilities of social media. Its ticketing is also ahead of the curve. Working with CM.com, Amnesia have developed an integrated, highly sophisticated solution that allows them to sell tickets, connect with fans all year round and retain ownership of their data through one platform. Where does this spirit of innovation come from? The answer lies in Amnesia’s history. It has got there by always moving forward. By seeking out new sounds and promoters, and by refining the in-club experience season after season. More recently, it has got there through investing in digital and working with CM.com to evolve its ticketing and fan engagement. Here, we take you inside Amnesia to understand how this family-run business became a global brand. From its counter-cultural roots through to its digital transformation over the last few years.

whatsapp-business-blog_image-deals-offers
Sep 16, 2024 • WhatsApp

Increase conversion with promotional messages on WhatsApp

In an age of mass marketing, it’s safe to say peak sales periods, especially Black Friday and the holiday season, can be overwhelming for consumers. Consumers receive irrelevant information from companies that doesn't match their personal needs and desires, so it's no surprise people might want to switch off and tune out all forms of marketing until the season is over. As an eCommerce player, you should always be looking to avoid this by diversifying and personalising your marketing strategy in a way that suits your customers' needs.

Jeroen-buitenland
Sep 09, 2024 • CM.com

Pushing boundaries: the path to global expansion

By 2010, CM.com knew it was time to expand beyond its roots. What began in nightclubs had grown into a broader client base across various industries. It was time to push boundaries—both literally and figuratively. Here’s the story of our international journey, filled with challenges, triumphs and lessons.

WhatsApp RCS
Aug 19, 2024 • RCS

RCS vs WhatsApp: which messaging channel is right for your business?

RCS and WhatsApp are both notable channels for businesses that strive for a personal and conversational approach to customer communication. But what features do both channels have? What sets them apart? And more importantly, which channel is most suitable for your business? In this blog, we'll explore the differences to answer these questions.

blog-25-years-diy-to-high-tech
Aug 05, 2024 • CM.com

How CM.com expanded from clubs into TV, banks and beyond

What started as ClubMessage — focused on SMS marketing for nightclubs — quickly evolved into an organisation capable of handling millions of messages. Within just five years, the company had not only built a vast reach among young people but also developed its own technology to manage high volumes of SMS traffic. This rapid growth saw CM.com become the Netherlands' largest SMS buyer, with its technology branching out into new sectors like television and banking. Let’s take a closer look at this journey.

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