SMS QR codes encode a special URI: SMSTO:number:message or sms:number?body=message. Getting the format wrong means the message body does not pre-fill — users see an empty text with just the number.
This is a common issue that frustrates marketers and users alike. The QR code scans successfully, the messaging app opens, the number is correct — but the message body is empty. The user has to manually type the keyword, which defeats the purpose of the QR code.
If your SMS QR code opens the messaging app but the body is empty, the format string is wrong. The most common cause is using the wrong URI scheme for the target platform.
Common format issues
There are two main URI schemes for SMS QR codes, and they behave differently across platforms:
- Wrong URI scheme: Some scanners prefer SMSTO: others prefer sms: — test both
- Unencoded special characters: Spaces and ampersands in the body need URL encoding
- Missing body parameter: sms:number without ?body=message opens an empty text
- Platform differences: iOS handles sms: differently from Android — test on both
The two URI schemes explained
The SMSTO: format is the most widely supported across both iOS and Android. It uses a simple colon-separated format: SMSTO:number:message. The sms: format uses a query parameter format: sms:number?body=message. Both work, but SMSTO: has fewer compatibility issues.
SMSTO: format
SMSTO:5551234567:JOIN — This is the simplest format. The number and message are separated by a colon. Most QR code scanners handle this format correctly on both iOS and Android.
sms: format
sms:5551234567?body=JOIN — This format uses a query parameter for the message body. It works on most devices but may require URL encoding for special characters in the body.
How to fix pre-filling issues
If your SMS QR code is not pre-filling the message body, follow these steps:
- Try the SMSTO: format instead of sms: — it has wider support
- URL-encode special characters in the message body (spaces as %20, etc.)
- Keep the message body short — long messages may be truncated
- Test on both iPhone and Android to identify platform-specific issues
- Avoid using newlines in the message body — they may not encode correctly
Platform-specific behavior
iOS and Android handle SMS QR codes slightly differently. Here is what to expect on each platform:
- iPhone: Opens Messages app with number and body pre-filled — user taps send
- Android: Opens Messages app with number and body pre-filled — user taps send
- Older Android: May only pre-fill the number, not the body — test on older devices
- Samsung: Uses Samsung Messages, which handles SMSTO: format reliably
QRKit's SMS QR Code Generator uses the SMSTO: format which has the widest cross-platform support for pre-filled messages.