Back to generator

WhatsApp website button: link and HTML snippet

Add a button that opens WhatsApp. A simple link is not an embedded chat window or an automated support service.

Open generator

Try it here

Generate the QR below. No sign-up, everything runs in your browser.

Paste the code once before </body> on your site. Check it does not cover cookie controls, the cart or other actions. No external scripts are needed.

Example of a WhatsApp QR code made with QRWave
Example: a WhatsApp QR code looks like this. Scan it to open the generator.

For other tools: Open the full generator

From contact link to website button

  1. Enter the international number and an optional message above.
  2. Choose an icon or text button, position and accessible name. Check the preview and copy the generated HTML.
  3. Paste the code once before </body> on your site, or use the link in a native editor button. Check the published result.

Schema to complete

<a href="WHATSAPP_URL">WhatsApp</a>

Uppercase identifiers are placeholders: replace them with the real link or value. This schema is not a working contact.

Check the result

The button opens WhatsApp; the visitor still confirms sending. Test keyboard and phone: it must not cover cookie controls, the cart or other actions. The snippet needs no external scripts and supplies no agents, chatbot or conversation statistics.

Sources and related guides

Last updated: