How to create a QR code for WhatsApp

A click-to-chat code for your business number, with the country-code rules that decide whether it works or fails.

Updated 5 December 2026 · 7 min read

A WhatsApp QR code opens a chat with your number, ready to type in. It is one of the highest-converting codes a small business can print — provided the number is formatted correctly. Here is exactly how the link works.

How the wa.me link is built

WhatsApp's click-to-chat feature uses a plain web address:

https://wa.me/919876543210?text=Hi%2C%20I%27d%20like%20to%20order

The number after wa.me/ is the full international number with no plus sign, no spaces, no brackets and no leading zero. For a UK number written 07700 900123, the link uses 447700900123: the leading 0 is dropped and the country code 44 takes its place. For an Indian number 098765 43210, it becomes 919876543210.

The optional text parameter is URL-encoded, so spaces become %20 and punctuation is escaped. The generator handles that encoding for you.

Create the code in four steps

  1. Open the QR code generator and choose WhatsApp.
  2. Enter the country code as digits only — 91 for India, 1 for the USA and Canada, 44 for the UK, 61 for Australia, 49 for Germany.
  3. Enter the phone number without the country code and without a leading zero.
  4. Add an optional greeting, then download and test by scanning with a phone that has WhatsApp installed.

Using the pre-filled message

A pre-filled message removes the blank-page problem. Instead of opening an empty chat, the customer sees a draft they can send or edit. Good examples:

  • "Hi, I'd like to book a table for tonight."
  • "Hello! I'm interested in the 2-bedroom flat on your website."
  • "Hi, I have a question about order #1234."

Keep it short, write it as the customer would say it, and never make it sound like a marketing broadcast. The message is a starting point, not a script — the customer can delete every word before sending, so nothing here is binding.

The four errors that break it

1. A leading zero

wa.me/09876543210 does not resolve to a real account. Strip the trunk zero and add the country code.

2. A missing country code

A ten-digit number on its own will be interpreted as an international number starting with those digits, and will open a chat with a stranger — or with nobody. Always include the country code.

3. A landline number

WhatsApp only works on numbers registered with WhatsApp. A landline will produce a link that opens the app and then fails. Check the number on WhatsApp before you print a thousand cards.

4. Spaces, dashes and brackets

Some scanners cope, some do not. The generator strips everything except digits, which is the safest behaviour — but it also means a mistyped number is silently accepted, so read the preview before downloading.

Where to use it

WhatsApp codes work hardest where a conversation is the goal: a shop window ("Message us your prescription"), a delivery van, a property listing board, a restaurant table card, a business card, an invoice footer, a packaging insert. Put it next to a line of text that says what will happen — "Scan to chat with us on WhatsApp" — so nobody is surprised by the app opening.

For a business, keep one number for WhatsApp and answer it. A code that opens a chat nobody reads is worse than no code, because the customer has now told you what they wanted and heard nothing back.

Privacy note: the number in a WhatsApp QR code is public. Use a business number rather than a personal one, and remember that anyone who scans the code can message it.