How to Make a Phone Number Clickable on Your Website

Learn how to make a phone number clickable on your website with tel: links, domestic and international formats, extensions, accessibility, and testing tips.

Published
Reading time
6 min read
How to Make a Phone Number Clickable on Your Website
On this page

Add a tel: link to let visitors tap a phone number on a mobile website and hand it to their device’s calling app. The link is simple HTML, but the number format and the device’s behavior matter. This guide shows domestic and international examples, explains extensions and accessibility, and gives you a practical way to check the result.

Key Takeaways

  • Put a tel: URI in an HTML link’s href attribute.
  • Use a full international number, beginning with + and the country code, when possible. Display it in a format people can read.
  • Use ;ext= for an extension, but check whether your visitors’ devices handle it as expected.
  • Give the link clear, descriptive text and test it on the devices your customers use.
  • A telephone link may open a calling app, prompt for an action, or behave differently on desktop; it does not guarantee a call will start.

Use an anchor element with a tel: URI as its destination:

<a href="tel:+12125550100">Call (212) 555-0100</a>

Here, the displayed number uses a familiar US domestic format, while the link uses the international form: +1 is the country code, followed by the area code and subscriber number. This approach makes the destination unambiguous for a wider range of devices and callers.

The tel: scheme identifies a telephone number URI. A device or installed application that can handle telephone links may offer to call the number. The browser itself does not place the call, and the visitor may need to confirm an action.

International number example

For a UK number, the domestic leading 0 is omitted after the country code in the international form:

<a href="tel:+442079460018">Call +44 20 7946 0018</a>

Check the correct international form of your business number before publishing it. Country codes and national dialing rules vary; do not simply add a country code to a number without checking how that number should be written internationally.

Advertisement

The text a visitor sees and the value in href serve different purposes. Format the visible number for readability, but keep the URI free of spaces:

<a href="tel:+14155550100">Call us at (415) 555-0100</a>

A link can also be useful in a contact card or footer. If there are several numbers, make each link’s purpose clear:

<p>Sales: <a href="tel:+14155550100">Call Sales at (415) 555-0100</a></p>
<p>Support: <a href="tel:+14155550101">Call Support at (415) 555-0101</a></p>

Avoid putting spaces or decorative punctuation into the href value. The URI syntax defined for telephone links allows certain visual separators, but using a compact form with + and digits is easier to inspect and less likely to be miscopied. Keep punctuation in the visible text instead.

Include an extension

The telephone URI format defines ;ext= for an extension. For example:

<a href="tel:+14155550100;ext=204">Call (415) 555-0100, extension 204</a>

Support for extensions can differ between devices and calling applications. Some may pass the extension along; others may not handle it as expected. If the extension is important, make it visible in the link text and provide a fallback instruction, such as “If prompted, enter extension 204.” Test the exact link on devices used by your customers.

For a local number without a country code, the tel: URI standard defines a phone-context parameter to identify its dialing context. In practice, using a verified full international number is often simpler for a public business website. Do not assume an unqualified local number will work everywhere.

Use an actual <a> element, not a styled <span> or a button that has no call behavior. Give the link text enough context to make its destination clear when read on its own or encountered in a list of links.

Good:

<a href="tel:+12125550100">Call our New York office at (212) 555-0100</a>

Less helpful when repeated on a page:

<a href="tel:+12125550100">Click here</a>

If the visible number is already clear, it can be the link text. For a business with multiple departments or locations, include the relevant label as well. Do not rely on color alone to show that text is clickable; maintain a visible link style and check that the link can be focused and activated with a keyboard.

Test on mobile and desktop

I did not test these examples on physical mobile devices. Behavior depends on the operating system, browser, and installed calling applications, so verify your published link in the environments your audience uses.

  1. Open the page on a phone and tap the number. Confirm that the intended number appears in the calling interface before taking any action.
  2. Check that the displayed number and the number offered by the device match, including the country code and extension if present.
  3. Try the link on both major mobile platforms used by your customers, if possible.
  4. Open it on a desktop computer. It may open a calling application, show a prompt, do nothing, or be handled by a configured service.
  5. If your site offers another contact method, such as a contact form or email address, keep it available for visitors whose devices cannot handle telephone links.

A desktop result that differs from a phone is not necessarily an error: desktop computers may have no calling application configured. Do not tell visitors that clicking the link will always place a call.

Advertisement

Common Mistakes

  • Leaving off the country code: A number that works for nearby callers may be ambiguous or unusable for international visitors. Use a verified international form where practical.
  • Putting the formatted display text in the URI: Keep spaces and readability-focused formatting in the link text; use a clean telephone URI in href.
  • Assuming extensions work everywhere: Keep the extension visible and offer instructions for entering it if the device does not pass it through.
  • Using vague link text: “Click here” does not explain which number or department the link reaches.
  • Treating a tap as a completed call: The device may ask the visitor to confirm or may not have an application that can handle the link.
  • Skipping real-device checks: A link that looks correct in the page source has not necessarily been tested in the target calling workflow.

Best Practices

  • Store and publish a verified international number for the href when appropriate; present it in a readable local or international format on the page.
  • Use descriptive anchor text and preserve a visible focus indicator for keyboard users.
  • Test the number, country code, and extension on representative devices before relying on the link as a primary contact route.
  • Keep another contact option available, especially for desktop visitors.
  • Use tel: links only for telephone numbers. For email addresses, use the appropriate email link scheme instead.

Conclusion

A tap-to-call link is an ordinary HTML anchor whose href begins with tel:. Use a correct number format, make the link text understandable, and test how it behaves on mobile and desktop. That gives visitors a convenient way to contact your business without assuming every device handles calls the same way.

References

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.