Text & web utilities

Social share button HTML generator

Generate share links for seven platforms with current page or fixed URL mode and editable button shape.

Your settings

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Generate code.

Try it, understand it

Explore the result

Compare explicit settings below. Examples generate local output; external previews, requests and provider navigation remain separate actions.

Worked example comparison
ExampleOutputWhat to notice
Four destinationsSelected share platforms4A compact starting selection.
All seven platformsSelected share platforms7Seven distinct links, with no automatic posting.
Fixed article URLSelected share platforms4The destination stays fixed across installed copies.

Check your understanding

Does this post to my social account automatically?

No. It opens explicit share workflows controlled by the visitor and provider.

Which page does current-page mode share?

The URL of the page where the generated snippet is installed.

Behind the tool

How this tool works

Choose platforms from facebook, x, whatsapp, linkedin, pinterest, reddit and email. Current-page mode reads the installed page’s location; fixed mode uses the entered URL. The generated script encodes the data for each share endpoint. The buttons open provider dialogs only after a visitor chooses a link.

THE OUTPUT RULESelected platforms + encoded page URL + message → explicit share-dialog links

A worked example

The default four platforms create four links. Adding reddit and email creates six. Choosing a fixed article URL makes every installed copy share that article; current-page mode instead uses the page where the snippet actually runs.

Good to know

These are share links, not automatic posts, account access or share counters. Provider dialogs and supported parameters may change. Current-page mode includes the page query string; avoid sharing sensitive tokens or unnecessary tracking parameters. The isolated preview blocks external navigation.

A little curiosity

Sharing should preserve the intended destination

A fixed URL is useful for a campaign or one particular article. A reusable article template usually needs current-page mode. Test the published destination, including its HTTPS address and any canonical redirect, rather than assuming the editor preview uses the same URL.

Message text is a suggestion: the provider or visitor may edit, ignore or replace it. The Google search snippet preview answers a different presentation question about a search result draft. Neither tool controls what another platform ultimately displays.

Choose a small set of relevant destinations

More buttons are not automatically more useful. Consider where your audience already shares links and retain readable labels or accessible names. Circle and square variants use compact marks, while rounded buttons expose provider names visibly.

No SDK is needed for these simple links, so the copied snippet avoids loading a provider script on every page visit. An external provider receives navigation only when a visitor opens its link. Pinterest may need a usable public image URL, while email depends on the visitor’s configured mail handler.

A few questions, answered

Does this post to my social account automatically?

No. It opens explicit share workflows controlled by the visitor and provider.

Which page does current-page mode share?

The URL of the page where the generated snippet is installed.

Find your calculator

Start typing to explore the library.