1. Home
  2. Tools
  3. WhatsApp Link Generator
  4. WhatsApp Button for Website

WhatsApp button for your website: one snippet, no plugin

Add a chat button to your website in a minute. Choose a floating corner button or one inside the page, set the size, the colour and the text, and copy a single piece of HTML. It has its style and its icon written inside, so it loads nothing from outside, sets no cookies and slows nothing down. Works on plain HTML, WordPress, Shopify, Wix and more.

Advertisement

By | Last reviewed | [email protected]

How do I add a WhatsApp button to my website?

Enter your number at the top, choose the message on the Link and QR tab, then open Website button, pick floating or inline and a colour, and press Copy code. Paste it just before the closing body tag of your page, or in a custom HTML block in WordPress, Shopify, Wix or Squarespace. The button opens a chat with you, with your message typed in. No plugin and no sign-up are needed.

How it works

How it works

Three steps, about a minute.

Enter your number and message

Type your number at the top and choose the first message on the Link and QR tab. The button uses the same link. Then open the Website button tab.

Choose how the button looks

Pick a floating corner button or one inside the page, the size, the colour, and the text. You can show only the round icon, and show only the icon on phones to save space. The preview updates as you click.

Copy the code and paste it

Press Copy code and paste it before the closing body tag of your page, or into a custom HTML block. Open your page and click the button to check that the right chat opens.

Where to paste it

Where to paste the code

The code is plain HTML, so every site builder that lets you add custom HTML can use it.

  • Plain HTML or PHP website: paste it just before the closing body tag.
  • WordPress: add a Custom HTML block in a footer widget area, or use a plugin that adds code to the footer of every page.
  • Shopify: Online Store, Themes, Edit code, open theme.liquid and paste before the closing body tag.
  • Wix, Squarespace and Weebly: use an Embed or Code block and choose HTML.
  • Blogger: add an HTML/JavaScript gadget in the layout.
  • Want to change the number later without editing your website? Make a smart link first, then tick Use my smart link in the button settings.

Who uses it

Made for small businesses and freelancers

Anyone who gets customers through WhatsApp can save time with a link that opens the right chat with the right first message.

Shops and online sellers

Put a QR code on the counter and a link in your Instagram bio. Customers ask about a product with one tap, and the message already names it.

Print shops and press

A rate request link with the size and quantity filled in, a link for sending a design file, and a message to tell a customer the job is ready.

Freelancers and agencies

A hire-me link with budget and date blanks in your portfolio, proposal, email signature and invoice.

Photographers and studios

A booking link for each shoot type, and a counter sign with a QR code for walk-in customers.

Tutors and academies

Enrolment and free demo class links for flyers and class posters, with the course filled in.

Restaurants and home kitchens

A menu and table-booking QR code for the table, the box and the delivery bag.

Real estate agents

One link per property with the property name in the message, so you know which listing a call is about.

Repair and home services

A request link for a visit or an estimate, on your van, card and Google profile.

Offers and events

A smart link that ends on the sale day, or after the first 100 orders, with a friendly message afterwards.

Limits

What this tool cannot do

Read these before you rely on a link or print a QR code.

  • It makes links. It does not send messages. A link opens WhatsApp with your message typed into the chat box, and the person still has to tap Send. Nobody receives anything until they do.
  • It cannot check that a number has WhatsApp. The number is checked for length and for a usual mobile start for the country, so a typing mistake is caught, but only WhatsApp knows whether the number is registered. A landline cannot receive chats unless it was registered with WhatsApp Business.
  • It opens one-to-one chats only. It does not make group invite links (those come from the group info screen inside WhatsApp) and it does not use the WhatsApp Business API, templates, broadcasts or chatbots.
  • A normal QR code holds the number and message inside the picture. If you change your number later, an old printed QR code still opens the old number. To change it later, make a smart link and print that QR code instead.
  • A smart link depends on FileXL. The address filexl.com/w/yourname must be online to open the chat. A normal wa.me link does not depend on us. For something you print in large numbers, decide which risk you prefer. We delete a smart link that nobody has clicked for two years.
  • A smart link stores your number and message on FileXL, because the server has to open WhatsApp for it. It stores no IP addresses, no user agents and no cookies, only daily totals of clicks. Anyone who has the private manage key can change or delete the link, and we cannot recover a lost key.
  • Click counts are clicks, not people. One person can click twice. Link-preview robots and search bots are not counted, but a robot that hides itself might be. Countries come from the network, are approximate, and a visitor using a VPN shows the VPN country. WhatsApp itself gives no click counts for its own links and QR codes.
  • Country number rules are the common ones and can be incomplete. If the tool warns about a length or a start digit and you are sure the number is right, you can still use the link.
  • Long messages make a dense QR code that is harder to scan. Keep it short, print it at least 3 cm wide, dark on a light background, and test it with a phone before you print a thousand copies.
  • The website button is plain HTML with its style written inside. Some site builders remove inline SVG or style, so test it on your site. The round icon is a generic chat bubble drawn for this tool, not the WhatsApp logo.
  • The A4 counter sign is a PNG made by your browser. Urdu text on it uses the fonts installed on your device, so look at it before you print.
  • Smart links must not be used for spam, scams, harassment or messages to people who did not ask for them. Every smart link can be inspected by adding a plus sign to its address, and anyone can report it. Reported links are blocked.
  • FileXL is not affiliated with, endorsed by or connected to WhatsApp or Meta. WhatsApp is a trademark of its owner.

