Open Graph Generator

Create OG tags for better link previews.

The rich preview card that appears when you paste a link into Facebook or LinkedIn — with an image, title and description — isn't automatic guesswork. It's controlled by specific tags this tool generates.

A protocol Facebook created to fix a genuinely messy sharing experience

The Open Graph protocol was introduced by Facebook in 2010, explicitly designed to solve a real problem of the era: without a standardized way for a webpage to specify how it should be represented when shared, social platforms had to guess at an appropriate title, description and image from a page's raw content — guesses that were often wrong, ugly, or simply pulled the wrong image entirely. Open Graph tags let a site owner explicitly declare exactly what title, description and image should represent a given URL when shared, and the protocol was quickly adopted far beyond Facebook itself, becoming the de facto standard that LinkedIn, Slack, Discord and most other platforms with link-preview features also read.

What this tool generates

The tool produces the core set of Open Graph meta tags — og:title, og:description, og:image, og:url and og:type — properly formatted for direct inclusion in a page's <head> section, ensuring that whatever platform someone shares your link on displays exactly the title, description and image you actually intend, rather than an unpredictable automatic guess.

Where Open Graph tags are genuinely essential

  • Content marketing and social sharing — ensuring blog posts, articles and product pages display an appealing, accurate preview when shared on social media, directly affecting click-through rates from social platforms.
  • Brand consistency — controlling exactly which image and description represent your content across every platform, rather than leaving it to each platform's own unpredictable automatic extraction.
  • E-commerce and product pages — ensuring a specific, appealing product image and accurate description appear when a product link is shared, directly supporting social-driven sales.
  • Preventing broken or unappealing link previews — avoiding the common problem of a shared link displaying no image, the wrong image, or truncated, unhelpful text due to missing Open Graph tags.

Frequently asked questions

What's the ideal image size for og:image? A commonly recommended size is around 1200×630 pixels, which displays well as a large preview card across most major platforms without being awkwardly cropped — using an image significantly smaller than this can result in a lower-quality or improperly scaled preview.

Do I need separate tags for Twitter/X, or does Open Graph cover it too? Twitter (X) originally used Open Graph tags as a fallback but introduced its own separate Twitter Card tags for more specific control over how content displays there — using both Open Graph and Twitter Card tags together ensures the best possible preview across the widest range of platforms.

What happens if I don't include Open Graph tags at all? Most platforms will still attempt to generate a preview by guessing based on a page's title tag, meta description, and the first suitable image found on the page — but this automatic guess is often less accurate, appealing or complete than a deliberately specified Open Graph tag set.

Further reading