SMS QR Code Generator
A text to your number, with the keyword already typed.
An SMS QR code opens a text to your number with a message prefilled. Use it for keyword sign-ups and quick enquiries, and read the opt-in rules first.
Physical Vector Print
Print it, then test it
Scan
Scan
Brand SMS
+44 800 123 456
Thanks for scanning! Reply DEAL to get 20% off your next order.
DEAL
Your 20% off code is: SCAN20. Valid until 31 July 2026.
Device Destination
What users experience
Make one now
Triggers pre-written SMS for customer opt-in promos. Type below to generate an instant vector QR code:
Color Palette
Pattern Style
Scan to Test Live
Reed-Solomon Level H (30% Redundancy)
Practical Guide
SMS links on iPhone and Android
An SMS QR code opens the phone's messaging app with your number in the To field and, if you set one, a message already written. The person reads it and taps Send. A static code holds the text-message instruction itself, so it works without a data connection. A dynamic code holds a short ScanOrbit link that forwards to it, so it needs a connection to open and lets you count scans.
Two formats are in use. SMSTO (number, then message) is what Apple's developer talk says an iPhone camera supports for prefilling the message, and the Android developer documentation lists both smsto: and sms:, saying they are "all handled the same way". The sms: link in RFC 5724 puts the message in a body parameter, for example sms:+15105550101?body=hello%20there. Apple's own page for sms: links in Safari documents the number only and says the link must not include message text.
That difference shaped how ScanOrbit works. A static code stores SMSTO, which Apple documents for the camera. A dynamic code reaches the phone through a browser redirect, and we found no source that says Safari follows a redirect to smsto:, so dynamic codes now redirect to the RFC sms: form. On an iPhone the number is certain; whether the message prefills is behavior Apple doesn't document, so test it before you print.
“The number always arrives. Whether the message prefills depends on the phone, so test your keyword on an iPhone and an Android phone.”
What iPhone and Android document
The two platforms document SMS links differently, which is why a prefilled message is the part to test:
| Source | What it says | Meaning |
|---|---|---|
| RFC 5724 (2010) | The message goes in a body parameter, percent-encoded; its example is sms:+15105550101?body=hello%20there. International numbers "MUST begin with a '+'". | The standard form for sms: links. |
| Apple Developer, SMS Links (archived, 2017) | The format is sms:<phone>, and "The URL string must not include any message text or other information." | Apple documents the number only for links in Safari. |
| Apple Developer, QR recognition on iOS 11 | The camera supports an SMS URI, which opens a message to that number, and the SMSTO format "allows you to prepopulate the text message content". | Static SMSTO codes are the documented way to prefill from the iPhone camera. |
| Android Developers, common intents | Lists sms: and smsto:, and says they are "all handled the same way". | Either format works on Android. |
What the texting rules say
A QR code makes it easy to collect numbers, and in the US marketing texts come with rules. This is a summary of the sources, not legal advice.
| Source | What it says |
|---|---|
| 47 CFR 64.1200 | "Prior express written consent" means a written, signed agreement (an e-signature is allowed) that clearly authorizes marketing messages to that number, with a clear and conspicuous disclosure. |
| 11th Circuit, January 24, 2025 | In Insurance Marketing Coalition v. FCC the court vacated the FCC's 2023 "one-to-one" consent requirement. The written-consent definition itself was not changed. |
| CTIA Messaging Principles, May 2023 | An industry guide, not law. Senders should obtain express written consent for marketing messages, and it lists "sending a message from the Consumer's mobile device that contains an advertising keyword" as an opt-in. It asks for a clear call to action, standard STOP wording, and a record of consent. |
How the message changes the code
A static code holds the whole instruction, so a longer message needs a denser code. We generated SMSTO codes with the QR library ScanOrbit uses.
| What's inside the code | Characters | Grid | Each square at 2 cm |
|---|---|---|---|
| SMSTO, number and a short keyword | 24 | 25×25 (29×29) | 0.61 mm (0.54 mm) |
| The same in sms: form | 27 | 29×29 (33×33) | 0.54 mm (0.49 mm) |
| SMSTO, number and a 140-character message | 159 | 53×53 (69×69) | 0.33 mm (0.26 mm) |
| ScanOrbit short link (dynamic code) | 30 | 29×29 (33×33) | 0.54 mm (0.49 mm) |
The script is scripts/qr-density-test.mjs in our repository (run it with the argument messaging).
Where text codes fit
- Keyword sign-ups on packaging and flyers, where the person texts JOIN to your number.
- Customer service lines for people who would rather text than call.
- Appointment and delivery enquiries from a card or label.
- Event RSVPs: a text with the guest's name is a quick headcount.
Keywords and consent
Keep the prefilled message to a keyword
In our test, a 140-character message turned a 25×25 code into 53×53, with squares about half as wide (table below). A keyword keeps a static code small.
Say what the text does
A label like 'Text JOIN to get 10% off' tells people what the message is, which the CTIA's guidelines also ask for in a call to action: what the program is, who sends it, how to opt out.
Test the prefill on an iPhone
Apple documents the number for sms: links but no prefilled message. If the keyword doesn't appear on yours, use a static code, which Apple documents for the camera.
Plan for STOP
If you send marketing texts back, the CTIA says to use standard STOP wording for opting out and to keep a record of consent.
Why use one
- No number to type from a sign, and no keyword to get wrong
- A static code works without a data connection; the text goes over the phone network
- Dynamic codes count scans and can be pointed at a new number later
- Numbers are cleaned to digits and a leading + so they match RFC 5724
Vector Print Ready
Set up the text
Enter the number in international form
Start with + and the country code, for example +1 for the US. RFC 5724 says international numbers must begin with +.
Add a short keyword
For example JOIN or START. A keyword is easier to prefill reliably than a sentence.
Choose static or dynamic
Static holds the instruction itself and works offline, but can't be changed. Dynamic forwards through a short link, can be changed and counts scans.
Test on an iPhone and an Android phone
Check the number, and check the keyword appears in the message box.
What the scan does
Scan the code
Messages opens to your number
Keyword filled in, tap Send
SMS code questions
Does the text send when it's scanned?
No. The scan opens a message with the number filled in, and the person taps Send.
Do I need internet for it to work?
A static code doesn't: the phone reads the number and message from the code, and sends the text over the phone network. A dynamic code does, because it opens a ScanOrbit link first.
Is a text from a QR code counted as consent to marketing texts?
We can't give legal advice. The sources say this: the FCC's rules define prior express written consent as a signed agreement that clearly authorizes marketing messages, and the CTIA lists a customer texting a keyword as one way to opt in, but says marketing messages still need express written consent. Answering a customer who started the conversation is treated differently from sending marketing. Ask a lawyer before you run a campaign.
What is the difference between sms: and SMSTO?
Both open the messaging app. SMSTO is the format Apple's talk describes for prefilling a message from the camera. The sms: format is defined in RFC 5724 and carries the message in a body parameter. Android treats the two the same.
Can I use a short code instead of a full number?
You can enter one, but we haven't tested short codes on every phone and carrier. Test it before you print.
SMS or WhatsApp?
SMS opens the phone's own messaging app. WhatsApp needs the app or WhatsApp Web. Choose the one your customers already use.
Related QR Code Types
WhatsApp QR Code
A WhatsApp chat with your number, opened by a scan.
For richer conversations once WhatsApp is available to your audience
Email QR Code
An email already addressed, with the subject filled in.
For a more detailed message than a text allows
Phone Call QR Code
A number that dials itself, with no typing.
For when a voice call is genuinely faster than typing