What a Click-to-Chat Link Is
A click-to-chat link is a plain web address that opens WhatsApp on the visitor's device and starts a conversation with one phone number. The number sits in the address path as digits, with the country code first and no plus sign or punctuation. An optional text parameter can carry a message that appears in the message box, ready to review and send.
The generator takes a phone number, an optional message and an optional button label, then produces a short address, an alternative address, a button snippet and a QR code. Everything is calculated in your browser while you type.
Control-by-Control Walkthrough
Country code and phone number
The Country code dropdown starts on India (+91). Choose the country that matches the number, because the dropdown supplies the leading digits of the link. The Phone number box accepts digits with or without spaces, dashes, brackets or a plus sign. The line beneath reports the number that will be saved, or why it cannot be used yet.
Pre-filled message and templates
The Pre-filled message (optional) box holds the opening text of the chat, and its counter turns amber above 500 characters. The four chips, Greeting, Place an order, Support request and Book appointment, replace the message with a starter template. A chip overwrites whatever was typed, so copy any text you want to keep first.
Button label
Button label sets the text on the button snippet and the preview. It is never placed in the link. If it is empty, Chat with us is used.
Click-to-chat link, Open and Copy
The Click-to-chat link box shows the short wa.me address. Open visits it in a new tab, a useful test before you publish. Copy places the address on the clipboard and briefly reads Copied, or Copy failed if the browser refused access.
Alternative link, snippet and preview
The Alternative link is the same chat as an api.whatsapp.com address with the number in a phone parameter, for systems that reject the short form. The Button HTML snippet is a small green link element. The Preview button beneath it shows the same button on this page.
QR code and Summary
The QR code is drawn from the short address and stays hidden until the number is valid. Download QR as PNG saves it as an image. The summary line reports the length of the short address and how many message characters were encoded, or asks you to fix the number.
Worked Examples
Example 1: an Indian number with a full international prefix
Select India (+91) and type +91 98765 43210, with the message Hello, I would like the price of the blue kurta. The plus sign and the repeated country code are removed, the number is saved as +919876543210 (12 digits, country code included), and the link is:
https://wa.me/919876543210?text=Hello%2C%20I%20would%20like%20the%20price%20of%20the%20blue%20kurta.
The message is 48 characters before encoding, and the whole address is 100 characters. Commas and spaces become %2C and %20. Typing 0091 98765 43210 instead gives exactly the same link.
Example 2: a US number with no message
Select United States (+1), type (415) 555-0132 and leave the message empty. The brackets, space and dash are discarded, and the link is https://wa.me/14155550132, which is 25 characters. The summary says no message is pre-filled.
Example 3: a UK number with a trunk zero
Select United Kingdom (+44) and type 07700 900123. The leading zero is a national prefix that is not used internationally, so it is removed. The number is saved as +447700900123 (12 digits), and the link https://wa.me/447700900123 is 26 characters.
Example 4: a number that is too short
With United States selected, type 12345. The full number is 6 digits including the +1 code, so the generator refuses to build anything and explains that at least 7 digits are needed. No link, snippet or QR code appears until the number is corrected.
Example 5: the doubled country code
With India selected, paste 91 98765 43210 without a plus sign or 00 prefix. The generator cannot tell that the leading 91 is already a country code, so it adds India's code again. The result is +91919876543210 (14 digits) and the link https://wa.me/91919876543210. Fourteen digits is within the 15-digit limit, so no warning appears. The fix is to include the plus sign.
Example 6: line breaks in a template
With United Arab Emirates (+971) and the number +971 50 123 4567, enter Hi, press Enter and type Order: 2 cakes. The message has 17 characters before encoding, and the link becomes https://wa.me/971501234567?text=Hi%0AOrder%3A%202%20cakes. The line break is %0A, the colon is %3A and each space is %20.
Tips and Common Mistakes
Match the dropdown to the number. Choosing United States for an Indian number produces a valid-looking but wrong link. Check the summary line before copying.
Use the plus sign when the number already has its country code. That is the only reliable way to stop the code from being added twice, as Example 5 shows.
Test every link on a phone. Use Open to confirm that the chat starts with the right number and the expected message.
Keep long messages in check. A long template makes the link longer and can stop the QR code from being drawn. The link stays visible, so shorten the text and the code will return.
Assume the message is visible. Anyone who opens the link can read the number and the pre-filled text, so keep private details out of it.
Frequently Asked Questions
The generator keeps only the digits, so spaces, dashes, brackets and the plus sign disappear. If the typed number carried a plus sign or a 00 prefix and began with the selected country code, that code is removed from the front and then added back once, so the result is the same either way. A number typed without a prefix keeps its digits as typed, except that leading zeros are removed.
The generator does not cap the message, but the character counter turns amber above 500 characters. Longer text makes the link longer, and past a certain size the QR code can no longer be drawn. The tool then hides the code and shows the link and button snippet as usual.
The comment is a note inside the HTML saying that the icon needs Font Awesome on your page. If your site does not load that icon font, delete the icon element and keep the text, which is all the button needs to work.
Not on this page. Each link targets a single number, so the generator builds them one at a time. For a longer list, keep the numbers in a spreadsheet and reuse the same message template, then generate each link here or with your own script.