Free tool
Design a WhatsApp chat button that fits your site
Pick a shape, tune colours, shadow and hover behaviour, and preview the button on light and dark backgrounds — then copy production-ready HTML and CSS.
Design your button
Shape
Shadow
Hover effect
Live preview
Hover the button to test the hover effect. Switch the background swatches to judge how it sits on light pages before you commit.
Your snippet
wa-chat-button.html<!-- WhatsApp chat button — designed with the free InfiQ chat button designer (www.infiq.in) -->
<style>
.wa-chat-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 44px;
padding: 10px 22px;
border-radius: 9999px;
background-color: #25D366;
color: #FFFFFF;
font: 600 15px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
text-decoration: none;
cursor: pointer;
border: none;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
transition: background-color 0.2s ease;
}
.wa-chat-btn:hover {
background-color: #1ead54;
}
.wa-chat-btn svg {
flex-shrink: 0;
}
</style>
<a href="https://wa.me/917880148433" class="wa-chat-btn" target="_blank" rel="noopener">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>
<span>Chat with us</span>
</a>Paste the snippet wherever the button should appear. The style block is class-based (.wa-chat-btn), so you can move it into your stylesheet later. Everything runs in your browser — nothing is stored on our servers.
How it works
Three steps, no signup
Style the button
Choose circle, pill or rounded rectangle, set the label and icon size, and pick background and text colours from presets or your own hex codes.
Test it in context
Hover the live preview to check the darken or lift effect, and flip between white, grey, dark and navy page backgrounds to judge contrast.
Copy or download
Grab the snippet — clean HTML plus a class-based style block — or download it as wa-chat-button.html and paste it into your site.
Getting it right
Recognisability, accessibility and consistency
The first design decision is the trade-off between brand consistency and instant recognition. WhatsApp green is one of the most recognised interface colours in markets like India — a green pill with the glyph needs no explanation, which is why conversion-focused pages so often leave it untouched. A brand-coloured button can look more polished and sit better in a carefully designed page, but it gives up that instant read. If you go brand-coloured, compensate: keep the WhatsApp glyph at a generous size, add an explicit label such as “Chat on WhatsApp”, and avoid colours that visitors associate with other actions on your site. Icon-only circles are the riskiest place to drop the green — without the colour or a label, the glyph is doing all the work.
Accessibility is not optional on a button whose whole job is being tapped. Keep the tap target at 44×44 px or larger — this tool bakes that minimum into every shape. Check contrast twice: the icon and label against the button background, and the button against the page behind it. A white button on a white page disappears; that is what the border toggle and the background swatches in the preview are for. Icon-only buttons must carry an aria-label so screen readers announce something meaningful — the generated snippet adds one automatically whenever the visible label is hidden.
Finally, think about where this button sits in your page's hierarchy of calls to action. If your primary CTA is “Buy now” in orange, a WhatsApp button styled with equal weight right next to it splits attention. A common pattern that works: one visually dominant primary action, with the chat button styled a step quieter — same corner radius and height as your other buttons so it reads as part of the same family, but differentiated by the glyph and colour. Matching radius, height and font to your existing buttons matters more than matching colour; mismatched geometry is what makes an embedded snippet look bolted on.
The snippet this tool produces is deliberately minimal — an anchor, an inline SVG and a small class-based style block. It loads nothing external, so it adds zero requests to your page. When the conversations start arriving, the button is only the front door: routing that same number through the WhatsApp Business API gives your team a shared inbox, auto-replies and reporting on every chat the button starts.
FAQ
Frequently asked questions
Should my chat button be WhatsApp green or my brand colour?
WhatsApp green (#25D366) is recognised instantly, so visitors know exactly what tapping the button does — that recognition usually outweighs brand purity for a chat entry point. If you use a brand colour instead, keep the WhatsApp glyph prominent and add a clear label like "Chat with us" so the button's purpose stays obvious. Use the background swatches in the preview to check both options against your actual page colours.
How big does the button need to be for mobile?
Accessibility guidelines recommend a minimum tap target of about 44×44 px. This designer enforces that floor automatically: circle buttons never render smaller than 44 px, and pill and rectangle shapes carry a 44 px minimum height. If you edit the CSS later, keep that minimum — undersized targets are one of the most common mobile usability failures.
How do I add the snippet to my website?
Copy the snippet and paste it into your page's HTML wherever the button should appear — most site builders (WordPress, Shopify, Wix, Webflow) accept it through a custom HTML or embed block. The style block travels with the button, so it works standalone; on a production site you can move the CSS into your main stylesheet and keep only the anchor tag in the page.
What is the difference between this and the widget generator?
This tool designs a single inline button you place inside your page content — a hero section, a contact card, a footer. The widget generator builds a floating launcher that sits fixed in the page corner with an expandable chat panel. Many sites use both: a floating widget for always-available access plus inline buttons at decision points like pricing and product pages.
Does the button work without JavaScript?
Yes. The output is a plain anchor tag pointing at your wa.me link plus a small CSS block — no scripts, no external requests, no dependencies. That means it cannot slow your page down and it degrades gracefully everywhere a normal link works. Email clients are the one caveat: most strip style blocks and hover states, so for emails use a simple inline-styled link instead.
Still have questions?
Book a demoMore free tools
Keep your stack sharp
WhatsApp Link Generator
Create wa.me links with pre-filled messages — free, no signup.
Open toolWhatsApp QR Code Generator
Turn your WhatsApp number into a scannable QR code for print and packaging.
Open toolWhatsApp Call Link Generator
Create a wa.me/call link that starts a WhatsApp voice call in one tap.
Open toolWhatsApp Call QR Generator
A printable QR that rings your business on WhatsApp when scanned.
Open toolPut a team behind the button.
InfiQ routes every tap on your chat button into a shared team inbox with chatbots, broadcasts and analytics — on the official WhatsApp Business API. 7-day free trial, no card required.
