How to make a Text message (SMS) QR code

An SMS QR code opens a new text message to your number — the code for “text us to join”, ordering by message, or voting. On some phones it can also fill in the message.

Updated · from 3 official sources · DRISH LABS

What the code contains

A QR code is text. For this kind, the text has to follow this exact pattern:

sms:<+country number>?body=<percent-encoded message>

Filled in, it looks like this:

sms:+15105550101?body=JOIN

What happens when someone scans it

The link opens the phone’s messaging app with your number filled in. Apple documents the sms scheme as launching Messages, and its URL reference says the link carries only the number — so whether the message text pre-fills on an iPhone depends on the scanner. Android usually fills in both. Test on the phones you expect before relying on the body.

Make one free

  1. Open the QR Code Generator and leave it on Text.
  2. Type the payload yourself, for example sms:+15105550101?body=JOIN — a scanner reads the text, not the form it came from.
  3. Download the code and scan it with an iPhone and an Android phone to see what each fills in.

Open the free QR code generator — it runs in your browser and uploads nothing.

So it works when it is printed

  • Write the number with its country code (RFC 3966’s global form), so it works from abroad.
  • RFC 5724 defines the message as ?body=…; ZXing also reports older forms seen in the wild, sms:number:message and SMSTO:number:message. If one form does not pre-fill on your phones, try another.
  • Spaces in the message must be %20.
  • Scan the finished code with two different phones before you print a batch — it is the only test that counts.

Questions

Can an SMS QR code send the message by itself?
No. It opens a draft; the person still taps Send.
Why is the message empty on my iPhone?
Apple’s URL reference documents the sms link as carrying a recipient only, so not every iPhone scanner passes the message text through. The number still fills in; put the keyword on the printed sign too.
Can one code text several numbers?
The sms URI allows several recipients separated by commas (RFC 5724), but phones handle that inconsistently. One number per code is the reliable choice.

Sources

Requirements change without notice. Check the official source before you rely on a figure here.

QR Craft iconThe faster way

QR Craft

A QR code generator for Mac that adds your logo and checks it scans.

Not today? Get an email when QR Craft gets better
QR Craft on macOS