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.
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.
How to make a wa.me link, step by step
- Start with the full number, including the country code. Example:
+44 07700 900123for a UK mobile. - Delete the
+, spaces, brackets, and dashes:4407700900123. - Delete the trunk prefix, the
0that many countries put in front of a number when you dial it inside the country. For the UK example this gives447700900123. - Put
https://wa.me/in front:https://wa.me/447700900123. - 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:
| Character | Encoded |
|---|---|
| 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.
A link with a message but no number
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.
What the person who taps the link sees
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.
Where to use a click-to-chat link
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 &. 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.
Common mistakes that break a wa.me link
- Leaving the
+in.https://wa.me/+14155550123may work in some cases, but the documented format is digits only. Remove it. - Keeping the trunk zero.
https://wa.me/4407700900123is wrong. The UK0goes when you add44. - Using
00instead of the country code.00is the international dialing prefix in many countries. It is not part of the number.https://wa.me/00447700900123fails. - Doubling the country code. If the number already starts with
44, do not add another44. - No country code at all.
https://wa.me/7700900123points 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%20is safer. - Spaces or dashes in the number.
https://wa.me/1-415-555-0123breaks. 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
Is a wa.me link free?
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.
Can I see who clicked my WhatsApp 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.
Why does my link say the phone number is invalid?
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.