An SMS QR code contains an sms: URI with a phone number and an optional pre-filled message. Scanning it opens the messages app with the text ready to send. It is a useful shortcut for customer service and enquiries, and the details of the URI vary between platforms. This guide covers the format, the encoding and the test that catches a message that never arrives.
The sms: URI Format
A common form is sms:+15551234567?body=Hello%20there. The number should be in international form with a leading plus. The body is URL-encoded: spaces become %20 or +, and an ampersand becomes %26.
Some platforms expect a semicolon before the body parameter instead of a question mark, and support for the body parameter varies. Test on the devices your audience uses rather than assuming one syntax works everywhere.
Keep the message short. A long pre-filled body is hard to edit on a phone and may be split into several SMS messages.
What the Scanner Sees
On iOS and Android, the native camera opens the Messages app with the number and body filled in. The user still has to press send, which prevents accidental messages.
Some third-party scanners show the raw URI instead. Test with the native camera on both platforms.
An SMS code is different from a tel: code. The tel: URI opens the dialler; the sms: URI opens a message composer. Label the code accordingly.
Choose the Use Case
| Scenario | Message | Why |
|---|---|---|
| Product support | I need help with order 12345 | Gives the agent context |
| Event RSVP | Yes, I will attend | Fast response |
| Sales enquiry | Please send the price list | Starts a conversation |
| Feedback | My feedback on today's service | Opens a channel |
Pre-fill only the first line. Let the customer add their own details rather than demanding fields they will not type on a phone.
Print and Privacy
An sms: URI with a short message produces a small grid. Keep a clear four-module quiet zone and print at 20 to 30 mm for a counter or poster placement.
Do not put personal data in the pre-filled body. The QR code can be photographed, and the decoded text is visible to anyone who scans it.
If the code is for a business number, check who receives the messages and whether they are monitored. A code on permanent signage needs a number that will still exist next year.
Test the Send
- Scan the proof with an iPhone and an Android phone.
- Confirm the number and body appear in the message composer.
- Send the message and confirm it arrives at the right inbox.
- Check the body encoding, especially spaces and punctuation.
- Confirm the number is still monitored.
The scan-to-text support guide covers when SMS beats a web form.
