Social Media Share URL Generator

Last Updated: 2020-12-14

Introduction

Social media sharing is one of the most important components of your website. Giving users a simple way to share the content on your site has the following benefits:

  • Increases your brand awareness
  • Drives traffic to your site
  • Engages users with your content

While there are many plugins available, these often add bloat to your page leading to performance issues and a poor user experience. This is completely unnecessary since sharing can be done with simple links. Links can also be embedded into emails, signatures, invoices, Word documents, and much more. The tool below will allow you to instantly create the HTML required without any coding experience.

Generate Share URLs

Use the tool below to make social media share links for yourself:

Enter Your Page URL

Facebook

  Facebook URL  
Test
Copy

LinkedIn

  LinkedIn URL  
Test
Copy

Twitter

  Twitter URL  
Test
Copy

Email

  Email URL  
Test
Copy

SMS

  SMS URL  
Test
Copy

Using the URL

Once you have the URL, you will need to add this the href attribute of an <a> (anchor) tag. This will give the user a clickable element that will direct them to the URL. The syntax to do this is:

  <a href='<SHARE_URL>'><LINK_TEXT></a>  

You will need to replace:

  • <SHARE_URL> with the URL generated above
  • <LINK_TEXT> with the text you want to appear as the link

Syntax Reference

Facebook URL

The following link will share your page on Facebook. It will redirect the user to a Facebook page and allow them to customize the message further.

  https://facebook.com/sharer.php?u=<YOUR_WEBSITE_URL>  

LinkedIn URL

The following link will share your page on LinkedIn. It will redirect the user to a LinkedIn page and allow them to customize the message further. This link can be posted or send as a private message to another user (at the user's choice).

  https://www.linkedin.com/sharing/share-offsite/?url=<YOUR_WEBSITE_URL>  

Twitter URL

The following link will tweet your page on Twitter. The URL will be included in the tweet and the user can customize the message further.

  https://twitter.com/intent/tweet?url=<YOUR_WEBSITE_URL>  

Email URL

The following code will open the user's mail application and add your URL to the body of the email. The user can then choose the recipients, message title, etc. For more information regarding customizing these links, refer to our article on the topic.

  mailto:?body=<YOUR_WEBSITE_URL>  

SMS URL

The following code will open the user's text messaging application. Like the code for email, this will add your website URL into the body of the message.

  sms:?&body=<YOUR_WEBSITE_URL>  

Note that ?& is used to support both iOS and Android.


Was this helpful?

Share this article with the people you know: