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
- Enter your number. Choose the country and type your number.
- Pick a style. Link, button or floating button.
- 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
| Tool | WhatsApp Click-to-Chat |
|---|---|
| Category | WhatsApp Tools |
| Works with | HTML |
| Size limit | Short texts |
| Where it runs | In your browser tab; your input is not uploaded |
| Cost | Free, 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
- WhatsApp Direct Chat Link Generator: Create a wa.me link that opens a WhatsApp chat with your number, with an optional ready-typed message. Read the guide
- WhatsApp Business Link Generator: Create chat links for your business with ready-made greetings for orders, support, appointments and quotes, plus a source tag. Read the guide
- WhatsApp QR Code Generator: Create a QR code that opens a WhatsApp chat with your number and an optional message. Download PNG or SVG. Read the guide
More tools like this are in WhatsApp Tools, or browse all tools.