open-graph-meta-generator
Open Graph (OG) meta tags tell social platforms how to render a link preview when someone shares your URL β title, description, hero image, site name, type. Without them, shared URLs render as bare links with no image; with them, they become rich preview cards driving 2β3Γ higher click-through. The ZTools OG Generator emits the standard og:title, og:description, og:image, og:url, og:type, og:site_name tags plus matching twitter:card, twitter:title, twitter:description, twitter:image for X/Twitter β and shows live previews of how the link will render on Facebook, LinkedIn, X, Slack, Discord, and iMessage.
Use casesβ
Marketing landing pagesβ
Every campaign URL needs an OG image β clicks from social drop ~50% without one. The hero image is the single biggest CTR factor on shared links.
Blog postsβ
Per-post OG tags with title + featured image + summary. Drives rich previews in Slack/Discord when team members share articles internally.
Product pages / e-commerceβ
Product title + price + photo as OG tags. When customers share to Pinterest/Instagram/WhatsApp, the link renders as a shoppable card.
Documentation linksβ
Docs sites with OG tags get richer Slack/Discord previews when devs share API docs β teammates see the topic without clicking through.
How it worksβ
- Enter title + description β Title β€ 60 chars, description 110β160 chars. Both visible in preview cards.
- Set canonical URL β Absolute URL (https://...). Used by
og:urland Twitter card. - Set OG image URL β Absolute URL to a hero image; recommended 1200Γ630 px for Facebook/LinkedIn, 1200Γ675 for Twitter summary-large-image.
- Pick OG type β website, article, product, video, music β controls what extra fields apply.
- Pick Twitter card style β summary (small square image) or summary_large_image (full-width hero).
- Copy <head> snippet β Multi-line meta block β paste into your page <head>.
Examplesβ
Input: Blog post: "How AI Search Changes SEO" + 1200Γ630 image
Output: 12 meta tags covering OG + Twitter β preview cards on every social platform.
Input: Product: "Wireless Headphones $199" + product image
Output: OG type=product, includes price and currency; renders as shoppable card on Pinterest.
Input: Default site (homepage)
Output: OG type=website + site_name; minimum tags for a valid rich preview.
Frequently asked questionsβ
Are OG tags still needed in 2026?
Yes β Facebook, LinkedIn, Slack, Discord, iMessage, WhatsApp, and Pinterest all read OG tags for link preview cards. X reads its own twitter: tags but falls back to OG if missing.
Why is my image not showing?
Common causes: image URL is relative (must be absolute https://); image > 5MB (some platforms drop it); image format not jpg/png/webp; Cloudflare/CDN serves different content to bots; OG cache stale β use Facebook Sharing Debugger / LinkedIn Post Inspector to force re-scrape.
What size should my OG image be?
1200Γ630 px is the universal sweet spot (1.91:1 ratio). Facebook crops if smaller; Twitter summary_large_image likes 1200Γ675 (16:9). Square 1200Γ1200 also works on most platforms.
Do I need both og: and twitter: tags?
Twitter falls back to og: tags if twitter: are missing, BUT if you want a different X preview than other platforms (e.g. summary_large_image card style), you need explicit twitter: tags.
Why does LinkedIn show stale data?
LinkedIn caches OG data for ~7 days. Use the Post Inspector (linkedin.com/post-inspector) to force re-scrape after updates.
OG vs structured data (JSON-LD)?
OG tags = social preview cards. JSON-LD = search engine rich results. Both are needed; they don't replace each other.
Tipsβ
- Always use absolute https URLs for og:image β relative paths break.
- Test with Facebook Sharing Debugger before launch; force re-scrape after any change.
- Keep title β€ 60 chars and description 110β160 chars for clean preview rendering.
- Add
og:image:altfor accessibility β described OG images get cited better in AI results. - For dynamic pages, generate OG image at build time or via image-CDN URL params (e.g. Vercel's @vercel/og).
Try it nowβ
The full open-graph-meta-generator runs in your browser at https://ztools.zaions.com/open-graph-meta-generator β no signup, no upload, no data leaves your device.
Last updated: 2026-05-06 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub