How to Add Fast, Private Social Share Buttons to Any Website
Share buttons do not need tracking scripts. Learn the plain share links for each network, Open Graph tags and how to build a light share bar.

Share buttons look harmless, but the official widgets behind them are not. Each network's button loads its own script, sometimes several hundred kilobytes, sets cookies, and reports every visit to the network whether or not anybody shares. On a page with five networks that is five third-party scripts slowing the page and five companies watching your readers. The good news is that none of this is needed to let people share.
How share links work
Almost every network has a public address that opens a pre-filled post. The site name, path and a few query parameters are all it takes. Facebook's sharer takes the page address, X's intent page takes the text, address, hashtags and the account to credit, WhatsApp and Telegram take a message, Reddit takes the address and a title, Pinterest also wants an image, and email and SMS use the mailto: and sms: schemes that phones and computers already understand. A share button can therefore be an ordinary link, styled with CSS like any other.
The only tricky part is encoding. Page addresses contain characters such as ? and & that have special meaning inside another address, so they must be percent-encoded. A missing encode step is the usual reason a shared link arrives cut in half.
Building the bar
The Social Share Buttons Generator handles the encoding and the styling together. Start by describing the page: its full address, title, a short text for networks that show one, and an image address for Pinterest and the preview card. Then switch networks on and off and use the arrows to put the most important ones first. Seventeen destinations are available, including Bluesky, Threads and Mastodon, where you type your own server name.
The look is controlled with a few choices: shape, colours, labels, size, gap and layout. Inline rows suit the end of an article, a column suits a sidebar, the floating bar stays visible while reading and moves to the bottom edge on phones, and the bottom bar is fixed on every screen size. Buttons keep a 40 pixel tap area even when the icon is smaller, and each has an aria-label and a visible focus ring for keyboard users.
Two optional buttons need a few lines of script. Copy link writes the address to the clipboard and briefly shows Copied. The native share button opens the phone's own share sheet, which lists every installed app, including ones without a web share address such as Instagram. It is hidden automatically in browsers that do not support it.
The preview shows the result at full, tablet and phone widths. When you are happy, copy the HTML, the CSS and the small script, or download a complete page to test locally.
Make the shared post look good
The button only decides where a link goes. The card that appears in the post, with its title, description and image, is built by the network from Open Graph tags in the head of the shared page. The generator writes those tags for you: og:url, og:title, og:description, og:image and the Twitter Card type. Use an image of at least 1200 by 630 pixels, and remember that networks cache cards, so after a change use their debugging tools to refresh the preview.
What you give up
Plain links cannot show share counts. Counting requires a request to each network on every page view, which is the very tracking you are avoiding, and most networks have restricted public counts anyway. You also cannot see how often each button is clicked unless you add your own privacy-friendly analytics.
In return you get buttons that load instantly, work without cookies or consent banners for third-party scripts, and keep your readers' visits private until they decide to share.



