How to add a WhatsApp button to your website

Add a free WhatsApp chat button to your website: the exact wa.me link format, how to pre-fill a message, QR codes, Business app tips, and 6 mistakes.

Industry playbooksBy The Stackmane teamPublished 10 min read
Quick answerAdd a WhatsApp button by turning a link into a click-to-chat link: https://wa.me/<number>, where the number is your full phone number with the country code and no plus sign, zeros, brackets or dashes. Put that link on any button. To pre-fill a message, add ?text= and your URL-encoded text. It is free, takes minutes, and needs no plugin.

For a lot of small businesses, WhatsApp is where customers actually want to talk. It is faster than email, less formal than a phone call, and people already have it open. A WhatsApp button on your website turns a visitor into a chat in one tap, with no form to fill in and no waiting for a reply by email.

The good news is that adding one is simple and free. You do not need an app, a plugin subscription or any code beyond a single link. This guide shows you the official way to build the link, how to add it as a button, how to pre-fill a message, and the mistakes that quietly cost you chats.

How do you add a WhatsApp button to a website?

You add a WhatsApp button by turning a normal link into a "click to chat" link that opens WhatsApp with your number already loaded. The official format is https://wa.me/<number>, where the number is your full phone number in international format. Put that link on any button or image, and a tap opens a chat with you.

What is the link to open a WhatsApp chat?

Use https://wa.me/<number>, where <number> is your phone number with the country code and no plus sign, zeros, brackets or dashes. For example, a US number +1 (415) 555-0132 becomes https://wa.me/14155550132. To pre-fill a message, add ?text= and your URL-encoded text. This is WhatsApp's own click-to-chat format.

That single link is the whole mechanism. Everything else, the floating bubble, the "Chat on WhatsApp" button, the QR code, is just a different way of presenting the same link. Get the link right and the rest is styling.

A WhatsApp chat button on a small business website turns a visitor into a conversation in one tap
A click-to-chat link opens WhatsApp with your number ready, with no form to fill in.

Format the number in full international form: country code first, then the number, with no plus sign, no leading zeros, no brackets and no dashes. This is the part people get wrong, and a badly formatted number means the button opens an empty or broken chat.

Here is how the same number looks in each form, using WhatsApp's own rules:

Your numberWrong in a wa.me linkCorrect in a wa.me link
+1 (415) 555-0132 (US)+1-415-555-013214155550132
+44 7700 900123 (UK)+44 07700 900123447700900123
+971 50 123 4567 (UAE)050 123 4567971501234567
+91 98765 43210 (India)098765 43210919876543210

The rule in plain words: drop the plus sign, drop any zero you would dial locally before the number, and remove every space, bracket and dash. What is left is country code plus the rest of the number, as one string of digits. WhatsApp's click-to-chat help page shows the same format.

Tip

Test your link before you publish it. Paste https://wa.me/<yournumber> into a browser on your phone. If it opens a chat with your own business, the number is right. If it opens an empty "choose a contact" screen, the number is wrong, usually a stray plus sign or leading zero.

How do you pre-fill a message in the button?

You pre-fill a message by adding ?text= to the end of the link, followed by your message with spaces and punctuation URL-encoded. A pre-filled message gives the customer a head start and tells you which page they came from, which makes replies faster.

The format is:

https://wa.me/<number>?text=<your message>

Spaces become %20 and basic punctuation is encoded too. So a message like "Hi, I'd like to book a table" on a restaurant number becomes:

https://wa.me/14155550132?text=Hi%2C%20I%27d%20like%20to%20book%20a%20table

You do not have to encode it by hand. Most website editors and link tools do it for you; you just type the message. A few smart uses of the pre-filled text:

  • Name the page. On a services page, pre-fill "Hi, I'm interested in your [service] page." Now you know what the customer wants before they say a word.
  • Ask for the key detail. A tradesperson might pre-fill "Hi, I'd like a quote. My postcode is ___." The customer fills the blank and you can price faster.
  • Keep it editable. The pre-filled text is only a suggestion; the customer can change it before sending. Keep it short and friendly.

A good pre-filled message does the same job as a well-built contact form, only faster. Our contact page guide covers the wider picture of how people reach you.

Where should the WhatsApp button go on your site?

Put the button where people decide to get in touch: in your header or contact section, on your contact page, and often as a small floating button in the corner on mobile. The right spot is wherever a visitor thinks "I want to ask about this," which is usually near your prices, services or opening hours.

Common placements, and when each works:

PlacementBest forNotes
Header or top of the pageBusinesses that live on quick questionsAlways visible, sets the tone that you reply fast
Contact pageEvery businessPair it with your phone, email, map and hours
Floating button on mobileShops, salons, restaurants, tradesKeep it small so it does not cover content
Inside a specific service or product sectionEnquiry-led businessesPre-fill the message with that service's name

If you use a floating button, keep it light and unobtrusive. A heavy third-party chat widget can slow your pages down, and speed matters for both customers and search; our website speed test guide shows how to check. A plain link styled as a button has almost no weight at all.

