Free tool
WhatsApp chat button generator for your website
Add WhatsApp to your website with a free chat button generator: plain HTML and CSS, no JavaScript, no external script to slow your pages down.
Paste this before </body> on your site
The default code uses plain HTML/CSS. The optional hosted version loads AutoChatix’s launcher script and keeps a usable WhatsApp link if JavaScript is blocked. Neither version enables tracking or web chat. Recopy after changes; remove old code to disable an installation.
How to use it
1. Enter your number and a pre-filled message. The message appears in the visitor’s chat box ready to send, which converts better than an empty window.
2. Pick a position and label. Bottom right is conventional. A label reads more clearly than an icon alone, though it takes more space on mobile.
3. Preview it. The preview button drops the real button onto this page so you can see it before using it.
4. Paste it before </body>. On WordPress that is usually a footer-script field or a custom HTML block. On Shopify it is theme.liquid. On a hand-built site, just before the closing body tag. To put a bot behind the button on a WordPress site: WhatsApp chatbot for WordPress. See our WhatsApp chatbot software. Need a new website to put it on? See website development.
Why this is plain HTML rather than a script
Most chat widgets are a JavaScript tag. There are good reasons not to use one for this.
A script is a third-party dependency on every page load. If their service is slow, your site is slow. If they change something, your button changes without you knowing. For a link to a chat, that is a lot of exposure for no benefit.
It costs you nothing in performance. This is an anchor tag with inline styles. No request, no render blocking, no effect on your Core Web Vitals.
It cannot break. There is no service behind it to go down. The button works as long as your HTML is served.
It works with JavaScript disabled, and it is crawlable, which a script-injected button is not.
What you give up: analytics on clicks, and the ability to change it centrally across many sites. If you need either, a script-based widget is the right choice — just not for a single link.
Where to paste it, by platform
| Platform | Where |
|---|---|
| WordPress | Appearance → Theme File Editor → footer.php, or a plugin that adds footer HTML |
| Shopify | Online Store → Themes → Edit code → theme.liquid, before </body> |
| Wix / Squarespace | Settings → Custom code → add to body end |
| Webflow | Project settings → Custom code → Footer code |
| Static HTML | Before </body> on each page, or in your shared footer include |
| React / Next.js | In the root layout, or as a component rendered once |
If your platform has a “footer scripts” or “custom code before body end” field, that is the right place. The button is positioned fixed, so it does not matter where in the body it sits.
What happens after they tap it
The button gets them into a chat. Whether that becomes a customer depends on what is waiting.
With nobody watching the inbox, a visitor who taps at 10pm gets silence until morning, and most will have gone elsewhere by then. The button has then cost you a visitor you would otherwise have kept on the website.
With a flow behind it, the pre-filled message triggers an automation that answers the common question, collects the detail or books the appointment — at any hour.
Use a different pre-filled message per page. “I have a question about pricing” on the pricing page, “I would like to book” on the services page. Each starts a different conversation, and your inbox tells you which page is producing enquiries.
Visitors who tap are opted in by their own action, which is the cleanest way to build a list you can message later — see opt-in rules.
Frequently asked questions
No. It is an anchor tag with inline styles — no requests, no JavaScript, no effect on Core Web Vitals. That is the main reason it is built this way.
Yes. Edit the background:#25D366 value in the snippet. That green is WhatsApp's own brand colour, which is why visitors recognise it instantly — changing it usually costs you clicks.
Yes, and on mobile it opens the WhatsApp app directly. On desktop it opens WhatsApp Web or the desktop app.
Paste it only on those pages. If your site uses one shared footer, you would need a condition in your template — or paste it per page instead.
None. The snippet is generated in your browser and contains nothing but your own number and message. Once you paste it, it never talks to us.
Link generator · More free tools · Flow builder · Free trial
Last updated: 2 November 2026