How to Create a Link That Sends an SMS Text Message

Picture of Enzak Team

Enzak Team

How to Create a Link That Sends an SMS Text Message

How to Create a Link That Sends an SMS Text Message

Picture of Enzak Team

Enzak Team

Creating a link that automatically opens a text message on a mobile device is a quick and convenient way to encourage users to contact your business or organization via SMS. In this guide, you’ll learn what an SMS link is, why it’s useful, and how to build one with only a few lines of HTML.

What Is an SMS Link?

An SMS link is a specially formatted hyperlink that launches the default text messaging app on a user’s mobile phone. When clicked, it opens a new SMS message with a predefined phone number and, if you want, a pre-filled body text. This can be useful for support lines, order requests, appointment confirmations, and more.

Why Create a Text Message Link?

  • Convenience: Users can contact you with minimal effort.
  • Mobile-Friendliness: Many people prefer texting over calling or emailing.
  • Automated Messaging: Pre-filling a message body ensures you capture all necessary info from the start.

Basic SMS Link Format

An SMS link uses the following structure:

sms:phonenumber?body=Your message here
  • sms: is the protocol that indicates an SMS link.
  • Replace phonenumber with the phone number (including country code if needed).
  • The ?body= portion allows you to specify the default text in the message. Spaces and special characters must be URL-encoded. For example, spaces become %20.

Quick Example

Below is a simple snippet for a link that opens a text message to +18664504185 with a predefined body:

<a href="sms:+18664504185?body=Hi%20there%2C%20I'd%20like%20to%20place%20an%20order%20for...">
  Click here to text us!
</a>

Clicking or tapping this link on a mobile device will start a new text message with “Hi there, I’d like to place an order for…” already filled in.

Using Our SMS Link Generator

If you’d rather not encode messages by hand, try our Modern SMS Link Generator (like the example below). It automatically encodes your message and creates the link for you:

  1. Enter the Phone Number: Include country code if necessary.
  2. Enter the Message Body: Type what you want pre-filled in the SMS.
  3. Link Text: What would you like the HTML clickable link to say.
  4. Generate Link: The tool provides both a clickable link and the full HTML source code.
  5. Copy & Paste the HTML link into your website or email.
  6. Sending the link in SMS: Copy & Past the (Direct Link) in to your text message or into any link shortner.

Create a Link That Sends an SMS Text Message

Your SMS Link:

Direct Link & HTML Link

Direct Link
HTML Link

Common Mistakes to Avoid

  • Forgetting URL Encoding: Ensure you encode spaces and special characters.
  • Using Desktop Browsers: The sms: link is mostly recognized by mobile browsers. Desktop browsers may not handle it properly or will ask for an app to open.
  • Protocol Limitations: Some link shorteners and email clients won’t accept sms: links without extra steps. You can wrap an sms: link in a redirect page if needed.

Conclusion

Knowing how to create a link that sends an SMS text message is a handy skill for making your mobile audience’s experience more streamlined. By using a simple sms: protocol and encoding your message, you can embed clickable text-message prompts on your website, emails, or digital campaigns—boosting engagement and providing a fast, user-friendly communication channel.

Please dial the below phone number from a cell phone to test the system now!​

By calling the number, you agree to receive text messages from us regarding our services. Standard text messaging rates may apply.

See How It Works

Call this phone number

(714) 410-8345

To see how our system in action!

CONTACT US

CONTACT US