TagsGenFree Tag & SEO Tools

Open Graph Generator

og: and twitter: tags with a share card preview.

Open Graph Generator

og: and twitter: tags with a share card preview. Free, private, no sign-up.
Your Open Graph tags

How to use the Open Graph Generator

  1. Enter the page title, description and full URL.
  2. Add an image URL. A 1200 by 630 image is a common size for wide previews.
  3. Choose the type (website or article) and the X card style.
  4. Copy the tags into the page head, then re-check the link in Meta’s Sharing Debugger.

The four required Open Graph tags

TagMeaning
og:titleTitle of the page as it should appear in the preview
og:typeType of object, such as website or article
og:imageImage URL for the preview
og:urlThe canonical URL of the page

These four are the required properties in the Open Graph protocol. X reads its own twitter:card tag and falls back to Open Graph tags for the title, description and image.

Optional tags worth adding

TagUse
og:descriptionOne or two sentences under the title in the preview card
og:site_nameYour brand name, shown on some platforms
og:image:altA text description of the image for accessibility
og:localeThe language and region, such as en_US
twitter:cardTells X to show a large image card

Choosing the share image

Use a landscape image, ideally 1200 by 630 pixels, which is roughly a 1.91 to 1 ratio. Keep the main subject and any text in the centre, because some apps crop the edges or show a square thumbnail. Save it as JPG, PNG or WebP, keep the file reasonably small, and always use a full https address in og:image. If you replace an image, give the new file a new name so platforms do not keep showing the old one.

Example

For a recipe post, a good set reads: og:title Soft Chicken Shami Kebabs That Do Not Break, og:description A freezer friendly recipe with the right lentil ratio and step by step photos, og:image pointing to a bright photo of the kebabs, og:url with the clean address of the post, and og:type set to article.

Where the tags go

Paste the generated tags into the head section of the page. On WordPress, most SEO plugins add Open Graph tags for you, so check first and avoid printing two sets. Two sets of og:image tags can make Facebook pick the wrong picture.

Test and refresh

  1. Publish the page with the new tags.
  2. Paste the URL into Meta’s Sharing Debugger and choose Scrape Again.
  3. For LinkedIn, use its Post Inspector to refresh the preview.
  4. Share the link in a private chat to see the real card.

If the preview is still wrong, follow our guide to fixing the Facebook link preview. For the search side, see the description tag guide and the meta tag generator, which can create title, description and sharing tags together.

Common Open Graph mistakes

  • A relative image path. og:image must be a full URL, including https and the domain.
  • An image blocked by login or a firewall. Facebook and LinkedIn must be able to download it.
  • The same title and image on every page. Each page should describe itself.
  • og:url pointing to the home page. It should be the address of the page being shared.
  • Forgetting to refresh the cache. Platforms keep old previews until you ask them to scrape again.

Fix these and most broken previews correct themselves after one fresh scrape.

Once the tags are right, every new share of the page shows the correct card, and old shares update after the platform refreshes its copy.

Frequently Asked Questions

Why does Facebook show an old image?
Facebook caches link previews. After fixing your tags, open Meta’s Sharing Debugger, paste the URL and choose Scrape Again.
Do Open Graph tags help Google rankings?
They are not a Google ranking signal, but a clear preview can earn more clicks when a link is shared.
Do I need Twitter card tags if I have Open Graph tags?

X falls back to Open Graph tags for most fields, but adding twitter:card set to summary_large_image ensures a large image card.

What size should og:image be?

About 1200 by 630 pixels works well across Facebook, LinkedIn and messaging apps.

Can each page have its own Open Graph image?

Yes, and it should. A specific image for each page makes shared links more appealing and accurate.

Sources

Checked November 2026. Platforms change their rules, so check the linked page if a number looks different in your app.