SMS QR Code Generator

Generate a QR code that opens a text message ready to send to a number you choose.

Enter a phone number to generate QR code

What this tool does

An SMS QR code uses the smsto: format. Scanning opens the messaging app with the recipient number and an optional pre-written message, so the customer just taps send.

The generator runs entirely in your browser as client-side JavaScript. The text, links, and credentials you enter are encoded directly into the QR matrix on your device — the payload is never transmitted to or stored on a server. The encoder selects the densest QR encoding mode that can represent your data (numeric, alphanumeric, or byte mode), applies the error-correction level you choose, and writes the resulting module grid into the canvas preview above. Because the data lives inside the image itself, the finished code is static: it never expires and never depends on a redirect service.

How an SMS code works, where to use it, and how to test it

How smsto: and sms: differ

An SMS QR code encodes a URI that should open the messaging app with a recipient and, optionally, a draft. There is no single syntax every phone prefers. Android has long accepted smsto:number:message. iOS has historically preferred sms:number?body=message. Current cameras often accept both, but a code that fills both fields on one platform can open a blank compose screen on the other. The number is just as important as the scheme. A 5- or 6-digit shortcode works only in the country where it is registered. A full number with a plus and country code works for travellers and is the safer default. The URI does not send the text. The person scanning still confirms. Messages over 160 characters may be split, and some phones warn before sending a multi-part draft.

Keyword replies, reminders, and contests

Use an SMS code when the action is a short reply you can route automatically: JOIN for a loyalty list, CONFIRM for an appointment, a keyword for a contest, or a one-tap note to a dispatch number. It is a weak choice for long explanations — those belong on a web page. Marketing texts that follow the opt-in are regulated. A scan that pre-fills JOIN can be the consumer’s opt-in only if you record it and honour STOP immediately on later messages. Do not print a shortcode for an audience that includes people outside that shortcode’s country. Match the number in the printed instructions to the number inside the code; a mismatch is an expensive reprint.

How to test across carriers and platforms

Test on one iPhone and one Android phone before any print run, using the same code. Confirm the recipient and the draft body, then send the message to a number you control and confirm it arrives as one segment. If you use a shortcode, test from a handset on a carrier in that country, not from a foreign roaming SIM — roaming is exactly where shortcodes fail. Forget any previous draft so you are not looking at a cached compose screen. Print a proof at the poster size and scan it from the distance people will actually stand. After a successful send, reply STOP if this is a live keyword, and confirm the opt-out path works before you invite the public. A code that opens the app but names the wrong number is a failed test even if the matrix scans cleanly.

The smsto: format and its limits

An SMS QR code encodes an smsto: string — smsto:number:message — which most Android phones open with both the recipient and message filled. iOS historically prefers sms:number?body=message, and most modern scanners handle both, but the fragmentation is real. The number you encode matters as much as the format: a shortcode (5–6 digits) only works in the country where it is registered, so a code scanned by a traveller abroad will fail unless you use a long number with a +country code.

Keyword campaigns and one-tap replies

The conversion win is the one-tap reply. A code that pre-fills JOIN or CONFIRM removes the typing that loses most follow-through, and the keyword lets you route inbound messages automatically. Because the draft is not sent until the scanner confirms, it stays consent-first. Remember that SMS marketing is regulated: you must log prior consent, honour opt-outs immediately, and include a clear reply STOP to unsubscribe path on every campaign message that follows — the code only starts the conversation, it does not exempt it from the rules.

Testing across platforms before you print

An smsto: string is short, so Level M and a 2.5 cm minimum print are usually enough, but the one non-negotiable is testing on both an iPhone and an Android before any print run, because the two platforms parse SMS links differently and a code that works perfectly on one may open blank on the other. Keep the pre-filled message under 160 characters so it sends as a single text, and make sure any printed instructions name the same number the code encodes — a mismatch between the printed text and the encoded number is a common, expensive mistake.

Download your QR code

PNG for screens, SVG for large-format printing, PDF for print shops.

Optimal settings

Error correction: M (Medium)Min. print size: 1 inch (2.5 cm)

