Want visitors to message you on WhatsApp straight from your site? This free WhatsApp chat widget generator builds a floating chat button — enter your phone number and a starter message, and copy the HTML code for any website. Everything runs in your browser, nothing is uploaded, and there is no account to create.
The button opens a WhatsApp chat with your number already filled in and the visitor's first message pretyped, so the conversation starts in one tap. For a related job, try the Mailto Link Generator or the Social Share Buttons Generator.
How to use
- Type your WhatsApp phone number above, in international format with the country code.
- Write the starter message visitors will send, like Hi, I need help with my order.
- Pick the button position and color, then click Generate widget to build the code.
- Copy the code, paste it into your site, and tap the preview button to test the chat.
Why use Toolsvine
A floating WhatsApp button on a store page turns a hesitant shopper into a chat in one tap, with the message Hi, I need help with my order already typed and the shop's number already filled in. Most widget tools charge monthly or inject tracking scripts, but this one hands you a plain link and a few lines of code you fully own. It is free, needs no account, and the button works on desktop and mobile alike.
How does the WhatsApp chat widget generator work?
Yes. Enter a phone number and a message, and the tool builds a small piece of HTML in your browser. The button is a link to WhatsApp's own wa.me address with your number and message encoded in it, so tapping it opens WhatsApp with a chat to you already started and the first message pretyped.
The generator cleans the phone number to digits only, checks that it looks like a real international number, and encodes the message so spaces and punctuation survive the link. It also styles the button in WhatsApp green, positions it at the corner you choose, and shows a live preview you can tap to test the chat before pasting the code.
Worked example: a chat button for a small online store
Take a small store in Chicago whose customers keep emailing about delivery times. Set the number to 1 555 123 4567, the message to Hi, I need help with my order, and the position to bottom right. The result is a green circular button fixed to the corner of every page, and one tap opens a WhatsApp chat to the store with the message already typed. The whole snippet is under 30 lines and pastes into WordPress, Shopify or plain HTML.
| Detail | Value in the example |
|---|---|
| Phone number | +1 555 123 4567 |
| Message | Hi, I need help with my order. |
| Chat link | wa.me/15551234567 |
| Position | Bottom right, 20 px from the edge |
| Code size | Under 30 lines |
Try it yourself: enter the same number above and the link should match. If tapping the preview says the number is not on WhatsApp, check the country code — a missing 1 at the start is the usual mistake.
What should I watch out for with a WhatsApp button?
The most common mistake is a phone number without the country code. WhatsApp's link needs the full international number — 1 for the United States, then the area code and number — and a local-only number opens a chat to the wrong person or fails entirely. Always test the preview with your own phone before publishing.
A second mistake is a button that covers the checkout or a cookie banner on mobile. Bottom right is the usual spot, but on small screens it can hide the very button a visitor needs. Preview the page on a phone and move the widget to the left if it collides. For a related job, the Social Share Buttons Generator builds share buttons for the same page.
Frequently asked questions
Do visitors need WhatsApp installed to use the button?
On a phone, yes — tapping opens the WhatsApp app, or the app store if it is not installed. On a desktop, it opens WhatsApp Web, and visitors can scan a code to continue on their phone. If a visitor has no WhatsApp at all, the button does nothing for them, so keep your email or contact form visible too.
What phone number format should I use?
Use the full international format: country code, then area code, then number, with no plus sign, spaces or dashes in the final link. For a United States number that means 1 followed by the 10-digit number, for example 15551234567. The generator strips spaces and dashes for you, but it cannot fix a missing country code.
Can I change the starter message?
Yes. Write any message in the box — a question about an order, a request for a quote, anything your visitors usually ask first. Keep it short and friendly, because it appears in the visitor's chat as their first message. A message under 60 characters reads best and never gets cut off by WhatsApp.
Does the widget track my visitors?
No. The code is a plain link to WhatsApp with no script, no cookie and no analytics. The only thing that leaves your site is the tap itself, which opens WhatsApp. That also means the button cannot show you who viewed it — if you need stats, count the chats that arrive instead.
Will the button work on WordPress and Shopify?
Yes. Paste the snippet into a Custom HTML block in WordPress or a custom liquid section in Shopify, and the button appears on every page that includes it. Plain HTML sites take the same snippet before the closing body tag. Always preview here first, because a wrong number is the only thing that can break it.