Open Graph Generator
Generate Open Graph and Twitter Card meta tags with a live social share preview.
How the Open Graph Generator Works
Open Graph tags are small pieces of code in a page’s head section that control how your link looks when it is shared on Facebook, LinkedIn, WhatsApp, iMessage, and similar platforms, the title, description, and preview image. Twitter Card tags do the same job for X (Twitter).
How this tool builds your tags
Fill in your page’s title, description, URL, and a preview image, then generate the tags. You will also see a live preview of roughly how the shared link will look, plus ready-to-paste meta tags for both Open Graph and Twitter Card.
Open Graph best practices
- Use an image sized around 1200 by 630 pixels for the sharpest preview across platforms.
- Keep the title and description close to your actual page title and meta description.
- Always set a unique og:url so shares are attributed to the correct page.
- Test your final page with a link debugger (such as Facebook’s Sharing Debugger) after publishing.
Getting great link previews
When someone shares your link on Facebook, LinkedIn, WhatsApp or X, the platform reads a few tags in your page head to decide which title, description and image to show. The generator creates those tags: og:title, og:description, og:image, og:url, og:type and the matching Twitter Card tags. Paste them into the head section of your page or into your theme or plugin custom code area.
Check for duplicates first
Many WordPress SEO plugins, including Yoast SEO, already add Open Graph tags. If your page source already contains og:title, adding a second set creates duplicates and the platform may pick the wrong one. Set the social title, description and image in your plugin when you can, and use the generator when you need tags for a custom page.
Image tips
- Use an image of about 1200 by 630 pixels for a sharp preview on most platforms.
- Keep important text and faces away from the edges, because some apps crop the image.
- Use a real, publicly reachable image URL. A broken link means no image in the preview.
- Avoid tiny logos as the share image. A clear, relevant picture earns more clicks.
Frequently asked questions
Do Open Graph tags help SEO?
Not directly. They improve how shared links look, which can increase clicks and shares.
Why does my link still show an old preview?
Platforms cache previews. Use the Facebook Sharing Debugger or the LinkedIn Post Inspector to refresh it.
What is the difference between Open Graph and Twitter Cards?
Open Graph is used by Facebook, LinkedIn, WhatsApp and many apps. Twitter Cards do the same for X. Our tool generates both.
Related: Title Length Checker and Meta Description Generator.