Updated on November 10, 2026
To create a WhatsApp link with a pre-filled message, use the format https://wa.me/NUMBER?text=MESSAGE, with the number in full international format, digits only, and the message URL-encoded. Example: https://wa.me/15551234567?text=Hi%2C%20I%27d%20like%20a%20quote. When someone taps the link, WhatsApp opens a chat with your number and the text already appears in the message field.
This guide covers the official link rules, how to encode accents, emojis and line breaks, the most common mistakes, and when to switch from a hand-built link to an official Meta short link.
The official wa.me link format
WhatsApp’s Help Center calls this feature click to chat. The link comes in three forms, according to How to use click to chat:
| Use | Format |
|---|---|
| Just open the chat | https://wa.me/<number> |
| Open the chat with a pre-filled message | https://wa.me/<number>?text=<encoded message> |
| Pre-filled message without a number (the user picks the contact) | https://wa.me/?text=<encoded message> |
Rules for the number:
- Full international format: country code + area code + number. In the US,
1+ area code + number, such as15551234567. In Brazil,55+ area code (DDD) + number, such as5511999999999. - Digits only: the Help Center says to omit zeros, brackets and dashes. The page’s own example of an incorrect format includes a
+sign, leading zeros, brackets and a dash. - No trunk or international dialing prefixes: leave out
0,00or011that you would dial from a phone.
The Help Center says the pre-filled message automatically appears in the chat’s text field, and click to chat works on both phones and WhatsApp Web.
Step by step
- Write the number as digits only.
(555) 123-4567becomes5551234567. - Add the country code in front.
15551234567. - Write the message. Short and specific: “Hi, I found you on your website and I’d like a quote”.
- URL-encode the message. A space becomes
%20, a comma becomes%2C,ébecomes%C3%A9. - Put it together:
https://wa.me/15551234567?text=+ encoded message. - Test it on a phone and on a computer before publishing.
If you would rather not encode by hand, Vectalk’s free WhatsApp link generator builds the wa.me link from the country code, number and message, handles the encoding and also creates a QR code. It runs in the browser.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
URL encoding: accents, emojis and line breaks
The Help Center asks for a “URL-encoded” message. In practice, every character that is not an unaccented letter, a digit or one of a few safe symbols has to become a %XX sequence in UTF-8. The ones you will meet most:
| Character | Encoded | Note |
|---|---|---|
| Space | %20 | The most common |
é, ñ, ç, ã | %C3%A9, %C3%B1, %C3%A7, %C3%A3 | Two bytes each |
| Line break | %0A | Lets the message span several lines |
, | %2C | Comma |
? | %3F | Unencoded, it can confuse URL parsing |
& | %26 | Unencoded, it cuts the message |
# | %23 | Unencoded, everything after it disappears |
+ | %2B | Unencoded, it may turn into a space |
| 😀 | %F0%9F%98%80 | Emojis become 4 bytes |
The three that break links most often are &, # and +. The & separates URL parameters, so “Salt & Pepper” without encoding becomes just “Salt “. The # marks the start of a fragment, and the browser does not send what comes after it. The + may be read as a space.
How to encode in code
In JavaScript, use encodeURIComponent, which encodes everything it needs to, including &, #, + and emojis:
function whatsappLink(number, message) {
const digits = number.replace(/\D/g, ''); // strip +, spaces, brackets and dashes
const text = encodeURIComponent(message);
return `https://wa.me/${digits}?text=${text}`;
}
whatsappLink('+1 (555) 123-4567', 'Hi! Tell me about the Pro plan 🚀\nOrder #123');
// https://wa.me/15551234567?text=Hi!%20Tell%20me%20about%20the%20Pro%20plan%20%F0%9F%9A%80%0AOrder%20%23123
In Python, urllib.parse.quote with safe="":
from urllib.parse import quote
import re
def whatsapp_link(number: str, message: str) -> str:
digits = re.sub(r"\D", "", number)
return f"https://wa.me/{digits}?text={quote(message, safe='')}"
Avoid encodeURI (without “Component”) in JavaScript: it does not encode &, # or +, which are exactly the characters that break the link.
Common mistakes and how to fix them
| Symptom | Likely cause | Fix |
|---|---|---|
| WhatsApp says the number in the link is invalid | Number with +, a leading zero, spaces or no country code | Digits only, starting with the country code |
| Chat opens without the message | Misspelled parameter (?msg=, ?message=) or missing ? | Use exactly ?text= |
| Message cut off halfway | Unencoded & or # | Encode with encodeURIComponent |
| Accents turn into odd symbols | Text encoded in something other than UTF-8 | Encode in UTF-8 |
| Emoji shows up broken | Encoding done in pieces or cut in the middle of an emoji | Encode the whole text at once, from the original |
| Link opens the wrong chat | Someone else’s number or a wrong area code | Test on a phone that does not have the contact saved |
| Link breaks on Instagram or in email | The app or editor changed the URL | Use the already-encoded link and test it in the final channel |
One more thing: the link opens a chat with the number you set, so that number needs an active WhatsApp account. If the number runs on the official API, the message the customer sends reaches your system like any other inbound message.
Best practices for the pre-filled message
- Be specific. “I’d like a quote for installation” helps your team more than “Hi”.
- Identify the source. One link per channel, each with its own text: “Found you on Instagram”, “Found you on your website”. Whoever answers knows where the customer came from.
- Use a short code when you need to measure. Something like “I want coupon BF26” makes it easy to count conversations per campaign in your system.
- Keep the text short. The customer can edit the message before sending, and long text tends to get deleted.
- Do not put personal data in the link. Anything in the URL can end up in browser history, logs and analytics tools.
For Click-to-WhatsApp ads, Meta offers its own tracking, separate from the wa.me link. Our article on tracking Click-to-WhatsApp ads explains the difference. For the alternative api.whatsapp.com/send format, see api.whatsapp.com vs wa.me, and for shortening links, see the article on WhatsApp link shorteners.
Hand-built link or official Meta short link
Besides wa.me/<number>, Meta offers short links with a pre-filled message, in the format https://wa.me/message/<code>, created through the QR Codes API or Business Manager. According to the QR codes and short links page:
- Each business phone number can have up to 2,000 QR codes and short links.
- The pre-filled message can be up to 140 characters.
- There are no analytics for these QR codes and short links, to protect user privacy.
| Hand-built wa.me link | Short link wa.me/message/ | |
|---|---|---|
| Who creates it | Anyone, no API needed | The business, through the API or Business Manager |
| Shows the number in the URL | Yes | No |
| Message | Encoded in the URL itself | Stored by Meta, up to 140 characters |
| QR code | Made with a separate tool | The API returns the image as SVG or PNG |
| Meta analytics | No | No |
For printed QR codes, the article on WhatsApp QR codes for business compares the options in detail.
How to do it with Vectalk
The wa.me link does not depend on any API: you can use it with any WhatsApp number. If your number is on the official WhatsApp API through Vectalk, messages that arrive through the link reach the webhook configured in the dashboard, in Meta’s format.
To create official short links, Vectalk exposes Meta’s QR code endpoints: create QR code takes prefilled_message and generate_qr_image (PNG or SVG) and returns a deep_link_url in the https://wa.me/message/<code> format plus a qr_image_url. The call requires an instance token. With coexistence, the number also keeps working in the WhatsApp Business app.
For simple links, use the WhatsApp link generator. For the API, create an account at apps.vectalk.com.br/register.
Frequently asked questions
Do I need the + in a wa.me link?
No. WhatsApp’s Help Center asks for the full international number without zeros, brackets and dashes, and its example of an incorrect format includes the +. Use digits only: 15551234567.
How do I add a line break to the pre-filled message?
Use %0A where you want the break. If you build the link with encodeURIComponent or quote, line breaks are converted automatically.
Does a pre-filled link send the message on its own?
No. According to the Help Center, the message appears in the chat’s text field. The person decides whether to send it and can edit it first.
Can I see how many people clicked the link?
WhatsApp does not provide click counts for wa.me links, and Meta says there are no analytics for its official short links and QR codes. To measure, use a different source text in each link and count incoming conversations in your system.
Can I create a link without a number?
Yes. https://wa.me/?text=<message> opens the contact list so the person can choose who to send it to. It is handy for “share on WhatsApp” buttons.
Official sources consulted on November 10, 2026: WhatsApp Help Center: how to use click to chat, QR codes and short links, Vectalk: create QR code.
Put your business on the official WhatsApp
Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.