WhatsApp or WhatsApp Business: which do you need?

Use the free WhatsApp Business app rather than the personal app for anything customer-facing. It gives you a business profile, saved quick replies, away messages and a product catalog, and it keeps work chats separate from your personal ones. The click-to-chat link works the same way with either, so you can switch without changing your website.

What WhatsApp Business adds over the personal app:

  • A business profile with your address, hours, website and a description.
  • Quick replies so you can answer common questions with a saved message instead of retyping.
  • Away and greeting messages that reply automatically when you cannot, so no one is left on read.
  • A catalog to show products or services with photos, descriptions and prices inside the chat. WhatsApp's own blog describes the catalog feature for small businesses.
  • Labels to organize chats, like "new enquiry" or "paid."

For most small businesses the free Business app is all you need. The paid WhatsApp Business Platform (the API) is for larger teams that want automation and multiple agents, and it is overkill for a one-person shop. If you want automated replies, our guides on WhatsApp chatbots and automating lead follow-up cover the options honestly.

WhatsApp Business adds a profile, quick replies and a catalog that work with the same website link
The free WhatsApp Business app adds a profile, quick replies and a catalog, with no change to your website link.

Should you use a QR code as well as a button?

Yes, a QR code is worth adding anywhere people see you in the real world. A QR code holds the same click-to-chat link, so a customer can scan it with their phone camera and start a chat without typing your number. It bridges your offline presence and your WhatsApp.

Good places for a WhatsApp QR code:

  • On the shop counter, window or table tents so walk-in customers can message you later.
  • On flyers, vans and business cards for trades and mobile services.
  • On packaging or receipts to invite questions, reviews or reorders.

You can generate a QR code for your wa.me link with any free QR tool, or use the QR code built into the WhatsApp Business app. Print it large enough to scan easily and test it with a couple of different phones first. It is the same idea as a review QR card, just pointed at a chat instead of a review form.

Treat WhatsApp chats like any other customer data: only message people who contacted you first, do not add customers to broadcast lists without permission, and keep a short note on your site about how you use their details. A click-to-chat button is customer-initiated, which is the safest footing, but marketing messages have rules.

A few sensible habits:

  • Reply, do not cold-message. When a customer taps your button, they started the conversation, so replying is fine. Sending unsolicited promotions is a different matter and is restricted in many countries.
  • Get consent for broadcasts. If you want to send offers or reminders, ask people to opt in first, the same as you would for email.
  • Mention it in your privacy notice. A line saying you use WhatsApp to answer enquiries and how you store the details is enough for most small businesses. This is not legal advice; check your local rules if you handle sensitive information.
  • Keep business and personal separate. The Business app helps here, and it protects your personal number.

Getting this right is part of looking trustworthy, the opposite of the website mistakes that make customers hesitate.

Does a WhatsApp button suit every business?

It suits most enquiry-led and local businesses, and it is especially strong where customers already prefer chat. In the UAE, India and South Africa, WhatsApp is often the default way people contact a business, so a button there is close to essential. In markets where customers expect a form or a call, offer WhatsApp alongside those, not instead of them.

Where a WhatsApp button shines:

  • Salons, barbers and clinics taking booking questions and rescheduling.
  • Restaurants and cafes handling reservations, catering and large orders.
  • Trades and home services sending quick quotes and photos of a job.
  • Shops and boutiques answering "is this in stock?" and arranging pickup.

Where to be careful: if you cannot reply reasonably quickly, a WhatsApp button can backfire, because people expect chat to be fast. Set an away message with your hours so no one feels ignored. And always offer a second way to reach you, like a phone number or form, for customers who do not use WhatsApp. Some customers still prefer to call or book online, and offering the choice wins more of them.

How do you make the button look like a button?

Make it look like a button by styling the link clearly: use the word "WhatsApp" or "Chat on WhatsApp," pair it with the familiar WhatsApp icon, and give it enough size and spacing to tap easily on a phone. People need to recognize it instantly, so lean on the colors and wording they already know from the app.

A few styling rules that help:

  • Use clear words. "Message us on WhatsApp" or "Chat on WhatsApp" tells people exactly what happens. Avoid a bare icon with no label, which some visitors will not recognize.
  • Make it tappable. On mobile, a button should be at least around 44 pixels tall so thumbs hit it first time. A tiny link is easy to miss.
  • Keep the official button honest. WhatsApp provides a "Chat on WhatsApp" button in its brand resources and asks that you use it unchanged and keep it readable; its brand and button guidance explains the idea of giving people simple ways to start a chat.
  • Do not bury it. If WhatsApp is a main way customers reach you, the button should be visible without scrolling on your contact section.

You do not need a heavy plugin to achieve any of this. A styled link, or a small amount of CSS on a button, does the job and keeps your pages fast. If your platform offers a built-in WhatsApp block, that is fine too, as long as it does not drag your load time down.

WhatsApp button mistakes that cost you chats