Questions

WhatsApp Button for Website: frequently asked questions

Does the website button slow down my site or track my visitors?

No. It is one small piece of HTML with its style and its icon written inside. It loads nothing from FileXL and sets no cookies. When a visitor clicks it, WhatsApp opens. If you want click counts or the ability to change the number later, use your smart link address in the button.

What is a smart link and why would I use one?

A smart link is a short address on filexl.com, such as filexl.com/w/ali-prints, that opens your WhatsApp chat. Because the address stays the same, you can change the number or the message later, pause it, set it to end on a date or after a number of clicks, and see how many people used it. The big benefit is for printed QR codes: edit the smart link and the same printed code opens the new chat.

What is a WhatsApp link?

A WhatsApp link, also called a click-to-chat or wa.me link, is a normal web address that opens a chat with a phone number in WhatsApp. It looks like https://wa.me/923001234567, and it can carry a message that is already typed into the chat box, like https://wa.me/923001234567?text=Hello. Anyone who taps it on a phone with WhatsApp, or on a computer with WhatsApp Web or the desktop app, lands in a chat with you without saving your number first.

How do I write the number in a WhatsApp link?

Use the full international number with digits only: the country code, then the number without the first zero. No plus sign, no zeros in front, no spaces, dashes or brackets. A Pakistan number 0300 1234567 becomes 923001234567, an Indian number 98765 43210 becomes 919876543210. You do not have to do this by hand here: choose the country, type the number the way you write it, and the tool cleans it. International numbers can have at most 15 digits.

Does the link send the message automatically?

No. The message is typed into the chat box and waits. The person must tap Send. This is how WhatsApp works for every click-to-chat link, and it is also a protection against spam.

Is the WhatsApp link generator free?

Yes. Normal links, QR codes, the counter sign, the bulk tool, the website button and the link page are free, with no sign-up and no watermark. Smart links are also free.

Is this tool made by WhatsApp or Meta?

No. FileXL is an independent file-sharing service and is not affiliated with WhatsApp or Meta. The links it makes use WhatsApp public click-to-chat address format.

Can I use my own colours and text?

Yes. Choose from six colours and type any button text, including Urdu. The text colour switches between white and dark so it stays readable on light and dark colours.

Sources

Sources and further reading

Sources marked as third-party are not official. Read the original pages for the full detail.

The QR codes use the Nayuki library (MIT). FileXL is not affiliated with WhatsApp, Meta or any company named here. WhatsApp is a trademark of its owner. Meta can change how links, QR codes and short links work at any time, so check the official pages above for the latest rules.

Keep reading

Related guides

Works well with

Other free FileXL tools

About this tool

Made and checked by the FileXL Team

This tool is built and maintained by the , the people behind the FileXL file sharing service. We test the links and QR codes it makes on real phones, and we review this page when the tool or the way WhatsApp links work changes. Last reviewed November 2026. Read more on the team page. What the pages say about WhatsApp comes from the sources listed above; third-party pages are labelled as such. FileXL is not WhatsApp and cannot change how WhatsApp behaves.

Help us improve it

Something not working, or a country missing?

This tool is built from what small businesses, freelancers and shop owners ask for. Tell us which country, message or place is missing, what a button should say, or what you would like a smart link to do. It takes a minute and you do not need an account. Please do not send phone numbers or customer details; a short description is enough.

Prefer email? Write to [email protected].

Need to send a price list, a catalogue or large files?

FileXL sends large files free, with no sign-up. Upload your files, share the short code, and your customer downloads them from the Receive page without creating an account. Good for photos, designs and catalogues that are too big for chat.

Send files with FileXL I have a code