Skip to content
ProgrammerCat

WhatsApp Click to Chat: How to Create a wa.me Link

Build a WhatsApp click-to-chat link with https://wa.me/ plus your full number, add a pre-filled message with ?text=, and avoid the country code mistakes.

By ProgrammerCat Published 6 min read
In this article

A WhatsApp click-to-chat link is https://wa.me/ followed by a phone number in full international format, with only digits: no +, spaces, dashes, brackets, or leading zero. For a US number (415) 555-0123 the link is https://wa.me/14155550123. Anyone who taps it gets a WhatsApp chat with that number, without saving it as a contact first.

You can add a ready-made message with ?text=, put the link on a website or in a bio, or turn it into a QR code. The rest of this guide shows how, and how to avoid the mistakes that make the link fail.

  1. Start with the full number, including the country code. Example: +44 07700 900123 for a UK mobile.
  2. Delete the +, spaces, brackets, and dashes: 4407700900123.
  3. Delete the trunk prefix, the 0 that many countries put in front of a number when you dial it inside the country. For the UK example this gives 447700900123.
  4. Put https://wa.me/ in front: https://wa.me/447700900123.
  5. Open the link on your own phone to test it before you share it.

The number in the link is the person people will chat with. To make a link to yourself, use your own number.

If you are not sure about step 3 for a country, our guide on how to format an international phone number for WhatsApp has examples for the US, India, Mexico, Brazil, Nigeria, Indonesia, and the Philippines.

How to add a pre-filled message with ?text=

Add ?text= after the number, then the message, URL-encoded. URL encoding replaces characters that have a special meaning in a link with a % code.

https://wa.me/14155550123?text=Hi%2C%20I%20saw%20your%20listing.%20Is%20it%20still%20available%3F

When someone opens this link, WhatsApp puts “Hi, I saw your listing. Is it still available?” in the message box.

The characters you will need most often:

CharacterEncoded
space%20
new line%0A
,%2C
?%3F
&%26
#%23
/%2F

The & and # matter most. An unencoded & starts a new parameter, and an unencoded # starts a fragment, so everything after either one is cut from your message. Letters from other alphabets and emoji also need encoding. You do not have to do it by hand: in a browser console, encodeURIComponent("your message") returns the encoded text, and most link and QR generators do it for you.

https://wa.me/?text=Check%20out%20this%20recipe opens WhatsApp with the message ready and asks the user to pick who to send it to. Use this for a “share on WhatsApp” button, where you do not know the recipient.

On a phone with WhatsApp installed, the link opens WhatsApp straight to a chat with the number. On some browsers and on desktop, a WhatsApp web page appears first with a button to continue to the chat. The exact page and button text change from time to time.

The pre-filled text sits in the message box. It is not sent. The person can edit it or delete it, and nothing reaches you until they tap send. You do not get a notification when someone only opens the link.

If the number is not registered on WhatsApp, the person sees an error that the phone number shared via the link is invalid. Check the number format before you assume anything else is wrong.

On a website

Use the link in a normal anchor tag:

<a href="https://wa.me/14155550123?text=Hi%2C%20I%20have%20a%20question">Chat on WhatsApp</a>

Inside HTML, write any & between parameters as &amp;. You only need that if you add more than one parameter.

In an Instagram, TikTok, or other bio

Paste the plain https://wa.me/... link into the website field. Keep the pre-filled message short, because a long encoded message makes an ugly link. Most bio fields accept the full link.

On a QR code

Put the full link, message included, into any QR code generator. Print it on a menu, a flyer, or a shop window. Scan the printed code with your own phone before you print a large batch. WhatsApp Business also has its own short links and QR codes in its settings, which you can use instead of building one by hand. Where the option sits depends on your app version.

  • Leaving the + in. https://wa.me/+14155550123 may work in some cases, but the documented format is digits only. Remove it.
  • Keeping the trunk zero. https://wa.me/4407700900123 is wrong. The UK 0 goes when you add 44.
  • Using 00 instead of the country code. 00 is the international dialing prefix in many countries. It is not part of the number. https://wa.me/00447700900123 fails.
  • Doubling the country code. If the number already starts with 44, do not add another 44.
  • No country code at all. https://wa.me/7700900123 points to a different country or to nothing.
  • Unencoded text. A & or # in the message cuts it short. A space usually works in modern browsers, but %20 is safer.
  • Spaces or dashes in the number. https://wa.me/1-415-555-0123 breaks. Digits only.

The api.whatsapp.com/send variant

https://api.whatsapp.com/send?phone=14155550123&text=Hello does the same job as https://wa.me/14155550123?text=Hello. The number goes in the phone parameter instead of the path, and the two parameters are joined with &. Many older guides and website plugins use this form, and it still opens the same chat. Use wa.me for anything people will see or type, because it is shorter. Use whichever your tool needs for anything else.

When you only want to message a number once

A wa.me link is perfect for a business card or a website. If you only want to message a delivery driver or a seller once, building the link in a browser every time gets tedious. Our guide on sending a WhatsApp message without saving the number covers the other options. Unknown Messenger does the link step for you: you pick the country, type or paste the number, optionally write a message, and it opens the chat in WhatsApp or WhatsApp Business.

FAQ

Yes. Click-to-chat is a free WhatsApp feature. It works with personal and Business accounts, and you do not need to sign up for anything.

Does the person need to have my number saved?

No. Neither side needs to save the other as a contact. The chat opens directly from the link.

Not from WhatsApp. You only see a chat when someone sends a message. To count clicks, you would need a separate link-tracking service in front of the wa.me link.

Either the number is not on WhatsApp, or the format is wrong. Check for a missing country code, a leftover trunk 0, a 00 prefix, or a doubled country code.

Can I put a line break in the pre-filled message?

Yes. Use %0A where you want the new line, for example ?text=Hi%0AOrder%20number%3A%2012.

This article is independent and not affiliated with WhatsApp or Meta.

More articles

Unknown Messenger

International Phone Number Format for WhatsApp

Write a number for WhatsApp as country code plus national number, without the leading trunk zero. Examples for the US, India, Mexico, Brazil and more.

Unknown Messenger

How to Message Yourself on WhatsApp

Open WhatsApp's built-in Message yourself chat in a few taps, pin it, and use it for notes, links, and files. Plus the wa.me link to your own number.