heyita
Free tool

WhatsApp chat button for your website

A floating button in the corner of your website that opens a WhatsApp chat with you. Choose how it looks, see it live, and paste one block of code into your site. No plugin, no account, no tracking.

Include the country code. 10-digit Indian mobiles get +91 added.
Leave empty for a round icon-only button.12 / 30
Pops up above the button after a moment. Leave empty to turn it off.59 / 160
22 / 200
Position
Colour
Preview: your website
Your code

Enter your WhatsApp number to copy the code.

<!-- WhatsApp chat button: heyita.com/tools/whatsapp-chat-button -->
<style>
.hywa{position:fixed;bottom:20px;right:20px;z-index:2147483000;display:flex;flex-direction:column;align-items:flex-end;gap:10px;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.hywa-card{position:relative;max-width:260px;background:#fff;color:#111b21;border-radius:14px;padding:12px 34px 12px 14px;box-shadow:0 6px 24px rgba(0,0,0,.18);font-size:14px;line-height:1.4;opacity:0;transform:translateY(8px);transition:opacity .25s,transform .25s;pointer-events:none}
.hywa.hywa-open .hywa-card{opacity:1;transform:none;pointer-events:auto}
.hywa-x{position:absolute;top:6px;right:6px;width:24px;height:24px;border:0;border-radius:50%;background:transparent;color:#667781;font-size:18px;line-height:1;cursor:pointer}
.hywa-btn{display:inline-flex;align-items:center;gap:8px;height:52px;min-width:52px;justify-content:center;padding:0 18px 0 14px;border-radius:999px;background:#25D366;color:#111b21;font-weight:600;font-size:15px;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.22)}
.hywa-btn:focus-visible{outline:3px solid #0095f6;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.hywa-card{transition:none}}
</style>
<div class="hywa" id="hywa">
  <div class="hywa-card" role="status">Hi there! Have a question? We usually reply within minutes.<button type="button" class="hywa-x" aria-label="Close">&times;</button></div>
  <a class="hywa-btn" href="https://wa.me/910000000000?text=Hi!%20I%20have%20a%20question." target="_blank" rel="noopener" aria-label="Chat with us"><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true"><path fill="currentColor" d="M12 2a10 10 0 0 0-8.66 15l-1.3 4.28a.75.75 0 0 0 .93.93L7.25 20.9A10 10 0 1 0 12 2Zm-4 9.25a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Z"/></svg><span>Chat with us</span></a>
</div>
<script>
(function(){var w=document.getElementById("hywa");if(!w)return;setTimeout(function(){w.classList.add("hywa-open")},2500);var x=w.querySelector(".hywa-x");if(x)x.addEventListener("click",function(){w.classList.remove("hywa-open")});})();
</script>

Paste it just before </body> on every page, or in your site builder's custom code or footer section.

How to use it

  1. 1

    Enter your number and words

    Add your WhatsApp number, the button text, a greeting and the message customers send.

  2. 2

    Style it

    Pick the corner and the colour. The preview shows exactly what visitors will see.

  3. 3

    Paste the code

    Copy the code and paste it before </body>, or into your site builder's custom code or footer section.

Adding the code to popular website builders

Most builders have a place for custom code that runs on every page:

  • WordPress: a header-and-footer code plugin, or your theme's footer settings
  • Shopify: Online Store, Themes, Edit code, theme.liquid, just before </body>
  • Wix: Settings, Custom code, add to the body end on all pages
  • Squarespace: Settings, Advanced, Code injection, Footer
  • Webflow: Project settings, Custom code, Footer code
  • Hand-built sites: paste before </body> in your page template

What's in the code

The snippet is a few lines of plain HTML, CSS and JavaScript. It doesn't load anything from another server, sets no cookies and tracks nobody. The greeting appears after a couple of seconds and can be closed; visitors who prefer reduced motion see it without animation.

The button is a normal link to wa.me with your number and message, so it works with screen readers and keyboards, and if JavaScript is switched off the button still works.

Answer website chats as a team

With Heyita, the same button sends chats to your WhatsApp Business API number, where your whole team answers from one inbox, chatbots greet visitors out of hours, and every visitor becomes a contact you can follow up. It's part of the one plan at ₹1,000 a month.

Questions

Is the WhatsApp chat button free?

Yes. The generator and the code are free to use on any website, with any WhatsApp number.

Will it slow down my website?

No. It's a small block of plain code with nothing to download from other servers.

Does it use cookies?

No. The button sets no cookies and doesn't track visitors, so it doesn't change your cookie notice.

Can I show it only on some pages?

Yes. Paste the code only on the pages where you want the button, instead of the site-wide footer.

Move your WhatsApp to a team inbox

Heyita puts your number on the official WhatsApp Business API with every feature in one plan, and Meta's message prices with no markup.