📱 Social/Viral

LinkedIn Share Link Generator

Paste a URL and get a working LinkedIn share-offsite link you can drop into a button or test straight away.

https://www.linkedin.com/sharing/share-offsite/?url=
Open Link

About the LinkedIn Share Link Generator

This wraps your URL in LinkedIn's share-offsite endpoint, the only public share link LinkedIn exposes. It's worth knowing this endpoint takes a URL and nothing else: LinkedIn has no text or title parameter to fill in, because when someone opens the share dialog LinkedIn crawls the page itself and pulls the title, description, and image from its Open Graph meta tags. If the preview looks wrong once you open the link, the fix is updating the target page's og:title and og:description, not this tool.

Why LinkedIn's share link is deliberately minimal compared to Twitter/X's

This site's Twitter/X Share Link Generator builds a link with both a url and a separate text parameter, since Twitter/X's share intent lets you pre-fill the tweet's wording. LinkedIn's share-offsite endpoint has no equivalent — it accepts exactly one query parameter, url, and nothing else. That's a platform design choice: LinkedIn wants the preview shown to a sharer built entirely from the page's own metadata rather than user-supplied text, so there's simply no parameter this tool (or any tool) could add to customize the wording shown before someone posts.

encodeURIComponent is required, not optional

The target URL is passed through encodeURIComponent() before being appended to the query string. Without it, a target URL that itself contains an & (common in URLs with multiple query parameters, like a UTM-tagged campaign link) would get misread as the start of a new parameter in LinkedIn's own query string, silently truncating the shared URL at that character. Encoding turns reserved characters like &, ?, and # into percent-escaped sequences so the entire original URL survives intact as a single parameter value.

LinkedIn caches the crawled preview, so edits to a live page don't show immediately

Like Facebook, LinkedIn's crawler fetches and caches a page's Open Graph data the first time a URL is shared, and won't re-crawl it on every subsequent share. If you update a page's title or description after it's already been shared once, the old cached preview can keep showing until LinkedIn's own Post Inspector tool is used to force a re-crawl — this generator only builds the share link itself and has no way to trigger or bypass that cache.

Both the copyable text and the "Open Link" button stay wired to the same value

Every keystroke in the URL field re-runs a single buildLink() function that updates three things together: the visible link text in the result box, the stored value the Copy button reads from, and the href on the "Open Link" button itself. That last part matters — because "Open Link" is a real anchor tag with a live href, you can test the generated share dialog by clicking it directly, rather than needing to copy the link out and paste it into a new tab first.

rel="noopener noreferrer" protects the page you're testing from

The "Open Link" button carries target="_blank" together with rel="noopener noreferrer". Without noopener, the newly opened LinkedIn tab would retain a JavaScript handle back to this page via window.opener, which a malicious destination could theoretically use to redirect the original tab — a technique known as tabnabbing. Since LinkedIn itself is trusted, the practical risk here is low, but the attribute is included as standard safe practice for any link a tool generates and opens on the user's behalf.

Why "share-offsite" is in the endpoint's name

The path segment share-offsite reflects that this endpoint is meant for sharing pages that live off LinkedIn entirely — blog posts, press releases, job listings, articles hosted on your own domain — as opposed to sharing a post that already exists natively inside LinkedIn's own platform, which uses a different flow. It's the standard building block behind most "Share on LinkedIn" buttons seen on external websites and CMS platforms.

Frequently Asked Questions

Can I customize the text or title shown in the LinkedIn share preview?

No. LinkedIn's share-offsite endpoint only accepts a URL parameter — the preview text always comes from the target page's own Open Graph meta tags, which LinkedIn crawls itself.

Why does the share preview show outdated information?

LinkedIn caches a page's crawled preview data after the first share. If the page's metadata changed since then, use LinkedIn's own Post Inspector tool to force a re-crawl — this generator has no control over that cache.

Why is the URL run through encodeURIComponent before being added to the link?

So that characters like & or ? inside the target URL don't get misread as the start of a new parameter in LinkedIn's query string, which would otherwise cut the shared URL short.

Does clicking "Open Link" actually post anything to LinkedIn?

No. It only opens LinkedIn's share dialog in a new tab so you can preview and test the link — nothing is posted unless you manually complete the share on LinkedIn's own page.

What's the difference between this and the Twitter/X Share Link Generator?

Twitter/X's share intent accepts a separate text parameter for pre-filled tweet wording. LinkedIn's endpoint has no equivalent — it only ever takes the URL, by design.

Does this tool need my LinkedIn login or API access?

No. It just builds a plain URL client-side — no authentication, API key, or LinkedIn account is required to generate or copy the link.