Skip to content

01SMS code

Create a QR code for a text message.

One scan, and the messaging app opens to your number with the text already written: “INFO”, “Booking 2 seats”. The person taps Send. The generator counts characters the way the phone does.

On scan, the phone…
A short code (such as 311) is kept as is.
The person can edit it before sending.
Both open the messaging app, ready to send.

Fill in the form: the code appears here.

    SVG or PDF for print, PNG for screens.

    AppearanceColors, shapes, frame, logo

    Colors

    Module shape

    Finder pattern shape

    Decorative: only the code in the center is read.
    Logo in the center
    PNG, JPEG or SVG, 2 MB at most.
    The higher it is, the better the code resists wear, but the denser it gets.

    Several codes? Bulk creation

    Static code: it never expires.

    02How it works

    The text message
    ready to go.

    The code holds your number in international format and the message to send.

    Default format: SMSTO:, which Apple documents for the iPhone camera with a pre-filled message. The standard sms: format is also available.

    Uses: keyword sign-ups, bookings, confirmations, votes, callback requests, equipment failure alerts with the serial number.

    03Two forms

    SMSTO: or sms:,
    and why.

    Here is what our generator writes for a booking, in both forms:

    SMSTO:+12125550123:Hi, I'd like to book 2 seats for Saturday.
    SMSTO:number:message. The text is written as is.
    sms:+12125550123?body=Hi%2C%20I%27d%20like%20to%20book%202%20seats%20for%20Saturday.
    sms:number?body=message. The text is percent-encoded: spaces and accents become % sequences.
    • SMSTO: is the QR code readers’ form, with no official specification: ZXing says it was “observed in the wild”[2]. Apple documented it for the iPhone camera, which pre-fills the message[4], while Apple’s sms: links accept no text[5]. Hence our default.
    • sms: is the standard form: the message goes in body, percent-encoded[1]. Android treats sms: and smsto: the same way[6].
    • The number in international format (+1…), as the standard requires[1]. France’s overseas territories have their own codes (see the phone code).
    • One tool, three actions: it also prepares a call or a WhatsApp chat.

    04160 or 70

    One accent
    that costs a lot.

    An SMS holds 160 7-bit characters, or 140 bytes[1]. The GSM alphabet has é, è, ù, à, ì, ò, É and Ç, but not ê, â, î, ô, û, ë, ï, ç or œ[8]. A single one of these, or an emoji, and the whole message switches to UCS-2[8]: 70 characters per SMS.

    Length counted by the generator, by alphabet
    MessageAlphabetCharactersSMS
    “Hi, I'd like to book 2 seats for Saturday.”GSM 7-bit42 of 1601
    “Hi, I'd like to book 2 seats for the crêpe night.”UCS-2, because of “ê”49 of 701

    The generator counts as you type and names the characters that switch the message, including the curly apostrophe (’). A button replaces them with their GSM equivalent (ê with e, œ with oe, ’ with ') and keeps é, è, à and ù[8]. Beyond one SMS, the message is split, which can cost more. The count follows the standard: some phones replace accents themselves.

    05iPhone and Android

    What the phone
    does.

    Only what is documented or measured is stated; the rest is marked “To test on a real device”.

    Reading an SMS QR code, by reader and format
    ReaderSMSTO:sms:?body=
    Our decoder (ZXing)Number and message unchanged, measured by our testsNumber and message unchanged, measured by our tests
    Android: Google’s reader (ML Kit)To test on a real device “SMS” type recognized[7]; pre-filled message not documented for the camera.To test on a real device “SMS” type recognized[7]; pre-filled message not documented for the camera.
    iPhone: cameraTo test on a real device Messages opens with the text on iOS 11[4]; still to be confirmed on a recent iOS.To test on a real device Messages opens to the number[4]. The text is not documented[5].

    In every case, the text is never sent on its own: the standard forbids it[1], and readers open a message the person sends themselves[2][6].

    06Pitfalls

    What makes
    the message fail.

    • Promising an automatic send. The code prepares the text; the person sends it[1].
    • The cost. A text can cost the sender money, and the standard requires their consent[1]. Say so if your number is premium-rate.
    • The “+” and the spaces. In sms:, ZXing turns a “+” into a space[3]: the generator writes %2B and %20. SMSTO: is not decoded[3].
    • iPhone tricks found online (&body=, ;body=) are meant for Safari. In a QR code, stick to SMSTO: and sms:?body=[3].
    • Several recipients. The standard allows them[1], but ZXing reads only one in SMSTO[3]: the generator writes only one.
    • A number that changes. You must reprint: prefer a dedicated number to a personal mobile.

    07Print size

    SMSTO:,
    more compact.

    SMSTO: writes the message without the % of sms:, so the code is slightly less dense. For the example above, our size calculator gives:

    Minimum side by format and reading distance
    FormatModulesFlyer (40 cm)Poster (1.5 m)
    SMSTO: (default)33 × 335.5 cm20 cm
    sms: (RFC 5724)37 × 376 cm22.5 cm

    Common rule, not yet measured by us: test a print with an iPhone and an Android phone.

    08Questions

    Frequently
    asked questions.

    Is the text sent automatically on scan?

    No. The phone opens a message ready to go; the person edits it, sends it or drops it.

    How many characters can I write?

    160 per SMS in the GSM alphabet, 70 as soon as one character falls outside it (ê, ç, œ, ’, emoji). The generator flags them as you type.

    SMSTO: or sms:?

    SMSTO: by default: Apple documents it with a pre-filled message, and the code is more compact. sms: is the standard form (RFC 5724).

    Does it need an internet connection?

    Not to read the code. Sending goes through the mobile network, like any text.

    How much does the text message cost?

    The price of a text on the sender’s plan; more if the message is split into several.

    Can I send to several numbers?

    The generator writes only one: not every reader handles more.

    Will the code expire?

    No, it goes through no server. If the number or message changes, create a new code.

    09Sources

    Sources
    and dates.

    Every technical claim on this page links to one of these sources, with the date it shows and the day we read it.

    1. [1]

      RFC 5724: URI Scheme for Global System for Mobile Communications (GSM) Short Message Service (SMS)IETFSections 1.2.4, 2.2 and 4.Date shown: January 2010 · accessed November 19, 2026

    2. [2]

      Barcode Contents: SMSZXing project, wikiThe wiki says it is still looking for an official SMSTO specification.Date shown: October 16, 2026 · accessed November 19, 2026

    3. [3]

      ZXing: SMSTOMMSTOResultParser.java and SMSMMSResultParser.javaZXing project, source codeCode read at commit 16ef432. ZXing is also QR Samurai’s decoder.No date shown · accessed November 19, 2026

    4. [4]

      QR Code Recognition on iOS 11Apple Developer, Tech TalksBehavior described for iOS 11.Date shown: December 21, 2017 · accessed November 19, 2026

    5. [5]

      SMS Links: Apple URL Scheme ReferenceApple Developer, archived documentationDate shown: September 19, 2017 · accessed November 19, 2026

    6. [6]

      Common intents: MessagingAndroid DevelopersDate shown: October 28, 2026 · accessed November 19, 2026

    7. [7]

      ML Kit: Barcode scanningGoogle for DevelopersRecognized types, including “SMS message prompts”.Date shown: November 9, 2026 · accessed November 19, 2026

    8. [8]

      ETSI TS 123 038 V17.0.0: Alphabets and language-specific information (3GPP TS 23.038)ETSISection 6.2.1 (GSM 7-bit alphabet) and 6.2.3 (UCS2).Date shown: April 2022 · accessed November 19, 2026