You probably already know how to embed a Share link on your website (to WhatsApp, Facebook, Twitter, etc). However what if you wanted to have a Share with WhatsApp link in your email, or if you wanted to customise the WhatsApp message?
TL;DR for coders: Just build the link like this:
<a href=”https://api.whatsapp.com/send?phone=&text=URLENCODEDTEXTHERE”>Link text</a>
Step 1: Encode your text
First you need to encode your text into a URL-friendly format (called URL Encoding) by using this free Online URL Encoder. This converts
- “your regular text, including links like https://facebook.com“, into
Step 2: Build your link
Once you have your URL-encoded text, just paste it into the link code below (replace “URLENCODEDTEXTHERE”):
Option 1: Just the link (for pasting into text editors e.g. WordPress, Mailchimp, GMail, etc:
Option 2: The full code (for embedding directly into HTML)
<a href=”https://api.whatsapp.com/send?phone=&text=URLENCODEDTEXTHERE”>Regular link text here</a>
Step 3: Test it
If you did it right, all you need to do is click the link just like any regular link on the internet. On mobile, this should open the WhatsApp app right away, while on desktop you should be led to the WhatsApp desktop share interface.
The actual link looks like this:
I’ll build a proper converter one day if I have free time but for now the above steps should be easy enough once you get the hang of it. Good luck!