Free tool · Developer tools
SMS link generator
Enter a phone number and an optional message, and get a link that opens the text message app with both filled in. The default example gives sms:+15105550101?body=Hi%2C%20I%20would%20like%20to%20book%20a%20table%20for%204%20on%20Friday%20at%207%20pm., which is 109 characters long, plus the HTML and Markdown versions.
- Free
- No sign-up
- Runs in your browser
sms:+15105550101?body=Hi%2C%20I%20would%20like%20to%20book%20a%20table%20for%204%20on%20Friday%20at%207%20pm.one recipient, with a message
- 1 recipient
- 57 message characters
- 109 characters in the link
- Recipients in the link
- +15105550101
- Message characters
- 57
- Message bytes in UTF-8
- 57
- Characters outside plain ASCII
- 0
<a href="sms:+15105550101?body=Hi%2C%20I%20would%20like%20to%20book%20a%20table%20for%204%20on%20Friday%20at%207%20pm.">Text us</a>Markdown
[Text us](sms:+15105550101?body=Hi%2C%20I%20would%20like%20to%20book%20a%20table%20for%204%20on%20Friday%20at%207%20pm.)
| Character | Name | In the link | UTF-8 bytes |
|---|---|---|---|
| (space) | space | %20 | 1 |
| , | comma | %2C | 1 |
| & | ampersand | %26 | 1 |
| ? | question mark | %3F | 1 |
| # | hash | %23 | 1 |
| (new line) | line break | %0A | 1 |
| ' | apostrophe | %27 | 1 |
| é | e with acute | %C3%A9 | 2 |
| 😀 | emoji | %F0%9F%98%80 | 4 |
How to use the SMS Link Generator
- Type one or more Phone numbers, one per line or separated by commas, starting with + and the country code.
- Write the Message you want filled in, or leave it empty for a link that only opens a conversation.
- Set the Link text that visitors will see on the page.
- Copy the link, the HTML or the Markdown from the dark panel with the matching button.
How do you make an SMS link?
An SMS link is a normal web address that starts with sms: instead of https:. Tapping it on a phone asks the text message app to start a new message. After the scheme comes the number, and after a question mark comes body=, the text to fill in. The default input of +1 (510) 555-0101 and a short booking message turns into sms:+15105550101?body=Hi%2C%20I%20would%20like%20to%20book%20a%20table%20for%204%20on%20Friday%20at%207%20pm..
The link is built as RFC 5724 describes it. The number loses its spaces, brackets and dashes, so +1 (510) 555-0101 becomes +15105550101. The message is written as percent encoded UTF-8, which is why every space is %20 and the comma after Hi is %2C. The default message has 57 characters and the finished link 109.
A link with no message is only the scheme and the number, such as sms:+15105550101. Whether the phone shows a filled in draft, and how it treats the draft, is decided by the device and the messaging app, so test the link on the phones your visitors use before you print it on a poster or a flyer.
| Character | Name | In the link | UTF-8 bytes |
|---|---|---|---|
| (space) | space | %20 | 1 |
| , | comma | %2C | 1 |
| & | ampersand | %26 | 1 |
| ? | question mark | %3F | 1 |
| # | hash | %23 | 1 |
| (new line) | line break | %0A | 1 |
| ' | apostrophe | %27 | 1 |
| é | e with acute | %C3%A9 | 2 |
| 😀 | emoji | %F0%9F%98%80 | 4 |
Can one SMS link go to several people?
Yes. The standard separates recipients with commas, so two numbers become sms:+15105550101,+442079460958. The same message goes to everyone in the list. Type each number on its own line or divide them with commas, and the generator joins them for you. Repeated numbers are removed and counted in a chip, so a pasted list with a duplicate stays clean.
A comma inside the message is safe, because it is written as %2C and cannot be mistaken for a divider between recipients. A message of a,b gives sms:+15105550101?body=a%2Cb. The limit here is 50 numbers and 20 digits per number, which catches typing mistakes. That limit is the page's own and not part of the standard.
How do I add an SMS link to a web page?
The HTML box holds a ready anchor: <a href="sms:+15105550101?body=Hi%2C%20I%20would%20like%20to%20book%20a%20table%20for%204%20on%20Friday%20at%207%20pm.">Text us</a>. Paste it where the button should appear. Characters such as quotes, angle brackets and the ampersand in the link text are escaped for you. The Markdown box holds [Text us](sms:+15105550101?body=Hi%2C%20I%20would%20like%20to%20book%20a%20table%20for%204%20on%20Friday%20at%207%20pm.) for README files and documentation.
Phones and computers behave differently. A desktop browser without a messaging app may do nothing when the link is clicked, so show the number as plain text next to the link as well. To send people to a call or an email instead, use the tel link generator or the mailto link generator, and to print the link as a scannable square use the QR code generator.
Why does the number need a plus sign?
The standard says international numbers must begin with + and the country code, and that every number must use that global form unless it cannot. A number such as 5105550102 has no plus, so it counts as a local number, and the generator marks it with a chip. The phone then reads it by its own rules, which breaks as soon as someone opens the link from another country. Short codes of a few digits are the usual reason to leave the plus out.
Characters other than the digits, the leading plus and the separators space, dash, dot and brackets are refused with a message that names the character. Emoji and accented letters in the message are fine. An emoji such as the grinning face takes four bytes and appears as %F0%9F%98%80. The standard says the receiving program must convert the text to a character set that SMS can carry, and tell the user if characters are dropped. See the URL encoder and decoder for encoding other strings.
Use it with
- Mailto Link Generator: parser + emitter pairs; type inference from samples.
- Tel Link Generator: parser + emitter pairs; type inference from samples.
- QR Code Generator: QR for URL, text, logo, colors.
Questions
What is the format of an SMS link?
It is sms: followed by the number, then ?body= and the encoded message. For example sms:+15105550101?body=hello%20there.
How do I put a message into an SMS link?
Add ?body= after the number and percent encode the text. Spaces become %20, so hello there is hello%20there. The generator does this for every character.
Can I send a text to more than one number from a link?
Yes, separate the numbers with commas. Two numbers give sms:+15105550101,+442079460958.
Do I need the country code?
Yes, for numbers that people may open from other countries. Start with + and the country code, for example +44 for the United Kingdom, and drop the spaces and dashes.
Will the link work on every device?
No. It depends on the phone and the messaging app, and a computer without one may ignore it. Test the link on the devices your visitors use.
Does the generator send or store my message?
No. The link is built inside this page and nothing is sent anywhere. The number and message stay on your screen.
Sources
The tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations are checked against the tool's own output.