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.

Leave empty for icon only.

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
WordPressAppearance → Theme File Editor → footer.php, or a plugin that adds footer HTML
ShopifyOnline Store → Themes → Edit code → theme.liquid, before </body>
Wix / SquarespaceSettings → Custom code → add to body end
WebflowProject settings → Custom code → Footer code
Static HTMLBefore </body> on each page, or in your shared footer include
React / Next.jsIn 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

Put a flow behind the button

Start free trial More free tools

Link generator · More free tools · Flow builder · Free trial

Last updated: 2 November 2026

Autochatix

Let’s talk about your business

Leave your number and the Autochatix team will call you to discuss your requirements.

Choose your country and enter your number, or include + and your country code.

By requesting a callback, you ask Autochatix to call this number about your enquiry. Privacy Policy.