An smsto: string is short — a number plus a brief keyword — so Level M error correction keeps the pattern compact and resilient. Print at least 1 inch (2.5 cm) square on posters and counter cards; if the pre-filled message runs long, scale the print size up to keep the finer modules scannable from a normal scanning distance.

Running a keyword signup campaign?

Read our small business QR playbook

How it works

  1. 1You enter the destination phone number and an optional message.
  2. 2The generator builds an smsto: string and encodes it into the QR pattern.
  3. 3Scanning opens the SMS app with the number and message filled in.
  4. 4The sender reviews and taps send.

When to use it

  • Keyword campaigns ("Text JOIN to 12345 for offers")
  • Appointment reminders that let patients reply with one tap
  • Delivery or service updates where a quick text reply is needed
  • Contests and giveaways with a shortcode entry

Examples of what to encode

Loyalty signup

To: 12345 · Message: JOIN

Appointment reply

To: 555-0199 · Message: CONFIRM

Info request

To: 555-0142 · Message: Send menu

Why SMS codes behave differently on every phone

There is no single universal SMS QR format. This generator uses smsto:number:message, which most Android phones open with both fields filled. iOS historically prefers sms:number?body=message. Most modern scanners handle both, but the fragmentation is real — which is why the one rule for SMS codes is to test on one iPhone and one Android before you print anything.

The number you encode matters as much as the format. A shortcode (like 12345) only works in the country where it is registered. A long number with a +country code works internationally but is harder to remember. If your campaign says "Text JOIN to 12345", the code and the printed text must agree exactly.

Messages longer than 160 characters are split into multiple SMS on the sender's side, and some phones show a warning before sending a multi-part message. Keep the pre-filled message short — a keyword plus one or two words is the reliable pattern.

SMS compliance: shortcodes, keywords, and opt-out rules

SMS marketing is regulated. In the US, the Telephone Consumer Protection Act and carrier guidelines require explicit prior consent before sending marketing texts — a QR code that pre-fills a keyword is the consumer opting in, but you must log that consent and honor opt-outs immediately for every message that follows.

Shortcodes (5–6 digit numbers) are leased and country-locked. A shortcode registered in the UK will not work for a scanner in the US. For international audiences, use a long number with a +country code. Every campaign message must include a clear opt-out path (reply STOP to unsubscribe) so the recipient can exit as easily as they joined.

Carriers audit keyword campaigns. A code that drives traffic to a number without proper registration can have its traffic blocked at the carrier level, so register your shortcode and keyword with your SMS provider before printing anything in quantity.

Common mistakes to avoid

  • Using a shortcode for a campaign that travellers might scan — shortcodes are country-locked.
  • Not testing on both iOS and Android, since the two platforms parse SMS links differently.
  • Pre-filling a message longer than 160 characters, which splits into multiple texts.
  • Pairing the code with printed instructions that name a different number than the one encoded.

Practical tip

Use the full international format (+country code) if the code may be scanned by travellers. Shortcodes work only within the country they are registered in.

Frequently asked questions

Why does the SMS code open blank on an iPhone?

iOS and Android parse SMS links differently. Android has long accepted smsto:number:message, while iOS historically prefers sms:number?body=message. Most modern scanners handle both, but a code that fills both fields on one platform can open an empty compose screen on the other. Always test on both before printing.

Can I use a shortcode for an international campaign?

No. Shortcodes (5–6 digit numbers) are registered per country and only work within that country. A traveller scanning the code abroad will get an error. For international audiences, use a full long number with a +country code, and match the number in your printed instructions exactly.

Is SMS marketing via QR code compliant?

A scan that pre-fills a keyword can be the consumer's opt-in, but you must log that consent and honour STOP opt-outs immediately on every message that follows. SMS marketing is regulated (for example, under TCPA and carrier rules in the US), so register your shortcode and keyword with your provider before printing in quantity.

How this tool handles your data

Everything here runs in your browser. The text, links, passwords, and contact details you enter are encoded into the QR image on your device — they are never uploaded to or stored on a server. Nothing is retained after you leave the page.

Test and check your code

Before you print or publish, use these free tools to make sure your code scans reliably.