Generate a WhatsApp QR Code in Seconds
Enter your WhatsApp number, pick a size, and download a scannable QR code that opens a chat with you directly — no app switching, no typing numbers. Great for business cards, shop windows, invoices, posters, or any place where you want someone to message you on WhatsApp instantly.
When someone scans your code, WhatsApp opens on their phone with your number already loaded, ready to send. No contact-saving required on their end.
How to Use the WhatsApp QR Code Generator
- Select WhatsApp as the QR type in the tool above (it may already be selected by default).
- Enter your phone number in international format — for example,
+14155552671for a US number or+447911123456for a UK number. Always start with the country code and the+symbol. - Optionally add a pre-filled message — the tool will encode it so WhatsApp opens with that text already typed in the chat box.
- Customise your code — choose a foreground colour, background colour, and pixel size (256 px to 1024 px works well for most uses).
- Download as PNG or SVG. Use PNG for web and print at fixed sizes; use SVG if you need to scale it up without any quality loss (great for large posters or banners).
Scanning the QR code opens WhatsApp on the scanner's phone and points it straight at your number. They just tap Send. The QR code is free to use, never expires, and encodes the data directly — there is no redirect link or third-party server involved.
Worked Example
Imagine you run a small café and want customers to message you on WhatsApp to place orders. Here is exactly what you would fill in:
| Field | Value |
|---|---|
| Phone number | +447911123456 |
| Pre-filled message (optional) | Hi! I'd like to place an order. |
| Foreground colour | #128C7E (WhatsApp green) |
| Background colour | #FFFFFF |
| Size | 400 px |
| Download format | PNG (for menu cards), SVG (for the window sticker) |
The tool encodes the URL https://wa.me/447911123456?text=Hi!%20I'd%20like%20to%20place%20an%20order. into the QR pattern. When a customer scans it, WhatsApp opens on their phone with that message already typed.
How to Generate This in Code
If you need to create WhatsApp QR codes programmatically — for example, in a CRM or a web app — here are two quick ways:
Python (using the qrcode library — install with pip install qrcode[pil]):
import qrcode
phone = '+447911123456'
message = 'Hi! I would like to place an order.'
url = f'https://wa.me/{phone.replace("+", "")}?text={message}'
img = qrcode.make(url)
img.save('whatsapp_qr.png')JavaScript (browser or Node.js, using the qrcode npm package — install with npm install qrcode):
const QRCode = require('qrcode');
const phone = '447911123456'; // No + sign needed in wa.me URL
const message = encodeURIComponent('Hi! I would like to place an order.');
const url = `https://wa.me/${phone}?text=${message}`;
QRCode.toFile('whatsapp_qr.png', url, { width: 400 }, (err) => {
if (err) throw err;
console.log('WhatsApp QR saved!');
});Both snippets encode a wa.me deep-link URL — which is the official WhatsApp click-to-chat format — into a QR image. The wa.me link format is documented by Meta at WhatsApp's official click-to-chat FAQ.
How It Works
The tool builds a wa.me link — the standard WhatsApp deep-link format — from your phone number and optional message. That URL gets encoded into a QR code (a matrix of black and white squares) following the ISO/IEC 18004 QR code standard. Everything runs in your browser — nothing is sent to a server.
The error correction level is set to M (medium), which means the QR code can still be read even if up to 15% of it is obscured or damaged. That is a sensible default for printed materials that may get smudged or partially covered.
SVG output is a vector graphic — it is made of shapes, not pixels, so it stays sharp at any size. PNG is a raster image — it has a fixed resolution, so download it at the largest size you plan to use.
When to Use (and When Not To)
- Use it on business cards, product packaging, restaurant menus, invoices, flyers, event banners, or any printed material where you want a one-tap way for someone to message you.
- Use it on a website or email signature as a clickable QR image — customers on mobile can screenshot and scan it, or just tap the wa.me link directly.
- Use the pre-filled message field when context matters — for example, "I'm interested in your catering service" saves the customer typing and reminds your team which campaign the message came from.
- Do not use it if you need a link that routes to different numbers at different times — the number is baked into the QR code and cannot be changed later without reprinting.
- Do not use it for WhatsApp Business broadcast lists or group invites — those use different link formats. This tool is specifically for opening a one-to-one chat.
Your data stays private. The QR code is generated entirely inside your browser. Your phone number and message text are never uploaded to any server — they go straight into the QR pattern on your screen.
Ready to create yours? Use the generator at the top of this page — it takes about 20 seconds from start to downloaded file.