Free Tool

Free Mastodon Share Link Generator

Build a 'Share on Mastodon' link with prefilled text and your URL - with instance picker support. Add a one-click share button to any blog post, newsletter, or page. Free, no signup.

Mastodon has no central share URL - the link opens the composer on whichever instance you enter (the one you, or your reader, is signed into).

Type your post text (and an optional link) to build a Share on Mastodon URL. For click analytics on the link you share, wrap it in a u2l.ai short link first via /url-shortener.

No signup required
Free forever
GDPR compliant
Powered by U2L

Quick Answer

A Mastodon share link generator builds a https://your-instance/share?text=... URL that opens the Mastodon composer with your text and link prefilled. Because Mastodon is decentralized, the link points at an instance; the generator builds it for the instance you specify. Copy the link or the ready-made HTML button and add it anywhere a 'Share on Mastodon' button belongs. Free, browser-only, no signup.

Quick Facts

  • Format: https://{instance}/share?text=YOUR%20TEXT - each Mastodon instance hosts its own /share composer endpoint.
  • Mastodon is decentralized, so there is no single share URL - the link targets one instance (for example mastodon.social) where the user is signed in.
  • Share links require the user to confirm before posting - clicking never auto-posts, so it is safe to put on a public page.
  • A bare URL inside the text is auto-linkified by Mastodon, so you append your link on its own line.
  • Most Mastodon posts allow 500 characters by default, though some instances raise the limit.
  • Browser-only and instant. Your text never touches U2L servers - the link is built entirely in your browser.
  • Wrap the shared URL in a u2l.ai short link first to track how many people clicked through from each Mastodon share.

How to make a Mastodon share link

Pick an instance, write the post, copy the link.

  1. 1

    Write the post text

    Type the message you want pre-filled in the Mastodon composer - a headline, a quote, or a call to action. Most instances allow 500 characters.

  2. 2

    Add the link to share

    Paste the URL you want people to post. It is appended on its own line and Mastodon turns it into a clickable link with a preview card.

  3. 3

    Set the Mastodon instance

    Enter the instance the share should open on (for example mastodon.social). Because Mastodon is federated, the share opens the composer on whichever instance the reader is signed into.

  4. 4

    Copy the link or HTML button

    Copy the generated /share URL for use anywhere, or copy the ready-made HTML 'Share on Mastodon' button and paste it straight into your site or email.

What is a Mastodon Share Link Generator?

Mastodon Share Link Generator is a tool that builds a Mastodon share URL - a link that opens a Mastodon instance's composer with your text and URL already filled in. Because Mastodon is decentralized, the share link points at a specific instance; the generator builds the correct /share URL for the instance you choose.

Mastodon, the largest network in the open fediverse, exposes a /share endpoint on each instance. When a logged-in user opens https://their-instance/share?text=..., the composer pre-populates with the text you encoded. The user still presses 'Publish' - it never auto-posts - so the link is safe to embed on public pages.

Mastodon's decentralization is what makes a generator genuinely useful here. There is no single mastodon.com to point at; each user lives on their own instance (mastodon.social, fosstodon.org, hachyderm.io, and thousands more). The generator lets you build a share link for a default instance and explains the federation nuance so your button works for real fediverse users.

Typical uses: a 'Share on Mastodon' button under each blog article, a 'post this' link in a newsletter aimed at a technical or privacy-conscious audience, a quote-share button on a landing page, or a launch campaign that seeds Mastodon posts with prewritten copy.

How does a Mastodon Share Link Generator work?

When you type your post text and link, the generator combines them into a single string (text first, then the URL on its own line) and URL-encodes the whole thing with encodeURIComponent so spaces, emoji, hashtags, and line breaks survive transit. The result is appended to https://{instance}/share?text= using the instance host you entered.

When someone opens that URL, the Mastodon web app on that instance reads the text parameter and inserts it into a new compose box. Mastodon detects the bare URL and renders a preview card. The user reviews the draft and clicks Publish - there is no silent auto-post.

Because Mastodon is federated, the share endpoint is per-instance. A reader signed into a different instance will still be prompted to authenticate on the instance in your link, or they can copy the text into their own instance. The pragmatic pattern is to default to a large instance like mastodon.social and let users adjust; the generator makes the instance explicit so there are no surprises.

