About Open Graph Tag Generation
Open Graph (OG) tags control how a page appears when shared on social platforms. Facebook, LinkedIn, Slack, Discord, and many others read OG tags to construct preview cards. Without proper OG tags, shared links look broken — generic favicons, missing images, truncated titles. With them, shares look polished and click-through rates improve significantly.
The standard OG tags: og:title (the title shown in the preview), og:description (the snippet of text), og:image (the preview image, ideally 1200×630), og:url (canonical URL), og:type (typically 'website' or 'article'). Twitter Card tags layer on top: twitter:card, twitter:title, twitter:description, twitter:image. Most tools fall back to OG when Twitter-specific tags are absent.
This generator produces a complete set of OG and Twitter Card tags from your input. Paste the resulting HTML into the page's <head>. The result is correct preview rendering across all major social platforms.
Why Use an OG Tag Generator
Pages without OG tags look bad when shared. Empty image, generic title, missing description — the preview competes poorly against properly-tagged pages in feeds. For content marketing and link sharing, this directly affects click-through rate.
Hand-writing OG tags is repetitive. Each page needs its own set. A generator that produces correct tags from a few inputs avoids the typos and missed properties that break social previews.
Technical Details
OG tags use the meta property attribute (not name): <meta property="og:title" content="..." />. The property attribute is required for OG; some parsers accept name as a fallback but property is correct.
Image requirements: 1200×630 pixels for retina rendering, 1.91:1 aspect ratio. og:image:width and og:image:height tags help platforms cache images correctly. og:image:alt provides accessibility text.
Twitter Card tags use name attribute: <meta name="twitter:title" content="..." />. Twitter falls back to OG tags when Twitter-specific are absent, so well-set OG often suffices. Adding twitter:card explicitly chooses card type (summary_large_image is most common).
Frequently Asked Questions
- What size should og:image be?
- 1200×630 pixels at 1.91:1 aspect ratio. This displays cleanly on retina screens and at typical share sizes. Smaller images get scaled up and blur.
- Should I include Twitter-specific tags?
- Twitter falls back to OG when Twitter-specific are absent, so well-configured OG usually suffices. For explicit control, add twitter:card and other twitter:* tags.
- Why does my Facebook share show the wrong image?
- Most often Facebook is using a cached version. Use Facebook's Sharing Debugger to clear the cache after updating OG tags.
- What's og:type?
- Specifies the kind of object. Common values: website, article, product, video, music, profile. Affects how platforms render the preview.
- Can I use the same OG image for every page?
- Possible but suboptimal. Page-specific images outperform generic site-wide images for click-through. Use a default for fallback but produce per-page images for important content.
- Is image dimension declaration needed?
- Helpful but not strictly required. og:image:width and og:image:height let platforms cache images without re-fetching to determine dimensions. Speeds up subsequent shares.
- Is my data uploaded?
- No. Generation happens in your browser.
- How do I test OG tags?
- Facebook Sharing Debugger, Twitter Card Validator, and LinkedIn Post Inspector each fetch and validate. Use them after deploying new OG tags.