Floating Chat Button Builder (WhatsApp, Telegram, Viber, Messenger)
Add your chat numbers and usernames, style the corner button, set a greeting and office hours with a time zone, preview it on phone and desktop and copy one self-contained snippet.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Add channels
Choose a channel, type the number, username or address and an optional prefilled message.
- 2Test links
Click Test next to each channel and fix any warnings.
- 3Style the button
Pick side, distances, size and colour, and write a greeting.
- 4Set office hours
Choose the time zone, days and times, and what happens when you are closed.
- 5Preview
Try the button in the phone and desktop preview.
- 6Install
Copy or download the snippet and paste it before the closing body tag.
About this tool
A floating chat button sits in the corner of every page and opens a conversation in the app your customer already uses. Most ready-made widgets load a script from someone else's server, add tracking and ask for a subscription to remove their logo. This builder writes the whole thing for you as a small block of HTML, CSS and JavaScript that you paste into your own site, with no outside requests at all. Add one channel and you get a single round button that opens it straight away. Add several and the button opens a small menu with WhatsApp, Telegram, Viber, Messenger, Instagram, LINE, phone, SMS or email. Each channel can carry a prefilled message where the app supports it, so a WhatsApp chat starts with Hi, I have a question about my order already typed. You choose the side, distances from the edges, size and colour, a greeting bubble that appears after a delay and can be closed, and whether the button shows on phones, desktops or both. The live preview runs the real snippet in a sandboxed frame at phone or desktop width.
Office hours
Turn on office hours, pick a time zone such as Asia/Dhaka or Europe/London and set opening times for each day. Outside those hours the snippet either hides the button or keeps it with a short offline note and dimmed links. Times are checked in the business time zone, not the visitor's, and overnight shifts such as 22:00 to 06:00 are handled. The Stats row shows whether the button would be open right now.
Link formats
WhatsApp uses wa.me followed by the full international number in digits only. Telegram and Messenger use your public username. Viber opens a chat by number on devices with Viber installed. Instagram uses ig.me links to your direct messages, and LINE uses the add-friend link for your ID. The Channels tab tests every link and warns about numbers that start with 0 or have too few digits, which are the most common reasons a chat button opens the wrong person or nobody at all.
Accessibility and performance
The button has an accessible name, the menu closes with Escape, links meet the 44 pixel touch size, and the snippet is a few kilobytes. Because nothing is fetched from another server, it does not slow the page or need a cookie banner of its own.
Limits
The snippet does not provide a chat inbox, chatbot or message history; it only opens the messaging app. Viber links do not work on computers without the Viber app, and some apps ignore the prefilled text. Test each link on a real phone before publishing.
Worked example
The loaded example is an online shop with four channels: WhatsApp on +44 7700 900123 with the message Hi, I have a question about my order, Telegram and Messenger with the username examplestore, and [email protected]. The button is 58 px, teal, 20 px from the bottom right, with the greeting Hi! Questions? We usually reply within minutes after 4 seconds. Office hours are Monday to Friday 09:00 to 18:00 London time with an offline note. The resulting snippet is about 4.5 KB and the WhatsApp link reads https://wa.me/447700900123 followed by the encoded message.
Quick facts
- Category: Developer & Data
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: WhatsApp Click to Chat (wa.me), Telegram t.me links and Messenger m.me links documentation
Frequently asked questions
How do I add a WhatsApp button to my website?
Enter your number with the country code, copy the snippet from the Embed code tab and paste it just before the closing body tag of your pages or into a custom HTML block.
Does it work with WordPress, Shopify and Wix?
Yes. Paste it into a custom HTML widget, the theme footer or a code injection field. It needs no plugin.
Why does my WhatsApp link open the wrong number?
The number must be in international format without a plus sign, spaces or a leading zero, for example 8801711000000 rather than 01711-000000.
Can I show different buttons on mobile and desktop?
Choose Phones only or Desktop only in the Look tab; for two different designs, build two snippets and paste both.
Does the button track visitors?
No. It stores only whether the greeting was closed, in session storage, and sends nothing anywhere.
Can I change it later?
Your design is saved in this browser and can be saved as JSON. Edit it and paste the new snippet over the old one.
