Tel link generator for click-to-call
Turn a phone number into a link that starts a call when someone taps it on a phone. Type the number as you would dial it at home and choose the country: the generator writes it in full international form, the way the tel: standard asks, drops the leading 0 where it should and adds an extension. Copy the link as HTML, a button or a WordPress Buttons block.
- International E.164 numbers
- Extensions
- HTML, button and WordPress block
Free, no sign-up. Everything stays in your browser.
Nothing you enter leaves your browser.
This tool runs in your browser and needs JavaScript. Turn JavaScript on and reload the page.
Mailto link generator
Preview and code
The link
HTML link
Button HTML for pages and emails
Inline styles only, so it works in an email signature or newsletter as well as on a page.
WordPress Buttons block
Paste it into the block editor, or into the Code editor (Options, then Code editor). The block keeps the address readable in the page’s HTML; use the shortcode to hide it.
WordPress shortcode with antispambot()
Paste it into your child theme's functions.php or a code snippets plugin, then put the shortcode in any post, page or Shortcode block.
Markdown link
Spam protection, honestly
An email address on a public page will be found by spam bots sooner or later. These options make it harder for the simplest ones, and none of them stops all harvesters.
HTML character references
Each character of the link is written as a code, such as @ for @. Browsers turn the codes back into the address, so the link works as normal. Bots that read the page's raw HTML see only codes, but many harvesters decode them, so this helps a little at best.
WordPress antispambot()
WordPress's own antispambot() function swaps random characters of the address for codes each time the page is made, so the address looks different on every visit. The shortcode above uses it. It beats simple pattern matching, not a bot that reads the page the way a browser does.
WordPress developer reference: antispambot() (opens in a new tab)
A contact form instead
A contact form keeps your address off the page completely, and works for visitors who have no email app set up. With a form plugin, add spam protection such as a CAPTCHA or a honeypot field. Many sites offer both: a form, and a mailto link for people who prefer their own email.
This generator does not write JavaScript that puts the address together in the browser. Such snippets are usually inline scripts, which a strict Content Security Policy blocks, and bots that run JavaScript read the finished address anyway.
How a mailto link is written
The rules are in RFC 6068. The addresses come straight after mailto:, separated by commas. The other fields follow a ?, joined with &. Characters that have a meaning in a link are written as a % and two hex digits.
| You type | In the link | Why |
|---|---|---|
| A space | %20 | Never a +, which some apps would keep as a plus sign. |
| A line break in the message | %0D%0A | The line break email uses, as RFC 6068 requires. |
+ | %2B | So no app reads it as a space, in name+tag@example.com too. |
& ? # = ; | %26 %3F %23 %3D %3B | They separate the parts of a link. |
% | %25 | It starts every code. |
| é, ü, 漢字 and emoji | %C3%A9 and so on | UTF-8 bytes, each written as a code. |
| An international domain | xn-- form | The form every email app understands. |
Email apps decide for themselves what to do with a link. RFC 6068 only expects them to understand the subject and the message, so test Cc and Bcc in the apps your visitors use. Very long links can be cut off, and an app may add a line break at the end of the message. Sources: RFC 6068, The 'mailto' URI Scheme (opens in a new tab).
Preview and code
The link
HTML link
Button HTML for pages and emails
Inline styles only, so it works in an email signature as well as on a page.
WordPress Buttons block
Paste it into the block editor, or into the Code editor (Options, then Code editor).
How a phone link works
A tel: link opens the phone app on a phone, ready to call. On a computer it opens an app that can make calls, if one is set up, or does nothing. The rules are in RFC 3966: the number in full international form, a + then the country code and the number without its leading 0, written with digits only, and ;ext= for an extension.
| Number at home | Link |
|---|---|
| UK: 020 7946 0000 | tel:+442079460000 |
| Australia: (02) 9876 5432 | tel:+61298765432 |
| US: (201) 555-0123, ext. 45 | tel:+12015550123;ext=45 |
| Italy: 06 1234 5678 | tel:+390612345678 (Italian numbers keep the 0) |
An international number has at most 15 digits, country code included (ITU-T E.164). Show the number in the link text too, so people on a computer can read it and dial it themselves. Source: RFC 3966, The tel URI for Telephone Numbers (opens in a new tab).
Preview and code
The link
HTML link
Button HTML for pages and emails
Inline styles only, so it works in an email as well as on a page.
WordPress Buttons block
Paste it into the block editor, or into the Code editor (Options, then Code editor).
Will the message be filled in?
An sms: link opens the messages app with the number filled in. The standard, RFC 5724, writes the message after ?body=, with several numbers separated by commas, and that is what this generator writes. Whether the message appears is up to the phone:
- Apple's reference for
sms:links describes only the number, and says the link must not include message text. It is in Apple's documentation archive, which is no longer updated, and Apple publishes nothing newer about these links. - Google does not document
sms:links from web pages for Android. - So test the link on an iPhone and an Android phone. Apple documents links with just the number, so that is the part to rely on.
You may see links written sms:number&body= or sms:number;body= for older iPhones. No standard defines those forms, so this generator does not write them. On a computer, an sms: link only does something if an app there handles text messages. Sources: RFC 5724, The sms URI scheme (opens in a new tab) and Apple URL Scheme Reference: SMS links (opens in a new tab).
The length counter follows the GSM rules phones use: 160 characters fit one text, or 70 when the message has an emoji or a character outside the GSM alphabet, and longer messages are sent in parts. The phone that sends it has the final say.
What you get
-
The full international number, from the way you dial it at home
-
A leading 0 or (0) dropped, with Italian numbers kept as they are
-
An extension written as ;ext=, and shown in the link text
-
A live preview and a button to test the call
-
HTML link and a button with inline styles, in your colours
-
A WordPress Buttons block to paste into the editor
How to make a click-to-call link
-
Enter the number
Choose the country and type the number as you would dial it at home, or type it in full starting with +. Add an extension if callers need one.
-
Check the international number
The generator shows the number in international form and explains anything it changed, such as a dropped leading 0.
-
Copy the link or button
Tap Call this number on a phone to test it, then copy the HTML, the button or the WordPress block into your site.
Why a phone link needs the international number
A tel: link should work wherever the visitor is, so RFC 3966, the tel: standard, asks for the number in global form: a + and the country code, then the number without the 0 you dial at home. A local number such as 02 9876 5432 only works inside its own country, and from a phone roaming abroad it can fail. The generator writes digits only in the link, since spaces and brackets are only there for people to read, and puts the readable number in the link text.
On a computer
A phone link starts a call on a phone. On a computer it opens an app that can make calls, if one is set up, or does nothing at all. Showing the number in the link text means people on a computer can still read it and dial it.
Frequently asked questions
What is a tel link?
A link that starts a phone call instead of opening a page. It starts with tel: and the number, such as tel:+442079460000. On a phone, tapping it opens the phone app with the number ready to call.
What format should the number be in?
Full international form: a +, the country code and the number without its leading 0, written with digits only. 020 7946 0000 in the UK becomes tel:+442079460000. The generator does this for you from the number as you dial it at home.
Do I drop the leading 0?
In most countries, yes: the 0 is only dialled inside the country. Italy is the main exception, where landline numbers keep the 0 after +39. The generator handles Italy, and has a Keep the leading 0 option for any other country that keeps it.
Can a tel link dial an extension?
The standard writes an extension as ;ext= after the number, and the generator adds it. Not every phone dials it, though, so the extension is also shown in the link text for callers to dial themselves.
Do phone links work on computers?
Only when the computer has an app that can make calls and is set to open phone links, such as a calling app linked to your phone. Otherwise nothing happens, so always show the number itself as well.
How do I add a phone link in WordPress?
In the block editor, select the text, press the link button and type the full link starting with tel:. For a button, copy the WordPress Buttons block from this tool and paste it into the editor.
Is anything I type sent anywhere?
No. The links and code are made in your browser, and nothing you type is sent to this site or anywhere else. To count how the tool is used, this site is told only that a link was made or copied, never what it contains.
Related tools
-
Email signature generator
New (added recently)Make an HTML email signature that works in Outlook, Gmail and Apple Mail, with a desktop, mobile and dark mode preview.
-
Email DNS
New (added recently)Build and test MX, SPF, DKIM, DMARC, MTA-STS and BIMI records, with the exact values for Google Workspace, Microsoft 365 and over 25 email services.
-
Social share preview
New (added recently)See how a link to your page will look on Facebook, X, LinkedIn, Slack, Discord, WhatsApp and Messages, check each tag and image, and generate the tags.
-
Colour contrast checker
New (added recently)Check the contrast of text and background colours against WCAG 2.2 AA and AAA, with suggested passing colours and a palette checker.