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.
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
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
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
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
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.
| Feature | U2L | Manual URL | Mastodon share-button JS | Native copy-paste |
|---|---|---|---|---|
| Free, no signup | ||||
| Handles instance selection | Manual | |||
| Copy-paste HTML button | ||||
| No JavaScript widget required | ||||
| Browser-only (no data sent) | Varies | |||
| Click tracking on the shared link | Via 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 format | https://{instance}/share?text={text} |
| Query parameter | text (URL-encoded post body, link included inline) |
| Auto-post | No - the user must confirm in the composer |
| Character limit | 500 characters default (some instances raise it) |
| Authentication | User must be signed into the target instance |
| Encoding | encodeURIComponent, UTF-8 safe (emoji, hashtags, newlines) |
| Network | Fediverse via ActivityPub - decentralized, per-instance |
| Privacy | Built entirely in your browser. No data sent to U2L. |
Frequently Asked Questions
How does a Mastodon share link work?
Why do I need to choose an instance?
What if my readers are on different instances?
Does clicking the link post automatically?
Can I prefill both text and a URL?
Is there a character limit?
What is the fediverse?
Does it work on Mastodon mobile apps?
Can I track how many people clicked my share link?
Will hashtags and emoji work in the prefilled text?
What should I put in the instance field?
Can I add a styled 'Share on Mastodon' button to my site?
Does this need an API key or OAuth?
Can I change the prefilled text after sharing the button?
Is my post text sent to U2L's servers?
Why is Mastodon better for some audiences?
Related Free Tools
WhatsApp Link Generator
Create wa.me click-to-chat links with prefilled messages. Add to your bio, ads, or QR codes for instant WhatsApp customer chats.
OG / Metatag Checker
Inspect Open Graph and Twitter Card tags for any URL. Preview link cards on Facebook, X, LinkedIn, and Slack before publishing.
Redirect Checker
Trace the full redirect chain of any URL. See every hop, status code, response time, and final destination.
URL Encoder / Decoder
Encode or decode any URL. Handle special characters, query strings, and percent-encoding. Pure browser, instant.
Schema Markup Generator
Generate valid JSON-LD schema for FAQ, HowTo, Article, Product, and Organization. Boost rich results and AI Overview citations.
URL Expander
Reveal the full destination behind any shortened URL. Check where a short link leads before clicking it.
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