Widget

Social Share Button Generator

Details

How to use Social Share Button Generator

What the tool does, how to run it, and what to expect from the result.

How to add share buttons without third-party trackers

Every major network exposes a plain URL you can link to that opens its share dialog with your page prefilled. That means share buttons do not need a script tag, an SDK, or a cookie banner: they need an anchor tag. The official widgets exist to collect data, not because sharing is technically hard.

This generator builds those anchors for you, with the URL and title correctly percent-encoded, and hands you a snippet to paste into your template.

  • Enter the page URL you want people to share.
  • Enter the share title, which X, Reddit, WhatsApp, and email will use as prefill text.
  • Tick the networks you want. Fewer buttons get more clicks than a wall of them.
  • Copy the HTML snippet and paste it into your page or template.
  • Replace the hard-coded URL with your template's current-page variable if you are adding it to a blog layout.
Tips

Getting a better result out of Social Share Button Generator

Specific settings and thresholds, not general advice.

  • The generated buttons are plain anchor tags with a coloured inline style. There is no script, no iframe, no SDK, no cookie. That is the entire reason to use them instead of the official share widgets, which load third-party JavaScript and set trackers on every visitor whether or not they click.
  • Facebook and LinkedIn ignore the title you type. Their share endpoints accept only the URL and pull the headline, description, and image from the Open Graph tags on the page itself. If the preview looks wrong, fix og:title and og:image on the page, not the button.
  • X and Reddit do use the title as prefill text, and WhatsApp puts the title and URL together in one message body. Email opens the user's mail client with the title as the subject and the URL as the body via a mailto link.
  • The buttons open in a new tab with rel=noopener noreferrer, except the email one, which has to stay in the same tab so the mailto handler fires. That noopener is not decoration: without it, the opened page can reach back through window.opener.
  • Because the URL is baked into the href at generation time, one snippet shares one page. On a blog template you want the URL to come from the page itself, so replace the hard-coded URL with whatever your templating language emits for the current permalink.
Limits

What Social Share Button Generator does not do

The honest boundary, so you do not lose time finding it yourself.

  • Six networks only: X, Facebook, LinkedIn, WhatsApp, Reddit, and email. No Pinterest, Telegram, Bluesky, Mastodon, or Threads.
  • No share counts, because those APIs were retired years ago.
  • The URL is static in the snippet. There is no dynamic current-page detection.
  • No icons, only text labels, so the buttons carry no network logos.
Reference

Terms used on this page

Short, plain-language definitions for the formats and settings above.

At a glance

Who Social Share Button Generator is for

A quick way to understand who this helps, what it solves, and where it connects next.

Best fit

Publishers adding share buttons to a page.

Ideal for

Using the social share button generator without installing anything or signing up.

FAQ

Common questions

Short answers for the questions people usually have before trying a utility like this.

Do these buttons track my visitors?

No. They are ordinary links. The official share widgets from Facebook and X load third-party JavaScript that can set cookies and fingerprint every visitor who merely sees the page, not only those who click. These links do nothing at all until someone clicks them, which is also why they cost you no page-load weight and need no cookie consent.

Why does my share title not appear on Facebook or LinkedIn?

Because their share endpoints only accept the URL. Facebook's sharer.php and LinkedIn's share-offsite both fetch the target page and read the Open Graph tags to build the preview. To control what appears, set og:title, og:description, and og:image on the page you are sharing. The title field here only affects X, Reddit, WhatsApp, and email.

How do I make the button share the current page instead of a fixed URL?

Replace the URL inside the href with your template's current-permalink variable. In practice that means swapping the encoded URL for something like {{ page.url | absolute_url | url_encode }} in Jekyll, or the equivalent in your framework, so each post's buttons point at that post.

Can I add icons instead of text labels?

The snippet gives you plain anchors with an inline style. Add an inline SVG icon inside the anchor tag and it will sit alongside or replace the label. Keep the accessible name, either as visible text or an aria-label, so a screen reader announces which network the link goes to.

Why is rel=noopener noreferrer on every link?

noopener stops the page you open from getting a reference back to your page through window.opener, which is a real hijacking vector on older browsers. noreferrer additionally suppresses the Referer header. The email link is the exception, since a mailto should hand off to the mail client in place rather than opening a tab.

Recommendations

You Might Also Like

Nearby tools from the catalog that fit the same job or workflow.

Cleanor app

Do it all on your device

Cleanor puts these tools in one app: compress and convert images, video, and audio, work with PDFs, and scan text right on your device. Plus free up storage and clear inbox clutter with Email Cleaner. Start with a free trial.

  • iPhone
  • Android
  • Macsoon
  • Windowssoon