WhatsApp Link Generator
Generate a wa.me link that opens WhatsApp with any phone number — add a pre-filled message for instant customer contact.
Did this tool work for you?
How to use this calculator
- 1
Enter the phone number with country code — digits only, no +, no spaces (e.g. 919876543210 for India).
- 2
Optionally add a pre-filled message — this saves the customer from typing.
- 3
Copy your link and place it on your website, email signature, or social bio.
- 4
When clicked, it opens WhatsApp directly with a chat to that number.
Frequently asked questions
What exact link does the tool build?
https://wa.me/ followed by the cleaned phone number, and, if you typed a message, ?text= followed by the message percent-encoded with encodeURIComponent. With no message the link is just https://wa.me/ plus the number. That is the whole output: one URL string.
How is the phone number cleaned?
Every character that is not a digit is removed, so +, spaces, dashes and brackets disappear, and then any leading zeros are dropped. "+91 98765 43210" and "0044 7911 123456" become 919876543210 and 447911123456. A number of more than 15 digits returns an error, since international numbers are limited to 15 digits including the country code.
Does the tool add or check the country code?
No. It cannot know which country you mean. (415) 555-0123 becomes wa.me/4155550123 with no country code, so type the code yourself (1 for that number gives 14155550123). It also does not check that the number exists or is registered anywhere.
How is the pre-filled message encoded?
The message is trimmed of spaces at both ends and passed through encodeURIComponent. Spaces become %20, a line break becomes %0A, & becomes %26, ? becomes %3F, and accented or emoji characters become UTF-8 percent sequences. An apostrophe is left as it is. Leaving the message empty omits the ?text= part.
Is there a message length limit?
The code applies none. Very long messages produce very long URLs, so test the result before placing it in print or a QR code.
How do I use the link on a web page?
Put the generated URL in a normal anchor: <a href="https://wa.me/14155550123">Message us</a>. The message is already encoded, so paste it in as it is.
Does the tool store or send my number?
The calculation is a few string operations on what you typed, with no network request in the code. The link only goes where you put it.
Building wa.me links from a number and message
Anatomy of the link
A WhatsApp click-to-chat link built here has two parts. The first is the address, https://wa.me/ plus digits. The second, optional part is ?text= and your message. The tool does the fiddly work of getting the digits and the encoding right: it throws away everything in the phone field that is not a digit, removes leading zeros such as a 00 international prefix, and percent-encodes the message so spaces, line breaks and symbols survive inside a URL. It does not decide anything about the number itself.
| Typed | Used in link | Note |
|---|---|---|
| +91 98765 43210 | 919876543210 | Plus sign and spaces removed |
| 0044 7911 123456 | 447911123456 | Leading 00 removed |
| (415) 555-0123 | 4155550123 | No country code added |
| 1234567890123456 | Error | 16 digits is over the 15-digit limit |
Worked example: message with punctuation
The number +91 98765 43210 with the message Hi, I'd like a quote for 2 items & delivery? produces https://wa.me/919876543210?text=Hi%2C%20I'd%20like%20a%20quote%20for%202%20items%20%26%20delivery%3F. The comma is %2C, the ampersand is %26, the question mark is %3F and the apostrophe stays as typed. What WhatsApp then does with the link is up to WhatsApp; the tool only produces the text of the URL and cannot test it.
Worked example: line breaks
The number 14155550123 with a two-line message, Line one then Line two, produces https://wa.me/14155550123?text=Line%20one%0ALine%20two. The new line is the %0A sequence between the lines. This is the way to prepare a short formatted enquiry, such as a product code on one line and a question on the next, without worrying about how the URL will be read.
Before you publish a link
Check three things. First, the country code: the tool will happily build a link for a number with none, and the link will then point at a different number. Second, test the link on a phone and a computer. Third, keep the message short and specific. If you change the number or message, regenerate the link, because the encoded text is baked into the URL.
What the tool leaves to you
It does not verify that a number is registered with WhatsApp, shorten the URL, generate a QR code or track clicks. The only validation is the digit cleaning and the 15-digit ceiling. Nothing else is stored or validated, and the link carries only the number and the message text.
Learn more from an authoritative source:
WikipediaWhatsApp Opener
Open a WhatsApp chat with any number instantly — without saving the contact. Useful for one-time chats and quick messaging.
YouTube Subscribe Link Generator
Generate a YouTube subscribe link that triggers the subscribe confirmation the moment someone clicks it.
Password Generator
Generate strong, random passwords with custom length and character sets.
Random Number Generator
Generate random numbers within any range — integers or decimals, single or multiple.
Dice Roller
Roll any number of dice with custom sides — D4, D6, D8, D10, D12, D20, D100, or custom.
Coin Flip
Flip a virtual coin — heads or tails. Flip multiple times and see statistics.
Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →