SMS QR Code Generator

Published Updated

Make a QR code that opens a text message to one number, with an optional pre-filled body. Digits from 20 other digit sets become ASCII and a leading plus is kept, but an extension is not understood: 555.123.4567 ext 89 becomes 555123456789.

How a typed number is cleaned

The page converts digits from 20 non-ASCII digit sets, and accepts the full-width plus sign. Results from Google Chrome 156:

You typeThe number used
+1 (555) 123-4567+15551234567
555 123 45675551234567
Arabic-Indic ٠٥٠١٢٣٤٥٦٧0501234567
Full-width +12345+12345
44+7700447700, the plus is dropped after a digit
555.123.4567 ext 89555123456789
ring SamNo code: invalid number

The sms: string

The format is defined by RFC 5724, whose example is sms:+15105550101?body=hello%20there. This page writes the same shape, so +1 (555) 123-4567 with the text Hello there gives sms:+15551234567?body=Hello%20there. Without a message the string is 16 bytes and fits version 1, the smallest QR code at 21 x 21 modules.

A full 160-character message reaches 182 bytes and version 9, at 53 x 53 modules.

Making a text message code

  1. Step 1

    Enter the number

    A leading plus is kept. If the box holds no digit at all, the message Enter a valid phone number appears and no code is drawn.

  2. Step 2

    Add the message text

    It is trimmed and percent-encoded after ?body=. Leave it empty for a code that opens a blank message. A space becomes %20 and an ampersand %26, so the text arrives unchanged.

  3. Step 3

    Download PNG or SVG

    The panel beside the form offers PNG or SVG, with sizes from 100 to 1000 pixels. Preview the code on the phone you expect to use before printing.

Related code types

An sms: code opens the phone's default messaging app, per RFC 5724, so it cannot choose a chat service for the reader. Two neighbours cover other apps:

SMS code questions

Which format should the number be in?

Use the international form with a plus, such as +15551234567, so the link works from any country. Without the plus, the digits are written as typed, so a number from another country carries no country code.

Why is my extension merged into the number?

Every digit in the box is kept in order and everything else is dropped. In 555.123.4567 ext 89 the digits 89 join the number. Type the number alone.

Can I text several people with one code?

RFC 5724 allows a comma-separated list, but this page writes one number only. Make a code per recipient.

Can the sender change the text?

Per RFC 5724, the message in the body field is only an initial value and may be modified by the user before sending. Treat it as a suggestion.

What happens to a line break?

A line feed is written as %0A, and an ampersand as %26, so a message of two lines and an ampersand survives intact. The code gets denser with each added byte.

Does the number leave my device?

No. The sms: string is assembled in the page and drawn with the qrcode library. There is no upload or log, and the number never leaves the tab.

Related Tools