Updated
Free WhatsApp Chat Button Generator
A WhatsApp chat button is a floating button on your website that opens a WhatsApp conversation with your business in one tap. Choose a style, add your number and a welcome message, then copy the generated code snippet into your site. It is free, works on mobile and desktop, and needs no WhatsApp Business API.
WhatsApp Chat Button Style
WhatsApp Chat Widget Settings
Configure your WhatsApp number, welcome message, and widget branding.
Chat Button Preview
How to Create Your WhatsApp Chat Widget
Three simple steps to add a WhatsApp Chat Button to your website.
Select Your Button Style
Choose your colors, icon type, and chat bubble text for your free WhatsApp Chat button.
Add Your Widget Details
Enter your chat widget call-to-action text, your company logo, and your WhatsApp phone number for visitors to message you.
Embed the Code Snippet
Add your custom WhatsApp chat code snippet to your website. Once added, the chat button will open the visitor's WhatsApp prefilled with your default message.
More WhatsApp Integration Features
With Social Intents, you can answer visitor WhatsApp messages right from our Team Inbox or create AI Chatbots to automatically answer questions.
- WhatsApp Chatbots
Train on your business content and create AI Chatbots to respond to WhatsApp queries automatically.
- Custom Responses
Send chat templates to your visitors for common inquiries.
- Unlimited Agents
Add as many team members as you need on Basic plans and above. No per-agent pricing. Grow live chat as your team grows.
- File Sharing
Send files to your chat visitors and let visitors upload files, right from WhatsApp.
- Quick Replies
Use reply shortcuts to send default responses for common questions.
- Online Schedule
Set your chat to be online and offline during typical office hours.
- Reports
See how you're doing with chat reports. Export data to your external systems.
- Team Inbox
Manage all WhatsApp conversations from a shared team inbox — no phone required.
WhatsApp Widget HTML Code
To add a WhatsApp chat button with HTML, paste a snippet just before the closing </body> tag on every page where you want it. Use the plain link for a simple button, or the widget snippet for a floating button with a welcome popup and your logo.
Option 1: Plain HTML button (no JavaScript)
Replace the number with your full international number, digits only, with no plus sign, spaces or dashes. Text after ?text= prefills the message and must be URL-encoded.
<a href="https://wa.me/15551234567?text=Hi%2C%20I%20have%20a%20question"
target="_blank" rel="noopener"
style="position:fixed;right:24px;bottom:24px;z-index:9999;
padding:12px 18px;border-radius:9999px;background:#25d366;
color:#fff;font:600 15px/1 sans-serif;text-decoration:none;
box-shadow:0 4px 14px rgba(0,0,0,.2)">
Chat on WhatsApp
</a>
Option 2: WhatsApp chat widget snippet
This is what the generator above produces with its default settings. {{page_link}} is replaced with the page the visitor is on, so you know where they started.
<script>
var url = 'https://whatsapp.socialintents.com/api/chat/siwhatsapp.1.0.js';
var s = document.createElement('script');s.type = 'text/javascript';s.async = true;s.src = url;
var chatSettings = {
"backgroundColor": "#25d366",
"textColor": "#000000",
"position": "right",
"marginBottom": "25",
"marginLeft": "0",
"marginRight": "25",
"logo": "https://whatsapp.socialintents.com/images/whatsapp.png",
"ctaText": "Chat with us!",
"chatIcon": "1",
"chatIconImageUrl": "",
"showPopup": false,
"welcomeText": "Hi there! How can I help you?",
"messageText": "Hello, I have a question about {{page_link}}",
"phoneNumber": "+15551234567"
};
s.onload = function() { addWidget(chatSettings); };
var x = document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s, x);
</script>
Where to paste the code
- Any HTML site: just before
</body>in your page template, so it loads on every page. - WordPress, Shopify, Wix and Squarespace: use your platform’s footer or custom code setting. See how to embed WhatsApp chat on any website platform.
- Several people answering one number: a button can’t share a chat across a team. Use a WhatsApp team inbox instead.
WhatsApp Chat Button FAQs
Is the WhatsApp chat button generator free?
Yes. Choose a button style, enter your WhatsApp number and welcome text, then copy the generated code snippet and paste it into your site. There is nothing to install.
Do I need the WhatsApp Business API for a chat button?
No. A chat button opens a normal WhatsApp conversation with your number, so it works with the standard WhatsApp Business app. You only need the WhatsApp Business API when you want several agents answering one number, AI chatbots, or automation. That is covered by our WhatsApp live chat product.
What is the difference between a chat button and a shared WhatsApp inbox?
A button starts the conversation. Where that conversation lands is a separate question. On its own, messages arrive in the WhatsApp app on a single device. A shared WhatsApp team inbox lets your whole team see and reply to the same number, with conversation history kept in one place.
Can I prefill the first message?
Yes. The pre-filled message you enter above is added to the chat so the visitor only has to press send. Include {{page_link}} to add the page they were on. Prefilled text is a starting point, not a lock, since visitors can edit it before sending.
Does the button work on desktop as well as mobile?
Yes. On a phone the button opens the WhatsApp app, and on a computer it opens WhatsApp Web or the desktop app, so the same snippet covers both.
Can I add a WhatsApp chat button with plain HTML?
Yes. A link to https://wa.me/ followed by your full international number, with no plus sign, spaces or dashes, opens a WhatsApp chat with your business. Add ?text= with URL-encoded text to prefill the message. Use the generator above if you also want a floating button with a welcome popup and your logo.
Generate My Button
