What Is an Open Graph Image? A Quick Explainer
A plain explanation of Open Graph images, what the og:image meta tag does, and why it's the difference between a rich link preview and a bare blue link.
August 9, 20267 min read
An Open Graph image is the picture that shows up when you paste a link into Slack, X, LinkedIn, or a text message and it renders as a card with a title, description, and image instead of just a bare URL. That card isn't magic — it's built from a small set of meta tags in the page's HTML, and the image specifically comes from one tag: og:image.
Where 'Open Graph' comes from
Open Graph is a protocol Facebook introduced in 2010 so that any web page could describe itself in a standardized way — this is the title, this is the description, this is the representative image. The idea caught on well beyond Facebook: X, LinkedIn, Slack, Discord, iMessage, and most other platforms that render link previews now read the same og: tags, even though only Facebook originally defined them. It's one of the rare cases of a single company's spec becoming a de facto web standard by adoption rather than by committee.
The protocol underneath the tags
Open Graph is technically built on RDFa, a way of embedding structured metadata inside ordinary HTML rather than in a separate feed or sitemap. The formal spec has a page declare itself as belonging to the Open Graph namespace via a prefix or xmlns attribute on the html tag, and every og: property is meant to be read as part of a small object graph describing the page — hence the name. In practice, almost nobody hand-writes the namespace declaration or thinks about the RDFa layer at all; virtually every crawler in production today reads the og: meta tags directly regardless of whether the formal namespace prefix is present, so the practical spec has narrowed down to "put the right meta tags in the head" even though the original design was more formal than that.
og:type is one of the less-discussed tags but it shapes how a platform is meant to interpret the rest of the metadata — website for a generic page, article for a blog post (which unlocks companion tags like article:published_time and article:author), product for an e-commerce listing, and a longer list of more specific types for video and music content. Most sites default to website or article and never touch the rest, and that's a reasonable choice, but the type does theoretically tell a sophisticated crawler what shape of content it's looking at beyond just title, description, and image.
What the tags actually look like
The three tags that matter most all live in the page's head element: og:title sets the headline shown on the card, og:description sets the short summary text beneath it, and og:image points to the URL of the image itself. A minimal example, written out as it would appear in HTML, looks like a meta tag with property="og:title" and a content attribute holding the headline, followed by the same pattern for og:description and og:image with its content set to a full image URL. None of this is visible on the page itself — it's metadata a crawler reads, not something a visitor sees while browsing.
- og:title — the headline shown in the preview card
- og:description — a one- or two-sentence summary beneath the headline
- og:image — the URL of the image shown on the card, ideally 1200×630px
Beyond the big three: og:url and og:site_name
Two secondary tags matter more than their obscurity suggests. og:url declares the canonical URL for the page as far as Open Graph is concerned, which matters specifically when a page is reachable at more than one address — with and without tracking parameters, with and without a trailing slash, or through a redirect chain. Setting it explicitly tells a crawler which URL to treat as the shareable one, independent of whatever address someone actually pasted. og:site_name sets the source name shown in some platforms' cards — the small text identifying which site or publication a link is from, distinct from the page's own title — and its absence isn't fatal, but its presence gives a link an extra signal of legitimacy in a feed where a lot of links are competing for a split-second trust judgment.
How a crawler actually fetches an og:image
It's worth being precise about what "the crawler reads this" means mechanically, because it explains most of the failure modes people run into. A platform's crawler — Facebook's, X's, LinkedIn's, and so on — makes a plain HTTP request to the page URL and parses the raw HTML response it gets back, without executing JavaScript. If og:image is injected into the page after the fact by client-side script, the crawler never sees it, even though a human opening the same URL in a browser sees a fully correct page. Once the crawler finds a value in og:image, it makes a second, separate request to fetch that image directly, and that second request also has to succeed with no authentication, no session cookie, and within a short timeout — a login-gated image or a slow image-generation endpoint fails silently at this step, producing a card with no image and no error message anywhere a developer would see it. Understanding that it's two independent fetches, not one, is the fastest way to reason about why a preview is broken: the page tag can be perfectly correct while the image fetch fails, or vice versa.
Why it actually matters
A page with no og:image set doesn't fail to open — it just renders as a plain blue link with no visual context, sometimes with a generic favicon if you're lucky. A page with a well-made og:image renders as a card with a headline, a summary, and a purpose-built image, which is noticeably more likely to get a click and noticeably harder to mistake for spam. In a feed full of other links competing for attention, the difference between the two is the difference between something that looks intentional and something that looks broken.
It also compounds across every place a link gets shared, which is easy to underestimate from inside a single page's code. A single URL might get pasted into a Slack channel, quoted in a group text, dropped into a tweet, and embedded in a newsletter — each of those is a separate rendering of the same og:image tag, and a broken or missing image doesn't fail once, it fails identically everywhere that link travels. Fixing the tag fixes every future share at once, which is exactly why getting it right per page, rather than patching it reactively after someone notices a bad preview, is worth the small amount of upfront setup.
The practical part
For a single static page, you can hand-write these three tags and point og:image at a fixed file. It gets more involved once you have hundreds of pages — blog posts, product pages, listings — each needing its own accurate title and a matching image, generated correctly and kept in sync as content changes. That's the specific problem a dynamic OG image renderer solves: instead of exporting an image per page by hand, the image is generated from a template that pulls in each page's real title and data automatically, so the tag is always accurate without manual upkeep.
One more mechanical detail worth knowing: most platforms cache the result of scraping your page rather than re-fetching og:image on every single share, which is a reasonable performance decision on their end but a common source of confusion on yours. Update a page's title or image and the platform can keep showing the old version until something forces a re-scrape — Facebook's Sharing Debugger exposes a manual "Scrape Again" button for exactly this, and X and LinkedIn have their own equivalents. If a fix to your og:image isn't showing up in a preview, the tag is very often correct and the cache is simply stale; that's a different problem from the tag being wrong, and worth ruling out before assuming the code needs another change.
Stop paying per seat
for a usage-shaped problem.
Unlimited teammates, one usage pool. Start free with the scanner — no card required.