Home › Blog › How to add a WhatsApp button to a website
WhatsApp Tools guide

How to add a WhatsApp button to a website

Add a WhatsApp button to your website without a plugin. Pick a style, enter your number and message, and copy the code.

Open the WhatsApp Click-to-Chat tool

Step by step

  1. Enter your number. Choose the country and type your number.
  2. Pick a style. Link, button or floating button.
  3. Copy the code. Paste it into your page.

Tips for better results

  • Paste the code where you want the button to appear, or just before the closing body tag for the floating button.
  • The floating button stays in the corner while visitors scroll.
  • The code has no tracking and loads nothing from outside your site.

Limits to know

  • Formats: HTML
  • Size: Short texts
  • Notes: Links open WhatsApp on the phone or WhatsApp Web. WhatsApp is a trademark of its owner; this site is not affiliated with or endorsed by WhatsApp or Meta.

At a glance

ToolWhatsApp Click-to-Chat
CategoryWhatsApp Tools
Works withHTML
Size limitShort texts
Where it runsIn your browser tab; your input is not uploaded
CostFree, no sign-up

Frequently asked questions

Do I need a WhatsApp Business account?

No. Any WhatsApp number works with these links.

Does the code load anything external?

No. It is plain HTML and CSS written inline.

Can I change the colours?

Yes. Edit the colour in the style attribute after you paste it.

If something does not work

  • The result says a value is invalid. Check that every field has a number in the allowed range; the message names the field.
  • The numbers look different from another calculator. Rounding, rate and date conventions differ between calculators. Compare the assumptions shown with the result.
  • The page does not update. Reload it and try again; if it still fails, report it.
  • Is the answer advice? No. Results are estimates for general information.

Still stuck? Use Report a Problem and tell us the tool, your browser and what happened, or read the Help Center.

Related tools and guides

More tools like this are in WhatsApp Tools, or browse all tools.