How to make an SMS link with a pre-filled message

November 16, 2026 • Digital Marketing • 10 views • 7 minutes to read

Paper collage of a speech bubble linked by a dotted line to a phone outline

Learn how to create an SMS link or QR code with a pre-filled message, add it to your website, and troubleshoot missing text on iPhone and Android.

To make a text message link with a pre-filled message, put the phone number after "sms:" and the message after "?body=", writing spaces as %20, for example sms:+12025550123?body=Hi%20there. On supported phones and messaging apps, tapping the link or scanning it as a QR code opens the messaging app with the number and text filled in, and the person can review the message before sending it.

The SMS link format and how to write the message

The format comes from RFC 5724, the standard for sms links, published as a Proposed Standard in January 2010. A link starts with "sms:", then one or more recipients, then an optional "?body=" with the message. The body can appear only once in a link, and its value has to be percent-encoded. In practice that means a space becomes %20, a comma becomes %2C and an apostrophe becomes %27.

The RFC's own example is sms:+15105550101?body=hello%20there, which opens a message that starts with "hello there." A version for a hypothetical local business could look like the link below. The number is made up, so use your own SMS-capable number when you test.

sms:+12025550123?body=Hi%2C%20I%27d%20like%20a%20quote

When the message is pre-filled, it reads "Hi, I'd like a quote."

Why the pre-filled message may not show up on iPhone or Android

RFC 5724 defines "?body=", but support varies across phones, browsers and messaging apps, and some combinations open a new message without the text. Apple's and Google's official references don't describe the body part the way the RFC does. Here is how the official documentation differs, as read on October 29, 2026.

SourceWhat it saysDate
RFC 5724sms:+1 number, then ?body= with the message. The body appears once, and the user sends the messagePublished January 2010
Apple SMS Links (archived)sms:<phone> only. The link shouldn't contain message textLast updated September 19, 2017
Apple, default messaging app guidesms:NUMBER, and the URL must not include message textCurrent documentation
Android common intentssms: and smsto: are handled the same way. Apps pass the text as an "sms_body" extraRead October 29, 2026

Apple's archived "SMS Links" reference describes a plain sms link followed by a phone number. The number can contain the digits 0 to 9, plus signs, hyphens and periods, and the reference says the URL shouldn't include message text. Apple's newer guide, Preparing your app to be the default messaging app, describes the sms format the same way, as sms:NUMBER, and says the URL must not include message text. So Apple's published documentation doesn't establish support for "?body=". Test pre-filled messages on the iPhones and messaging apps your audience uses.

Android's developer guide to common intents says the sms, smsto, mms and mmsto schemes "are all handled the same way," and that an app passes the message text in an extra called "sms_body." That section is written for Android apps. How a "?body=" link on a web page behaves depends on the browser and the messaging app.

Some guides suggest "&body=" for iPhone or "?&body=" to cover both. RFC 5724 defines "?body=" as the standard way to add a message. In its grammar, "&" only separates one field from the next, so "&body=" with nothing before it and "?&body=" with an empty first field don't follow the standard syntax. Treat them as workarounds to test, not as reliable fixes.

How to put a text message link on a website, in an email or on a bio page

On a website, a text message link is an ordinary HTML link with the sms address in the href. These two versions are for a made-up business.

  • Number only, <a href="sms:+12025550123">Text us</a>
  • With a message, <a href="sms:+12025550123?body=Hi%2C%20I%27d%20like%20a%20quote">Text us for a quote</a>

In an email, paste the same address as the link target if your email editor lets you set a custom link address. Whether it opens the messaging app depends on the reader's email app and phone, so send yourself a test first.

On a bio page, it depends on your plan. BioLink.page is our product. On its free plan, the Link block and short links accept only http and https addresses. An sms link is rejected with an "invalid location url" message, because the plan setting called "Deep linking" is turned off. Starter and Pro have it turned on, so an sms link works as a destination there. On those plans, add a Link block, paste the full sms address with the message already encoded, give the button a label such as "Text us for a quote," save, and tap it on your own phone.

Before you paste the link, write the spaces in the message as %20. In a local test of a copy of our link checker's code, plain spaces were removed, so "?body=Hi there" came out as "?body=Hithere". We haven't repeated this in the live dashboard, so reopen the saved link to check the message.

On Starter, the "Call to action" block also has an SMS type, and it takes a phone number only. The free plan's Socials block has Telephone and Email icons but no SMS icon. On the free plan, you can make an SMS QR code for flyers, menus or anywhere you can show the code. That is a printed code, not a tappable text button on the bio page.

How to make an SMS QR code in BioLink.page

You can make an SMS QR code on every BioLink.page plan, including the free one. Each code counts toward your plan's QR code total, which is 10 on the free plan, 50 on Starter and 100 on Pro.

  1. Open "QR Codes" and choose "Create QR code."
  2. Pick the type "SMS."
  3. Enter your SMS-capable number in "Phone number," with the country code, such as +1. The field allows up to 32 characters, which is a form limit, not a phone number rule.
  4. Type your text in "Prefilled message," up to 160 characters. Normal spaces are fine in this field.
  5. Test the code on two phones before you print it.

The code stores the RFC format, an sms link with your number followed by ?body= and the message percent-encoded, so the spaces become %20 for you. The number and message live inside the code itself, so the code is static. If either one changes, you have to make and print a new code. This is why static QR codes can't be edited once they're out in the world. Because the code points straight to an sms address without a BioLink.page tracking link, its scans are not recorded in your BioLink.page statistics.

Our guide to QR codes for restaurants and food trucks includes an SMS code example for catering requests. If you'd rather people save your details than text you, a vCard QR code for your contact details does that.

An SMS link fills in the text but doesn't send it

An SMS link is meant to open a message for the person to review and send. RFC 5724 says the body fills in the message and the person can change it before sending. Its security section says activating an sms link "SHOULD NOT" send a message without the user's approval. The person who taps or scans sees your text, can edit it, and sends it themselves if they want to. Write the message so it still reads well if they add a line of their own. The same section notes that SMS messages travel "without any provisions for privacy or integrity" and that in most networks sending them "is not a free service," so don't put sensitive details in a pre-filled message.

Sending one text link to more than one number

RFC 5724 lets a link list several recipients separated by commas, for example sms:+12025550123,+12025550124?body=Hi. The standard only says user agents "SHOULD support multiple recipients," so it isn't required, and some phones or apps may pick up just one number. Test it before you rely on it.

How to test an SMS link or QR code before you share it

  • Open the link and scan the QR code on an iPhone and on an Android phone. Check that both the number and the message appear.
  • Write the number with the country code, such as +12025550123.
  • If the message is missing, first check that the link uses "?body=" and that the message is percent-encoded. You can try the other variants as an experiment, but don't rely on them until they work on the phones you care about.
  • Put a comma, an apostrophe and an emoji in the message and check that each one comes through.
  • Try a longer message too. The 160-character limit belongs to the "Prefilled message" field in the BioLink.page QR generator. It is separate from SMS itself, where RFC 5724 describes 160 characters as the maximum in 7-bit form and notes that messages can be joined to form longer ones.
  • Open the link on a computer as well. A desktop browser may have nothing that handles sms links, so show your phone number or another way to reach you next to the button.
  • Scan a printed test copy before you order a full print run.

Once it works on both phones, you can create a free SMS QR code with BioLink.page and put it on your flyers, menus or counter signs.

0 ratings, average 0 out of 5