Social Share Buttons Generator

Choose networks, shape, colours, labels and layout, preview the buttons on desktop and phone widths, and copy lightweight HTML and CSS for any website.

S'exécute dans votre navigateur. Vos fichiers ne quittent jamais votre appareil. Voir comment vérifier

…

Comment faire

  1. 1
    Describe the page

    Enter the page address, title, short text and, for Pinterest and Open Graph, an image address.

  2. 2
    Pick networks

    Switch networks on or off and use the arrows to set their order.

  3. 3
    Style the buttons

    Choose shape, colours, labels, size, gap and layout, and watch the live preview.

  4. 4
    Add extras

    Turn on Copy link, the native share button and new-tab opening as needed.

  5. 5
    Check on a phone width

    Use the Phone 375 preview to see wrapping and the mobile bottom bar.

  6. 6
    Copy the code

    Copy the HTML, CSS and script, download the full page, and add the Open Graph tags to the shared page.

À propos de cet outil

The official share widgets from social networks are heavy: each one loads its own script, sets cookies, and lets the network see every visitor to your page even if nobody clicks. A share button does not need any of that. Every major network offers a plain share address that opens a pre-filled post when visited, so a share bar can be a few ordinary links styled with CSS. This generator builds exactly that. Enter the page address, the title and a short text, then pick from seventeen destinations: X, Facebook, LinkedIn, WhatsApp, Telegram, Reddit, Pinterest, Bluesky, Threads, Mastodon (with your own server), Hacker News, Tumblr, LINE, VK, Pocket, email and SMS. Reorder them with the arrow buttons, choose square, rounded, circle or pill shapes, network colours, one custom colour, a dark grey set or outlines, icon-only buttons or labels, and a layout: an inline row, a column, a floating side bar that moves to the bottom on phones, or a fixed bottom bar. Every address is URL-encoded correctly, links open in a new tab with rel noopener noreferrer, email and SMS stay in the same tab, and each button gets an aria-label and a visible focus ring. Optional extras are a Copy link button and a button for the phone's native share sheet, which only appears where the browser supports it; both use a small inline script and nothing else. You also get the raw share addresses, a complete single-file page, and Open Graph and Twitter Card tags so the shared link shows a proper title and image.

Why the shared post looks wrong

Networks build the preview card from the Open Graph tags of the shared page, not from the button. If the card shows the wrong title or no image, add the generated og: tags to the head of that page and use an image of at least 1200 by 630 pixels. Facebook, LinkedIn and X cache cards, so use their debugging tools to refresh an old one.

Networks that are missing

Instagram, TikTok and Snapchat have no web address that opens a pre-filled share, so they cannot be offered as plain links. The native share button covers them on phones, because the system share sheet lists every installed app.

Privacy

Nothing in the generated code loads anything from a social network until a visitor clicks. There are no counters, because share counts require calling the network's servers, and most networks no longer provide them anyway. The icons are simple letter marks drawn with text, so you can swap in your own SVG icons if you prefer.

Limits

The tool does not post anything for you and cannot see how often your buttons are used. Some networks change their share addresses from time to time; the ones used here were checked in November 2026.

Exemple concret

A blog post at https://example.com/blog/how-we-cut-load-time gets seven rounded buttons in network colours, 40 pixels each with an 8 pixel gap, plus Copy link. The X link becomes x.com/intent/post with the text Five changes that made our site twice as fast, the encoded address and the hashtag webperf. The HTML is 13 lines and the CSS has 18 rules, with no external script, and the preview at 375 pixels wraps the buttons onto two rows.

L'essentiel

Questions fréquentes

Do these buttons track my visitors?

No. They are ordinary links. The social network only learns about a visitor if that person clicks a button and chooses to share, exactly as if they had pasted the link themselves.

Why is there no share count?

Counts need a request to each network for every page view, which brings back the tracking these buttons avoid. Facebook, X and LinkedIn have also removed or restricted public share counts.

Will the buttons work on WordPress, Shopify or a static site?

Yes. Paste the HTML where the buttons should appear and the CSS into your theme's custom CSS box. If your editor strips script tags, leave out Copy link and native share, which are the only parts that need the small script.

How does the Mastodon button know my server?

Mastodon has no central site, so the button opens the share page of the server you type, such as mastodon.social or fosstodon.org. Visitors on another server can still copy the post text from there.

Can I make the buttons smaller than 40 pixels?

The icon can be smaller, but the clickable area keeps a 40 pixel minimum so the buttons stay easy to tap on phones, as accessibility guidelines recommend.

Is the page address sent anywhere while I design?

No. The preview runs in a sandboxed frame in your browser and no link is opened unless you click one in the preview yourself.

Entièrement gratuitAucun coût, aucune inscription
Fichiers privésTout s'exécute dans votre navigateur
Simple dans votre langueDisponible en de nombreuses langues