The most common mistakes are a wrongly formatted number, a slow or hidden button, and promising instant replies you cannot deliver. Each one quietly turns an interested visitor away, and each is easy to avoid once you know to look for it.

Watch out for these:

  • A broken number. A stray plus sign, a leading zero or a dash can open an empty chat. Always test the link on a real phone before publishing.
  • No away message. If someone messages at 9pm and hears nothing until morning with no acknowledgment, they may assume you are closed for good. A simple away message with your hours fixes this.
  • Only WhatsApp. Not everyone uses it. Always offer a phone number, email or form as well, so you do not lose the customers who prefer another channel.
  • A heavy chat widget. Some third-party WhatsApp widgets load a lot of code and slow your site. A plain link is lighter and does the same job.
  • Using your personal number. It mixes work and life and exposes your private contact. Use the free WhatsApp Business app instead.
  • Ignoring consent for marketing. Replying to an enquiry is fine; blasting offers to people who never opted in is not, and the rules are stricter in some countries than others.

Avoid those six and your button will do exactly what it should: start more conversations with the people already on your site.

Our verdict

A WhatsApp button is one of the cheapest, highest-return things you can add to a small business website. It costs nothing, takes minutes, and meets customers on the channel many of them already prefer. The whole trick is one correctly formatted wa.me link, optionally with a pre-filled message, placed where people decide to get in touch.

Use the free WhatsApp Business app for the profile, quick replies and away messages, add a QR code for the real-world spots where people see you, and keep a short privacy note about how you use chats. Offer it alongside a phone number or form, not as your only option, and set expectations with an away message if you cannot always reply fast.

If you are building or rebuilding your site, make sure a WhatsApp button is part of it from the start, next to your phone, map and hours. At Stackmane we build small business sites for $299 once with hosting included and can place a WhatsApp click-to-chat button where it converts best; we are a new studio with no reviews yet and take crypto only today, so weigh that against your needs. Whatever you build on, the link above works the same everywhere. You can see what is included before you decide.

Want a site with a WhatsApp button built in? Get a free preview first.

A custom website for your business, designed and built in 7 days. See a free preview first, then pay once. No monthly fees. Questions? Email support@stackmane.com.

Get my free preview

Frequently asked questions

What is the link to open a WhatsApp chat with my number?

Use https://wa.me/<number>, where the number is your phone number with the country code and no plus sign, zeros, brackets or dashes. For example, +1 (415) 555-0132 becomes https://wa.me/14155550132. Put that link on any button or image and a tap opens a chat with you. This is WhatsApp's own click-to-chat format.

How do I add a pre-filled message to the WhatsApp button?

Add ?text= to the end of the link, followed by your message with spaces encoded as %20. So https://wa.me/14155550132?text=Hi%2C%20I%27d%20like%20a%20quote opens a chat with that message ready to send. Most website editors encode the text for you, so you just type the message. The customer can edit it before sending.

Do I need WhatsApp Business or the normal app?

Use the free WhatsApp Business app for anything customer-facing. It adds a business profile, saved quick replies, automatic away and greeting messages, a product catalog and chat labels, and it keeps work separate from your personal chats. The click-to-chat link works the same with either app, so your website does not change.

Do I need a plugin to add a WhatsApp button?

No. A WhatsApp button is just a normal link using the wa.me format, styled as a button. You can add it with a plain link in any website editor. Heavy third-party chat widgets can slow your pages down, so a simple styled link is usually the better choice.

Why does my WhatsApp link open an empty chat?

Almost always a number-formatting problem. Remove the plus sign, any leading zero you would dial locally, and all spaces, brackets and dashes, leaving just the country code and number as one string of digits. Test the link on a real phone: if it opens a chat with your business, the number is correct.

Can I add a WhatsApp QR code too?

Yes. A QR code holds the same wa.me link, so customers can scan it with their phone camera and start a chat without typing your number. Put it on your counter, window, flyers, business cards, van or packaging. Generate it with any free QR tool or the one built into the WhatsApp Business app, and test it before printing.

Is it okay to send marketing messages on WhatsApp?

Replying to a customer who messaged you first is fine. Sending unsolicited promotions is restricted in many countries and needs consent, like email marketing. Ask people to opt in before sending offers or reminders, keep a short note in your privacy policy, and use the Business app to protect your personal number. This is not legal advice.

Sources

  1. WhatsApp: how to use click to chat, checked November 2026
  2. WhatsApp: catalogs for small businesses, checked November 2026
  3. WhatsApp: new ways to reach a business, checked November 2026
  4. WhatsApp Business app, checked November 2026
Related
Free preview

Want this done for you?

Tell us about your business. We design a preview of your new website and email you the link, usually within two days.

  • No card, no deposit
  • Changes until you’re happy
  • Pay $299 once, only if you love it
  • Live in 7 days, no monthly fees
Two businesses? Save 25% on both. Add a second business (yours or a friend’s) and each website costs $224 instead of $299.

Both get their own free preview. You pay only when both are approved: $448 together, or $224 each.