More free tools:  InstantLinkHub· Feexio· SwiftConvertHub

SMS Link Generator: How to Create Click-to-Text Links for Any Website

SMS links let mobile visitors tap a button and start a text conversation with your business instantly. Here's how they work, where to use them, and how to handle the iPhone vs. Android syntax difference.

Advertisement

There's a reason SMS open rates hover around 98%. It's not a marketing trick — it's just that text messages appear in a place most people check constantly, without requiring an app download, a notification permission, or an algorithm deciding whether to surface them.

For businesses, that directness is valuable. And SMS links — click-to-text buttons embedded in websites, emails, or QR codes — are one of the simplest ways to get someone from "browsing your site" to "actively talking to your team" in a single tap.

How an SMS Link Actually Works

An SMS link uses the sms: URI scheme, which is built into both iOS and Android at the operating system level. When a browser encounters it, it hands the request off to the native Messages app, no third-party services required.

The basic syntax:

<a href="sms:+12025551234">Text us</a>

This opens the Messages app with your number pre-filled. The user writes their own message and sends it. You can go further by pre-filling the message body too — more on that in a moment.

One thing worth knowing upfront: SMS links only work on mobile devices. On a desktop or laptop, clicking one will either do nothing or show an error, depending on the browser. If you add an SMS link to your site, make sure it's in a context that makes sense for mobile visitors — or hide it on desktop using CSS.

The iOS vs. Android Syntax Problem

This is the part that trips people up. The two major mobile platforms use slightly different syntax to include a pre-filled message:

Android: uses a question mark before the body parameter:

sms:+12025551234?body=Hi%2C%20I%27d%20like%20more%20info

iOS: uses an ampersand:

sms:+12025551234&body=Hi%2C%20I%27d%20like%20more%20info

There's no single syntax that's officially correct for both. In practice, most modern Android versions also accept the ampersand format, so &body= tends to work more broadly. Our SMS generator uses the format with the best cross-platform compatibility, so you don't have to test it manually.

URL Encoding in SMS Links

As with mailto links, SMS link bodies need to be URL-encoded. Spaces become %20, commas become %2C, apostrophes become %27, and line breaks become %0A. Write a message like "Hi, I'd like to book an appointment" and the encoded version looks unreadable — but it works.

Again, the easiest approach is to use a generator that handles the encoding for you. Write the message in plain English, copy the output, and paste it into your HTML or wherever you need it.

Where SMS Links Actually Make Sense

Local service businesses: Plumbers, hair salons, landscapers, auto shops. A "Text to Book" button on a mobile website removes all the friction of calling during business hours. The customer taps, sends a quick message, and gets a reply when you're free.

Customer support for e-commerce: Order questions, return requests, delivery issues. If your customers are mostly on mobile — and for most e-commerce businesses, they are — a text conversation is often faster and less frustrating than a support ticket form.

Event RSVPs: A "Text YES to confirm your spot" link in a promotional email works well for informal events where you don't need a full registration system.

QR codes in physical spaces: A QR code in a shop window, on a product label, or at an event booth can point to an SMS link. Someone scans it, their Messages app opens, and they can ask a question or place an order without having to type your number.

Real estate: Property listings with a "Text for more info" button let interested buyers reach out instantly while they're standing on the street looking at the sign.

SMS Links vs. WhatsApp Links

Both do similar things, but the choice usually comes down to your audience. SMS links use the carrier's cellular network, which means no app is required and virtually everyone can receive them — including people on basic phones. WhatsApp links require the WhatsApp app, but offer richer conversations (images, documents, read receipts) and are the default messaging channel in many countries outside the US.

For a US-focused business, SMS links are more universally accessible. For international audiences or markets where WhatsApp dominates — Latin America, parts of Europe, India — a WhatsApp link is often the better choice.

Adding an SMS Link to Your Website

The HTML is straightforward. Place an anchor tag wherever you want the button, and wrap it in a div or button element if you want to style it:

<a href="sms:+12025551234&body=Hi%21%20I%20found%20you%20on%20your%20website." class="btn btn-primary">Text Us</a>

If you want to show the button only on mobile, add a media query in CSS:

@media (min-width: 768px) { .sms-link { display: none; } }

This hides the SMS button on screens wider than 768px — tablet and desktop — while keeping it visible on phones where it will actually work.

Generate your SMS link in seconds

Enter your phone number and message. Get a ready-to-use link and HTML snippet — free, no signup.

Open SMS Generator
Advertisement