Everything happens in the browser. The generator is plain JavaScript; no request is sent to U2L. It handles encoding edge cases and gives you a copy-paste HTML button, and it normalizes the instance you type (stripping https://, trailing slashes, or a leading @) so the URL is always well-formed.

Use Cases

How marketers, businesses, and developers use mastodon share link generator.

'Share on Mastodon' button under blog posts

Add a share button below every article with the headline and canonical URL prefilled. Readers post your piece to their Mastodon instance in one tap.

Newsletter 'post this' links

Drop a Mastodon share link in your newsletter so subscribers amplify your issue to the fediverse. Especially effective for technical and open-source audiences.

Open-source project promotion

Add a Mastodon share button to release notes and READMEs. The fediverse skews developer-heavy, so OSS announcements travel well there.

Privacy-focused community engagement

Reach audiences that have left centralized networks. A Mastodon share button meets privacy-conscious readers on the platform they prefer.

Quote-share buttons on landing pages

Put a 'Share this on Mastodon' button next to a key stat or testimonial. Pre-filled copy makes the quote travel with attribution intact.

Event and conference promotion

Generate a share link with the event title, date, and registration URL so attendees invite the fediverse to your meetup or conference in one tap.

Academic and research sharing

Researchers on scholar-focused instances share papers and findings. A share button with the paper title and DOI link prefilled lowers the friction.

Campaign and advocacy seeding

Nonprofits give supporters a prewritten Mastodon post with the campaign link so the message spreads through the fediverse with consistent framing.

Documentation and changelog shares

Dev-tool teams add a Mastodon share button to changelogs so users broadcast new features to the developer-dense fediverse audience.

Mastodon Share Link Generator vs Alternatives

Side-by-side feature and pricing comparison with the top alternatives.

FeatureU2LManual URLMastodon share-button JSNative copy-paste
Free, no signup
Handles instance selectionManual
Copy-paste HTML button
No JavaScript widget required
Browser-only (no data sent)Varies
Click tracking on the shared linkVia u2l.ai short link

Mastodon Share Link Generator vs Hand-built share URLs

You can write https://instance/share?text=... URLs by hand if you URL-encode the text yourself. It is free and gives total control over the exact string.

The generator removes the foot-guns: it encodes hashtags and emoji correctly, normalizes the instance host you type, and hands you a styled HTML button. For a one-off internal link, hand-building is fine; for a reusable button, the generator is safer.

Mastodon Share Link Generator vs Mastodon share-button JavaScript widgets

Some sites embed a JavaScript widget that prompts the reader for their instance before opening the composer. It handles the federation problem elegantly but requires loading third-party script.

The generator's approach is simpler and script-free: it builds a static link to a default instance you pick, and explains the federation nuance so readers can adjust. For static sites, newsletters, and pages where you cannot run scripts, a plain link is the more reliable choice.

Best Practices

Default to a large, open instance

Pick a big general instance like mastodon.social as the default so the share link works for the widest set of readers, and note that they can switch instances.

Explain the instance step to readers

Because Mastodon is federated, a short note ('opens on mastodon.social - switch to your instance if different') prevents confusion when the composer opens elsewhere.

Keep posts under 500 characters

Most instances cap posts at 500 characters including the link. Some raise it, but assume 500 for portability and use a short link to save room.

Put the URL on its own line

Append the link after a blank line so Mastodon renders a clean preview card. Inline URLs work but read worse.

Use a short link to track clicks

Wrap the destination in a u2l.ai short link before generating the share link to get click analytics per campaign across instances.

Add relevant hashtags

Mastodon relies heavily on hashtags for discovery since it has no algorithmic feed. Include one or two relevant tags in the prefilled text.

Write copy in your reader's voice

The text posts from the reader's account, so phrase it as something they would say rather than as your own marketing voice.

Test on the target instance

Click 'Test on Mastodon' to confirm the composer opens with the right text and the preview renders on the instance you chose.

Common Mistakes to Avoid

Pointing at a non-existent central domain

There is no mastodon.com share endpoint. Always target a real instance host (mastodon.social, fosstodon.org, etc.) or the link 404s.

Including the protocol or @ in the instance field

Pasting https://mastodon.social/ or @user@mastodon.social breaks the URL. The generator strips these, but hand-built links must use the bare host.

Expecting the link to auto-post

Mastodon share links never publish automatically - the user must confirm. Do not promise 'one-click posting' that bypasses the confirmation step.

Ignoring the federation nuance

A reader on a different instance still gets prompted to authenticate on yours. Tell readers they can switch to their own instance to avoid a dead end.

Leaving hashtags unencoded in hand-built URLs

A raw # starts a URL fragment and drops everything after it. The generator encodes # as %23; manual builders often miss this.

Writing copy in your brand voice

The post comes from the reader's account. First-person marketing copy reads as inauthentic when posted by someone else.

Technical Specifications

URL formathttps://{instance}/share?text={text}
Query parametertext (URL-encoded post body, link included inline)
Auto-postNo - the user must confirm in the composer
Character limit500 characters default (some instances raise it)
AuthenticationUser must be signed into the target instance
EncodingencodeURIComponent, UTF-8 safe (emoji, hashtags, newlines)
NetworkFediverse via ActivityPub - decentralized, per-instance
PrivacyBuilt entirely in your browser. No data sent to U2L.

Frequently Asked Questions

How does a Mastodon share link work?

It is a URL in the form https://your-instance/share?text=... When a logged-in user opens it, that Mastodon instance pre-fills the composer with your text and link. The user reviews the draft and clicks Publish - the link never posts automatically.

Why do I need to choose an instance?

Mastodon is decentralized - there is no single share URL like Twitter's. Each instance hosts its own /share endpoint, so the link must point at a specific instance. The generator builds the correct URL for the instance you enter.

What if my readers are on different instances?

A reader on another instance is prompted to authenticate on the instance in your link, or they can copy the prefilled text into their own. Defaulting to a large instance like mastodon.social and noting that readers can switch is the most reliable pattern.

Does clicking the link post automatically?

No. Mastodon share links always open the composer and wait for the user to confirm. Nothing is published until the user clicks Publish, which is why it is safe to embed on a public page.

Can I prefill both text and a URL?

Yes. The generator combines your text and link into the single text parameter, placing the URL on its own line. Mastodon auto-linkifies the URL and renders a preview card.

Is there a character limit?

Most instances cap posts at 500 characters including the link, though some configure higher limits. Assume 500 for portability and use a short link to save characters.

What is the fediverse?

The fediverse is the network of interoperable servers (running ActivityPub) that includes Mastodon. Accounts on different servers can follow and reply to each other, which is why share links are per-instance.

Does it work on Mastodon mobile apps?

Behavior varies by app. The web /share endpoint works in mobile browsers; some native apps register a share handler. Test on your target instance and a mobile browser to confirm the experience.

Can I track how many people clicked my share link?

The Mastodon share URL itself is not trackable, but the link you share inside it can be. Wrap your destination in a u2l.ai short link first, then put that short link in the share to see clicks per campaign.

Will hashtags and emoji work in the prefilled text?

Yes. The generator URL-encodes everything, so hashtags, emoji, and line breaks all survive and appear correctly in the Mastodon composer. Hashtags matter on Mastodon since discovery is tag-driven.

What should I put in the instance field?

Enter the bare host of a Mastodon instance, like mastodon.social or fosstodon.org - no https:// and no trailing slash. The generator normalizes common mistakes, but the bare host is ideal.

Can I add a styled 'Share on Mastodon' button to my site?

Yes. The generator outputs a ready-to-paste HTML button alongside the raw link. Copy the HTML into your page or email template and the button works immediately - no JavaScript or SDK required.

Does this need an API key or OAuth?

No. The /share endpoint is a plain URL feature - no API key, OAuth, or app registration is involved. That makes it ideal for static sites, newsletters, and pages where you cannot run server code.

Can I change the prefilled text after sharing the button?

The generated URL is static once you paste it. To update the copy, generate a new link and replace the button. For an editable destination, wrap the shared URL in a u2l.ai short link, which you can edit later.

Is my post text sent to U2L's servers?

No. The generator builds the link entirely in your browser with JavaScript. Your text and URL never leave your device, so there is nothing for U2L to store or see.

Why is Mastodon better for some audiences?

Mastodon's fediverse skews technical, open-source, academic, and privacy-conscious. If your content targets those communities, a Mastodon share button reaches readers who have moved away from centralized networks.

Key Terms

Instance
A single Mastodon server (mastodon.social, fosstodon.org, etc.). Each instance hosts its own users and its own /share endpoint.
Fediverse
The federation of interoperable servers running ActivityPub - including Mastodon - where accounts on different servers can interact.
ActivityPub
The open W3C protocol that powers federation between Mastodon instances and other fediverse software.
Share endpoint
Mastodon's per-instance /share URL that opens the composer pre-filled with the text query parameter.
URL encoding
Escaping characters (spaces, &, #, emoji, line breaks) so they survive inside a URL. The generator runs encodeURIComponent on your text automatically.

Track every click from your Mastodon shares

Wrap the link in your share button in a u2l.ai short link to see how many people clicked through from the fediverse, and from which post. Sign up free for click analytics and branded short links.

Sign up free