Skip to content
ZeroServer.tools

Social Share Buttons Generator

Generate HTML social sharing buttons for Twitter/X, Facebook, LinkedIn, Reddit, and more platforms.

Platforms
Button Style
Platforms: 4Style: filledLines: 6Bytes: 2126

How social share buttons work

Social share buttons are simple anchor tags that link to platform-specific share URLs with the page URL and title passed as query parameters. No JavaScript SDKs or tracking pixels are needed — the generated code is pure HTML and works on any website.

Built and maintained by Meet Shah · Last updated

What this tool is used for

  • Adding share links to a page without loading a third-party script.
  • Producing plain anchor tags that carry no cookies or tracking.
  • Generating share URLs for a set of platforms in one pass.
  • Replacing an existing widget with static markup to cut page weight.
  • Getting the intent URL format right for a platform you use rarely.

Frequently Asked Questions

Why plain links instead of the official share widgets?
Because an official widget loads third-party JavaScript that sets cookies and reports every page view back, whether or not anyone clicks. These are ordinary anchors to each platform's own intent URL — no script, no cookie, no request until a visitor actually clicks.
What are intent URLs?
Documented endpoints that pre-fill a share dialogue: `twitter.com/intent/tweet`, `facebook.com/sharer/sharer.php`, `linkedin.com/sharing/share-offsite`, `reddit.com/submit`, `t.me/share/url`, `pinterest.com/pin/create/button`. Every parameter is percent-encoded for you.
Why does WhatsApp take one combined parameter?
`wa.me` has a single `text` field rather than separate title and URL fields, so the two are joined with a space and encoded together. WhatsApp then auto-links the URL and generates its own preview card from the target page's Open Graph tags.
Does Facebook still accept a custom title?
No. Facebook dropped the `quote` and `title` parameters, so the sharer only takes the URL and builds the card from that page's own `og:title`, `og:description` and `og:image`. If the preview looks wrong, fix the meta tags — the share link cannot override them.
Should the links open in a new tab?
Yes, and the generated markup adds `rel="noopener"` with it. Without `noopener` the opened page gets a `window.opener` handle back to yours and can navigate it elsewhere — the reverse-tabnabbing trick. Modern browsers imply it, older ones do not.
Do share links carry any tracking?
The plain intent URLs do not — that is their advantage over the official widgets, which load third-party script and set cookies on every page they appear on. Anything you want tracked has to be added as your own campaign parameters.

Common errors and gotchas

  • Forgetting to URL-encode the shared title and link, which breaks the parameters.
  • Using a platform's official widget when a plain link does the same job without the tracking.
  • Hard-coding the current URL rather than reading it, so every share points at one page.
  • Assuming intent URL formats are stable, since platforms change them without notice.
  • Omitting `rel="noopener"` on a link that opens in a new tab.

Related Generators tools

Private & free — this tool runs entirely in your browser.

CloudwaysManaged cloud hosting on AWS, GCP & DO — from $11/mo.affiliate