Open Graph Generator
og: and twitter: tags with a share card preview. Free, private, no sign-up.Share card preview (approximate)
How to use the Open Graph Generator
- Enter the page title, description and full URL.
- Add an image URL. A 1200 by 630 image is a common size for wide previews.
- Choose the type (website or article) and the X card style.
- Copy the tags into the page head, then re-check the link in Meta’s Sharing Debugger.
The four required Open Graph tags
| Tag | Meaning |
|---|---|
| og:title | Title of the page as it should appear in the preview |
| og:type | Type of object, such as website or article |
| og:image | Image URL for the preview |
| og:url | The 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
| Tag | Use |
|---|---|
| og:description | One or two sentences under the title in the preview card |
| og:site_name | Your brand name, shown on some platforms |
| og:image:alt | A text description of the image for accessibility |
| og:locale | The language and region, such as en_US |
| twitter:card | Tells 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
- Publish the page with the new tags.
- Paste the URL into Meta’s Sharing Debugger and choose Scrape Again.
- For LinkedIn, use its Post Inspector to refresh the preview.
- 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?
Do Open Graph tags help Google rankings?
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
- The Open Graph protocol (ogp.me)
- Meta for Developers: webmasters guide to sharing (Open Graph)
- Meta Sharing Debugger
- X Developer Platform: about X Cards
Checked November 2026. Platforms change their rules, so check the linked page if a number looks different in your app.