432

If I use tel: I should write the international phone code, like that.

<a href="tel:+6494461709">61709</a>

So far, so good, but I can't find information on how to write a cell phone number in an "international" way, if there is one.

7
  • 25
    Is there a difference? Jun 20, 2013 at 17:11
  • I dont know, if theres an "international" way to write down a cell phone number. Jun 20, 2013 at 17:12
  • 1
    celphone and landline numbers should work the same Jun 20, 2013 at 17:13
  • 5
    That means 0171 would be +49171 (for Germany)? Jun 20, 2013 at 17:14
  • 7
    According to this document, you are right. Drop the '0' (which is needed only when dialing from within Germany), add the '+' prefix and country code. Jun 20, 2013 at 17:17

5 Answers 5

439

When dialing a number within the country you are in, you still need to dial the national trunk number before the rest of the number. For example, in Australia one would dial:

   0 - trunk prefix
   2 - Area code for New South Wales
6555 - STD code for a specific telephone exchange
1234 - Telephone Exchange specific extension.

For a mobile phone this becomes

   0 -      trunk prefix
   4 -      Area code for a mobile telephone
1234 5678 - Mobile telephone number

Now, when I want to dial via the international trunk, you need to drop the trunk prefix and replace it with the international dialing prefix

   + -      Short hand for the country trunk number
  61 -      Country code for Australia
   4 -      Area code for a mobile telephone
1234 5678 - Mobile telephone number

This is why you often find that the first digit of a telephone number is dropped when dialling internationally, even when using international prefixing to dial within the same country.

So as per the trunk prefix for Germany drop the 0 and add the +49 for Germany's international calling code (for example) giving:

<a href="tel:+496170961709" class="Blondie">
    Call me, call me any, anytime
      <b>Call me (call me) I'll arrive</b>
        When you're ready we can share the wine!
</a>

8
  • 7
    Alternative: <a href="tel:00496170961709" class="Blondie"> Mar 14, 2016 at 3:21
  • 36
    @optimiertes, actually no. The trunk prefix is different for different countries, so 0 works in most, but not all.
    – user764357
    Mar 14, 2016 at 3:29
  • 1
    It's also good to note some important info @Tropicalrambler shared on his answer as well. Jan 14, 2019 at 10:09
  • 1
    > "when dialing a number within the country you are in, you still need to dial the national trunk number before the rest of the number." That is not true universally i.e.: in USA - you can just dial area code + exchange + number - (777) 555 - 3333, in some older area codes you can just dial exchange + number . In Russia, for landlines it's much the same. Within the same city, you often can get away with dialing just 5-6 last numbers ( depending on how old the infrastructure is) on landlines. ( Mobile phones are a different story)
    – konung
    Mar 6, 2019 at 20:43
  • 1
    I came here looking for a way to do 1300, 13, and 1800 numbers. Apparently the only way to do it (that works locally and internationally) is to suffix the href with ;phone-context=+61
    – Hashbrown
    Apr 1, 2020 at 7:01
75

I know the OP is asking about international country codes but for North America, you could use the following:

<a href="tel:+1-847-555-5555">1-847-555-5555</a>

<a href="tel:+18475555555">Click Here To Call Support 1-847-555-5555</a>

This might help you.

5
  • 34
    Only if your customers are only in North America.
    – BJury
    Nov 24, 2014 at 10:56
  • 7
    and not using international cell phones (I had a Japanese girl that had to dial the USA international code even when she was here)
    – BillyNair
    Jul 28, 2015 at 22:20
  • 12
    Canada and the US are +1 but Mexico is +52 (if you are planning as they are saying for North America (last time I looked at a map, Mexico was as well part of it) you will need also +52
    – Nelson
    Apr 6, 2016 at 23:07
  • 8
    I wonder why this answer got upvoted. It would be perfectly fine to have an answer that covers only US numbers, but there is no reason you would not add the simple "+" to make them work from everywhere! (tel:+1847... would work for calling a US number from anywhere in the world).
    – Ecuador
    May 4, 2017 at 13:42
  • 14
    Downvote, because the OP was explicitly asking about international links (which should be all links on the web anyways) and you're still posting an US-only solution. You know that there is way more then just the US on our planet? And as you could have seen from his profile OP isn't from US himself (but from Germany).
    – miho
    Jul 3, 2017 at 7:49
25

The BlackBerry browser and Safari for iOS (iPhone/iPod/iPad) automatically detect phone numbers and email addresses and convert them to links. If you don’t want this feature, you should use the following meta tags.

For Safari:

<meta name="format-detection" content="telephone=no">

For BlackBerry:

<meta http-equiv="x-rim-auto-match" content="none">

Source: mobilexweb.com

4
  • 28
    This information is about a different matter than the question being asked.
    – Forage
    Jan 13, 2015 at 14:44
  • 19
    This doesn't answer the question, but it would be good as a comment.
    – Luca
    Feb 25, 2016 at 15:09
  • It's relevant and comment would not be sufficient. Apr 15, 2020 at 0:13
  • Does it work for mobiles only? Will this tag convert phone numbers to link in non mobile env?
    – Stack
    Jul 23, 2021 at 8:18
22

As an additional note, you may also add markup language for pausing or waiting, I learned this from the iPhone iOS which allows numbers to be stored with extension numbers in the same line. A semi-colon establishes a wait, which will show as a next step upon calling the number. This helps to simplify the workflow of calling numbers with extensions in their board. You press the button shown on the bottom left of the iPhone screen when prompted, and the iPhone will dial it automatically.

<a href="tel:+50225079227;1">Call Now</a>

The pause is entered with a comma ",", allowing a short pause of time for each comma. Once the time has passed, the number after the comma will be dialed automatically

<a href="tel:+50225079227,1">Call Now, you will be automaticlaly transferred</a>
3
  • nice answer. Usually after extension number we somtimes need to press '#'. I tried <a href="tel:+50225079227;1#">Call Now</a> but somehow chrome is removing #. Any idea if it is supported to add # ?
    – Goro
    Jul 3, 2020 at 15:52
  • Maybe the solution involves escape characters of some sort? or unicode chars to express individual characters? Jul 8, 2020 at 23:04
  • 4
    @Goro try %23 instead of # if it still removes it Aug 28, 2020 at 15:06
5

It's the same. Your international format is already correct, and is recommended for use in all cases, where possible.

Not the answer you're looking for? Browse other questions tagged or ask your own question.