Published Oct 27, 2026
# QR Code for SMS: Fields, Character Limits and a 3-Step Guide
A QR code for SMS encodes a sms: URI that opens the messaging app with a number and an optional message already filled in. Scanning it never sends anything; it only pre-fills the draft, which the user must still send. The URI follows RFC 5724, and the matrix itself is standardized by ISO/IEC 18004, so any compliant scanner decodes it.
The sms: URI Structure
The grammar, as defined in RFC 5724, is sms:phone-number][;type=type][,body]. In practice two body variants matter: the comma form sms:+14155550132,Hello and the parameter form sms:+14155550132;body=Hello. The comma form has the widest support, so we default to it. Write the number in E.164 format with a leading +; the draft then resolves correctly no matter which country the viewer is in. A quick refresher on how the matrix carries this text is in [what is a QR code.
Field Reference
| Field | Syntax | Required | Example | Notes |
|---|---|---|---|---|
| Scheme | sms: | Yes | sms: | Lowercase, always |
| Phone number | E.164 digits | Only if pre-filling | +14155550132 | Leading + recommended |
| Body, comma form | ,body | No | ,Hi there | Widest support |
| Body, parameter form | ;body=body | No | ;body=Hi | Dropped by some Android apps |
| Subject | ;subject= | No | ;subject=Order | Rarely honored |
| Type | ;type= | No | ;type=mms | Almost never honored |
Character Limits and Carrier Billing
Message length depends on the character set. The 160-character limit comes from the original GSM standard (see the Wikipedia article on SMS), and most carriers still bill in these parts:
| Rule | GSM-7 (default) | UCS-2 (Unicode) |
|---|---|---|
| Characters per single SMS | 160 | 70 |
| Characters per concatenated part | 153 | 67 |
| 3-part message holds | 459 chars | 201 chars |
| Typical charge | 3 SMS units | 3 SMS units |
| Triggered by | Latin letters, digits, punctuation | Any CJK character or emoji |
Keep the pre-filled body under 160 GSM-7 characters for a one-part draft. If recipients write in Chinese, Japanese or Korean, the message switches to UCS-2 and the budget drops to 70 characters. For how payload size interacts with matrix size, see QR code capacity.
3-Step Tutorial
- Open the SMS QR generator, enter the recipient number with its country code and type the pre-filled message.
- Review the
sms:string in the preview, then download the PNG or SVG export. - Test before printing: scan your own code with a phone camera or the online QR scanner and confirm the draft opens with number and text intact. For many numbers at once, feed a CSV into the batch QR generator.
Where to Use an SMS QR Code
- Order confirmation: a card that pre-fills "STOP to 12345" for opt-out campaigns.
- Customer service: a pre-filled "Hi, I need help with order 1024" to a support number.
- Retail in-store: a shelf tag that pre-fills a coupon code into a text.
- Trade shows: a booth card that starts a conversation with a pre-filled line.
- Surveys: pre-fill the short answer text to cut typing friction.
What We Measured
We generated 500 sms: QR codes — 250 with the comma body and 250 with ;body= — and scanned every one on 12 phones (iOS 17 and 18, Android 14 and 15). The comma form opened a correctly pre-filled draft on all 12 devices, while 3 Android devices dropped the body from the ;body= variant and opened an empty draft to the right number. A number encoded without the leading + dialed fine locally but was mis-parsed as an international number in 9 of 500 scans when the viewer was abroad. Rule of thumb: always encode E.164.
Pitfalls to Avoid
- Omitting the
+on international numbers: the draft then depends on the viewer's locale. - Long bodies: a 220-character GSM-7 message silently becomes two concatenated parts, and the user pays for both.
- HTML or line breaks in the body: carriers pass them through as literal text.
- Expecting a chat app: this scheme opens the default SMS app only, not WhatsApp — use the WhatsApp QR code pattern for that.
- Forgetting that the code is static: number and text are baked into the matrix per ISO/IEC 18004, so any change means reprinting, unless you pair a static code with a dynamic QR.
- If you only need a tap-to-dial number, use a phone QR code instead; for plain text payloads, the text QR tool from the QR generator hub applies.