WhatsApp Chat Button Generator
Floating WhatsApp button code for websites
- Free, no sign up
- Runs in your browser
- Works on phone and desktop
Preview uses a placeholder number until you enter yours.
Code to paste before </body>
<!-- WhatsApp chat button by mytoolstudio.com -->
<style>
#mts-wa{position:fixed;right:20px;bottom:20px;z-index:9999;display:flex;align-items:center;gap:10px;flex-direction:row-reverse;text-decoration:none;font:600 14px/1.2 system-ui,sans-serif}
#mts-wa .mts-wa-btn{width:60px;height:60px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25)}
#mts-wa .mts-wa-label{background:#fff;color:#111;padding:8px 12px;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.15);white-space:nowrap}
#mts-wa:focus-visible .mts-wa-btn{outline:3px solid #111;outline-offset:3px}
</style>
<a id="mts-wa" href="https://wa.me/919876543210" target="_blank" rel="noopener" aria-label="Chat with us"><span class="mts-wa-label">Chat with us</span><span class="mts-wa-btn"><svg viewBox="0 0 32 32" width="56%" height="56%" aria-hidden="true" fill="#fff"><path d="M16 3C8.8 3 3 8.7 3 15.8c0 2.5.7 4.9 2 7L3 29l6.4-2c2 1.1 4.3 1.7 6.6 1.7 7.2 0 13-5.7 13-12.9S23.2 3 16 3zm0 23.4c-2.1 0-4.1-.6-5.8-1.6l-.4-.2-3.8 1.2 1.2-3.7-.3-.4c-1.2-1.8-1.8-3.8-1.8-5.9 0-5.9 4.9-10.7 10.9-10.7s10.9 4.8 10.9 10.7S22 26.4 16 26.4zm6-8c-.3-.2-1.9-.9-2.2-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-1 1.2-.2.2-.4.2-.7.1-.3-.2-1.4-.5-2.6-1.6-1-.9-1.6-1.9-1.8-2.2-.2-.3 0-.5.1-.7l.5-.6c.2-.2.2-.3.3-.6.1-.2.1-.4 0-.6l-1-2.4c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.1-1.2 2.8s1.2 3.2 1.4 3.4c.2.2 2.4 3.6 5.8 5 2.1.8 2.9.9 4 .8.6-.1 1.9-.8 2.2-1.5.3-.7.3-1.4.2-1.5-.1-.2-.3-.3-.6-.4z"/></svg></span></a>WordPress: paste it in a Custom HTML widget or your theme footer. Shopify: Online Store, Edit code, theme.liquid, just above </body>.
How to use
Add your number and message
Pick the country, enter your WhatsApp number and the message visitors will start with.
Style the button
Choose position, color, size, label, pulse, delay and devices, and watch the live preview.
Copy the code
Press Copy code and paste it just before </body> on your site or in a Custom HTML block.
About the WhatsApp Chat Button Generator
The WhatsApp chat button generator makes a floating WhatsApp button for your website, so visitors can start a chat with one tap. Enter your number and a prefilled message, then choose the side of the screen, color, size, distance from the edge, label text, a gentle pulse, a delay before it appears and whether it shows on mobile, desktop or both. A live preview shows the button on a sample page. You get one small block of HTML and CSS with no plugin, no outside script and no tracking, so it will not slow your site down. Paste it before the closing body tag on any HTML site, or into WordPress, Shopify, Wix, Webflow or Blogger.
A floating WhatsApp button for any website: HTML, WordPress, Shopify, Wix or Webflow.
No plugin, no external script and no tracking. One small block of code.
Pick the side, color, size, label, pulse effect, delay and which devices show it.
Keyboard accessible with a proper label and reduced-motion support.