Social sharing tool
Open Graph Generator
Fill in a few fields and get the Open Graph and X (Twitter) Card meta tags for your page, with a live preview of the link card people will see when they share it.
In short: Open Graph tags are <meta property="og:…"> lines in a page's <head> that tell Facebook, LinkedIn, X, WhatsApp, Slack and other apps which title, description and image to show when someone shares the link. An Open Graph generator writes those tags for you; the four you always need are og:title, og:description, og:image and og:url.
The og meta tags that actually matter
The protocol at ogp.me defines dozens of properties, but link previews are built from a short list. Everything else is optional or only read by a single platform.
| Tag | What it does | Notes |
|---|---|---|
og:title | Bold headline of the card | Facebook cuts around 60–70 characters on desktop, less on mobile |
og:description | Grey text under the title | Often hidden on mobile and in LinkedIn feeds; put the hook in the title |
og:image | The picture | Absolute HTTPS URL; relative paths are ignored |
og:url | Canonical address of the page | Likes and shares are counted against this URL, so match your canonical tag |
og:type | Kind of object | website by default, article for posts |
og:site_name | Brand shown above or below the title | Lets you drop "| Brand" from og:title |
og:locale | Language and region | Format is language_TERRITORY, e.g. en_US |
X reads the twitter: tags first and falls back to Open Graph for title, description and image. The one tag with no OG equivalent is twitter:card: without it you get the small summary card, so the generator sets summary_large_image whenever you add an image.
og:image size: why 1200x630 is the safe default
Facebook, LinkedIn and X all draw their large link card at roughly a 1.91:1 ratio, and 1200 x 630 pixels is the size that looks sharp on high-density screens in all three. X crops slightly towards 2:1, so keep logos and text inside the central 1100 x 580 area. A few hard numbers worth knowing:
- Facebook shows the large format only from 600 x 315 upwards; below that the image becomes a small thumbnail. Images under 200 x 200 are rejected.
- X accepts up to 5 MB for card images; Facebook allows 8 MB, but a 150–400 KB JPG or WebP loads faster and is less likely to be skipped by WhatsApp.
- Declaring
og:image:widthandog:image:heightlets Facebook render the card on the very first share, before it has downloaded the image. The generator adds 1200 and 630, so change them if your file is a different size. - Add
og:image:alt. Screen readers on X and LinkedIn read it, and it costs one line.
Where to put the tags and how to test them
Paste the output inside <head>, ideally near the top. Crawlers such as facebookexternalhit and LinkedInBot do not run JavaScript, so tags injected by a client-side framework after load are invisible to them; render them on the server. Platforms also stop reading after a certain number of bytes, so a head stuffed with inline CSS can push late tags out of reach. A minimal working example:
<meta property="og:title" content="Trail Running for Beginners"> <meta property="og:description" content="Shoes, pacing and the first 5K off-road."> <meta property="og:image" content="https://example.com/og/trail.jpg"> <meta property="og:url" content="https://example.com/trail-running/"> <meta name="twitter:card" content="summary_large_image">
To check the result, use the Facebook Sharing Debugger (it also shows warnings for missing properties) and LinkedIn Post Inspector. X retired its Card Validator preview, so the practical test there is to start a new post and paste the URL into the composer. WordPress users usually get these tags from Yoast SEO, Rank Math or a similar plugin; check that a theme is not printing a second set, because duplicate og:image tags make platforms pick one at random.
Open Graph and SEO
Google does not use Open Graph tags as a ranking signal, and it builds search snippets from the title tag and content instead. The tags still matter for search work indirectly: a clear card gets more clicks and reshares, and shared links are how pages pick up mentions and links in the first place. Google Discover also favors large images at least 1200 pixels wide (with max-image-preview:large allowed), so a 1200 x 630 OG image already meets that width. Write the title tag for the query and the OG title for the feed. Our meta tag generator handles the search side, and the meta tag analyzer shows which OG tags an existing page already serves.
Frequently asked questions
What size should an og:image be?
Use 1200 x 630 pixels, a 1.91:1 ratio. It fills the large link card on Facebook, LinkedIn, X and most chat apps without cropping. Keep the file under 5 MB (ideally well under 1 MB), serve it over HTTPS and keep text away from the edges.
I changed my Open Graph tags but the old preview still shows. How do I refresh it?
Platforms cache the scraped data. Paste the URL into the Facebook Sharing Debugger and click Scrape Again, or into LinkedIn Post Inspector, which fetches a fresh copy. For X there is no public validator any more; the card refreshes on its own after roughly a week, or immediately if you share a URL with a harmless query string such as ?v=2.
Should og:title be the same as the title tag?
It does not have to be. The title tag is written for search results, og:title for a feed where nobody is searching. Many sites keep the main phrase in both and make og:title shorter and more conversational, without the brand suffix, because og:site_name already shows the brand.
Do WhatsApp, Slack and Discord use Open Graph tags?
Yes. WhatsApp, Telegram, Slack, Discord, iMessage and Microsoft Teams all build link previews from og:title, og:description and og:image. WhatsApp is the strictest: very large images may be skipped, so a JPG under about 300 KB is the safest choice there.
Related tools: Meta Tag Generator · Meta Tag Analyzer · UTM Builder