How to add a WhatsApp button to your website (with a pre-filled message)

UPWRD Studio · Updated 30 October 2026 · 5 min read

Short answer

Use a WhatsApp click-to-chat link: https://wa.me/ followed by your full number in international format, with no plus sign, spaces, dashes or leading zero. For a Malaysian number like 012-345 6789, that’s https://wa.me/60123456789. To pre-fill the message, add ?text= followed by your message, with spaces written as %20. Link a button to it near the top of every page, and test it on your phone before you publish.

Step 1: write your number the right way

WhatsApp asks for your full number in international format, leaving out any zeroes, brackets or dashes. For Malaysia, that means 60 followed by your number without its first 0.

Swipe to see all columns →

Your numberAfter wa.me/
012-345 678960123456789
011-2345 6789601123456789
+60 17-618 272460176182724

The number must have an active WhatsApp account. A landline only works if you’ve set it up on the WhatsApp Business app.

Step 2: pre-fill the message

A pre-filled message appears in the customer’s text box as soon as the chat opens, so all they have to do is tap send. It saves them working out what to say, and it tells you straight away what they want. Leave blanks for the details only they know:

Swipe to see all columns →

BusinessPre-filled message
Café: table bookingHi! I’d like to book a table for __ people on __ at __.
Bakery: pre-orderHi! I’d like to pre-order: __. Pickup on __ at __.
Salon or spaHi! I’d like to book a __ treatment. Are you free on __?
ServicesHi! I’d like a quote for __. My budget is around RM __.

Example: https://wa.me/60123456789?text=Hi!%20I%27d%20like%20to%20book%20a%20table

In the link, spaces become %20, and symbols like & ? # must be encoded too, or the message gets cut off. Most website builders’ WhatsApp buttons do this for you. If yours doesn’t, search for a free “URL encoder”, paste the message in and copy the result after ?text=.

Step 3: put the button where people need it

  • Near the top of your homepage, so nobody has to scroll to find it.
  • As a small floating button on mobile, in a bottom corner where it doesn’t cover your content.
  • Next to your menu, price list or each service, with its own message (“Hi, I’m asking about the Signature Facial”). You’ll see straight away which page the enquiry came from.
  • On your contact page, next to your address and hours.

In WordPress, Wix, Shopify or most other builders, add a button and paste your wa.me link as its link address.

Using the WhatsApp Business app? You already have a short link

The free WhatsApp Business app creates a short link and a QR code for your business automatically. You’ll find them under Tools → Short link, where you can also turn on a default message. The QR code is handy for your counter, tables, flyers and packaging.

Test it before you publish

  • Tap it on an iPhone and an Android phone: the chat should open with your message already typed.
  • Click it on a computer: it should open WhatsApp Web or the desktop app.
  • Check the whole message arrives. If it stops early, a symbol wasn’t encoded.
  • Make sure the number belongs to someone who replies quickly — and set up a greeting and away message in WhatsApp Business for after hours.

Common mistakes

  • Adding the +, a leading 0 or dashes to the number, which breaks the link.
  • A “WhatsApp us” button with no message, so customers land in an empty chat and don’t know what to say.
  • Only putting the button in the footer.
  • Using a staff member’s personal number. When they leave, your enquiries leave with them.

Frequently asked questions

Do I need the WhatsApp Business app for this?
No. A click-to-chat link works with any WhatsApp number. The free Business app adds useful extras, though: a business profile, greeting and away messages, quick replies and a ready-made short link and QR code.
Can customers change the pre-filled message?
Yes. The message just appears in their text box, and they can edit it or add to it before sending.
Does the link work on a computer?
Yes. WhatsApp says click to chat works on phones and on WhatsApp Web.
Can I see how many people tapped the button?
The link doesn’t come with its own statistics. Your website analytics can count clicks on the button, and giving each page’s button a different message shows you where each enquiry started.

Sources

Need a hand?

Get a free check of your website or Instagram — honest advice, no obligation.