SMS Link Generator

Build sms: click-to-text links with a prefilled message, plus the HTML snippet, a QR code and an SMS segment count.

Enter a phone number or a message to build your SMS link.

No uploads. Your files stay on your device.

Free forever, no sign-up, no cookies. Buy me a coffee

How it works

An SMS link (also called a click-to-text or sms: link) opens the phone’s messaging app with the recipient — and optionally a whole message — already filled in, so someone can text you in one tap from a web page, email signature, QR code or ad. Type a number and a message and the link is built as you type: the number is normalised to digits and a leading +, and the message is percent-encoded so spaces, commas, line breaks and emoji survive the trip. Separate several recipients with commas to build a group link.

The tricky part is the separator between the number and the message. RFC 5724 says ?body=, older iOS builds only understood &body=, and the ?&body= hybrid is the one that behaves on current iPhones and Android alike — so it is the default here, with the other two a dropdown away. The counter below the link shows whether your text fits the 160-character GSM-7 alphabet or drops to 70 characters per segment because of an emoji or a curly quote, which is what decides how many SMS messages a carrier bills. Copy the raw link, a ready-made HTML anchor or a Markdown link, or download a QR code as a PNG. Everything is built in your browser with plain JavaScript — no phone numbers or message text ever leave your device.

Frequently asked questions

How do I create an SMS link with a prefilled message?

Type the phone number and the message you want waiting in the composer, and the link is built as you type. The number is normalised to digits with an optional leading + country code, and the message is percent-encoded so spaces, commas, line breaks and emoji survive. Drop the finished link into an href, a QR code, an email signature or an app deep link — copy it raw, as a ready-made HTML anchor like <a href="sms:+15550109999?&body=Hi">Text us</a>, or as a Markdown link.

Does an sms: link work on both iPhone and Android?

Yes, but the separator between the number and the message matters. RFC 5724 specifies ?body=, older iOS builds only understood &body=, and the hybrid ?&body= is the form that behaves on current iPhones and Android alike — so it is the default here, with the other two available in the Link format dropdown. If your message refuses to prefill on one platform, switching format is almost always the fix. Note that some in-app browsers and desktop mail clients strip sms: links entirely, so keep a visible phone number next to the button as a fallback.

How many characters can an SMS link message be?

A single SMS holds 160 characters in the 7-bit GSM alphabet, but one emoji, curly quote or accented character outside that alphabet switches the whole message to UCS-2 and drops the limit to 70. Longer texts are split into concatenated segments of 153 (GSM-7) or 67 (UCS-2) characters each and are usually billed per segment. The counter under the link shows the live character count, which encoding you are in and how many segments the carrier will send, so you can trim before you publish.

Report a bug