Mastodon link preview not showing
When Mastodon shows a bare URL instead of a card, its crawler either could not fetch your page or found no usable Open Graph tags in the HTML it received. Mastodon draws a card layout with a 1200×630 px image and a title of about 100 characters, and every part of it comes from the og:* tags in your server response.
Diagnosis
Why it happens on Mastodon
- Mastodon fetches links as Mastodon/4.x (+https://<instance>/). If your server, CDN or bot protection blocks that User-Agent, rate-limits it or answers anything but HTTP 200, Mastodon has nothing to draw.
- Link-preview crawlers read the raw HTML and do not run your JavaScript, so tags added on the client are invisible to Mastodon.
- Without og:title the share shows a bare link; without og:image Mastodon has no picture for its 1200×630 box.
- Our bot detection recognises Mastodon by the Mastodon token.
- Among social networks, no other app shares Mastodon's Mastodon crawler, so check this one on its own.
Scanner checks: og-title-present, og-image-present, og-image-absolute-url, og-url-present, robots-noindex
The fix
Fix it step by step
- Scan the URL: the scanner fetches it server-side like Mastodon's crawler and lists every missing tag.
- Allow the Mastodon crawler through your firewall, CDN bot rules and any login wall for the shared URL.
- Add og:title, og:description, og:image (absolute https URL) and og:url to the server-rendered <head>.
- Deploy, re-scan, and share the link again.
<title>Your page title</title>
<meta name="description" content="A one or two sentence summary of this page.">
<meta property="og:title" content="Your page title">
<meta property="og:description" content="A one or two sentence summary of this page.">
<meta property="og:image" content="https://example.com/og.png">
<meta property="og:url" content="https://example.com/page">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Your site name">
<meta name="twitter:card" content="summary_large_image">Check your link on Mastodon
FAQ
Common questions
Why does Mastodon show my link without a preview?
Mastodon found no og:title or could not fetch the page. Check that Mastodon gets HTTP 200 and that the tags are in the HTML, not added by JavaScript.
Which tags does Mastodon need for a card?
og:title, og:image and og:url at minimum, plus og:description (shown up to about 200 characters). The image is drawn at 1200×630 px.