Open Graph Generator & Preview
Generate OG meta tags for your website or preview how any URL appears when shared on social media platforms.
Recommended size: 1200ร630 pixels (1.91:1 ratio). Max 5MB.
What Are Open Graph Tags?
Open Graph (OG) tags are meta tags that control how your content appears when shared on social media platforms like Facebook, LinkedIn, and Twitter. Without proper OG tags, social platforms guess what to display โ often pulling the wrong image, title, or description.
- ๐ Rich previews get 2-3x more clicks than text-only links
- ๐จ Control exactly which image, title, and description appear when shared
- ๐ Consistent branding across Facebook, LinkedIn, Twitter, WhatsApp
- ๐ Better social media discovery and engagement
<meta property="og:title" content="Your Page Title" /> <meta property="og:description" content="Your page description" /> <meta property="og:image" content="https://example.com/image.jpg" /> <meta property="og:url" content="https://example.com/page" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary_large_image" />
Understanding Open Graph & Social Media Tags
Open Graph (OG) tags are meta tags that control how your content appears when shared on social media platforms like Facebook, LinkedIn, and Twitter. Without proper OG tags, social platforms guess what to display โ often pulling the wrong image, title, or description.
When someone shares your link on Facebook, Facebook's crawler reads your OG tags to create a rich preview: title, description, image, and site name. A well-optimized social preview can increase click-through rates by 200-300% compared to plain text links.
- ๐ Higher CTR: Rich previews with images get 2-3x more clicks than text-only links.
- ๐จ Brand Control: Choose exactly which image, title, and description appear when your content is shared.
- ๐ Consistent Branding: Ensure your logo, brand colors, and messaging appear consistently across all social platforms.
- ๐ Better Analytics: Track shares, clicks, and engagement accurately with proper OG tags.
- ๐ Improved Discovery: Facebook's algorithm prioritizes content with complete OG tags in news feeds.
- ๐ฑ Mobile Optimization: OG tags control how previews appear on mobile devices where most social sharing happens.
- ๐ Cross-Platform: OG tags work on Facebook, LinkedIn, Pinterest, WhatsApp, Telegram, and many other platforms.
<meta property="og:title" content="Your Page Title" /> <meta property="og:description" content="Your page description" /> <meta property="og:image" content="https://example.com/image.jpg" /> <meta property="og:url" content="https://example.com/page" /> <meta property="og:type" content="website" /> <meta property="og:site_name" content="Your Site Name" />
Add these tags inside the <head> section of your HTML.
Complete Open Graph Tag Reference
The title of your content. Appears in bold in social previews. Keep under 60 characters for full display. Example: "10 Best SEO Tools for 2024"
A short description of your content. Appears below the title. Keep under 200 characters for full display. Include a call-to-action when possible.
The image that appears in the social preview. Recommended size: 1200ร630 pixels (1.91:1 ratio). Minimum size: 200ร200 pixels. Use high-quality, eye-catching images.
The canonical URL of your content. Use absolute URL, not relative. This is where users go when they click the preview.
The type of your content: website, article, product, video, music, etc. Different types enable different features in social previews.
Your website or brand name. Appears below the preview in some platforms. Helps with brand recognition.
Twitter Card Tags (Separate from OG)
Card type: "summary" (small image), "summary_large_image" (large image), "app" (mobile app), "player" (video). Summary_large_image is recommended for most content.
<meta name="twitter:card" content="summary_large_image" />
Title for Twitter cards. If not specified, Twitter uses og:title. Recommended length: 70 characters or less.
<meta name="twitter:title" content="Your Title" />
Description for Twitter cards. Falls back to og:description if not specified. Keep under 200 characters.
<meta name="twitter:description" content="Your description" />
Image for Twitter cards. For summary_large_image, recommended size: 1200ร675 pixels (16:9 ratio).
<meta name="twitter:image" content="https://example.com/image.jpg" />
Your Twitter username (without @ symbol). Appears as attribution in Twitter cards.
<meta name="twitter:site" content="@yourhandle" />
Twitter falls back to Open Graph tags if Twitter-specific tags are missing. For best results, implement both OG and Twitter tags. Use Twitter's Card Validator to test and debug your Twitter cards.
12 Costly Open Graph Mistakes
Without og:image, Facebook randomly selects an image from your page โ often the wrong one. Always specify a high-quality, relevant image.
Images smaller than 200ร200 pixels don't display in previews. Facebook recommends 1200ร630 pixels for best quality. Small images get cropped or rejected.
Titles over 60 characters get truncated with "...". Keep titles concise and front-load important keywords.
Descriptions over 200 characters get cut off. Put important information first within the first 150 characters.
Facebook can't resolve relative URLs. Always use absolute URLs (https://example.com/image.jpg not /image.jpg) for og:image and og:url.
Without og:url, Facebook may use the wrong canonical URL, splitting engagement across duplicate URLs.
Using "website" for a product page misses product-specific features. Use appropriate type: article, product, video, music.
Facebook aggressively caches OG data. Use Facebook Sharing Debugger to clear cache and test changes before sharing.
Twitter displays plain text links without proper cards. Implement twitter:card for better Twitter engagement.
Without og:site_name, users don't see your brand name in shares. Add it for brand recognition.
Changing OG tags without clearing Facebook's cache shows old previews. Use Sharing Debugger to scrape again.
If primary image fails to load, have a fallback. Facebook needs at least one working image URL.
Essential Social Media Debugging Tools
Enter any URL to see how Facebook sees your page. Shows scraped OG tags, errors, warnings, and cached versions. Use after any OG tag changes to clear cache.
โ Open Facebook DebuggerLinkedIn's tool shows how your page appears when shared. Validates OG tags and shows any issues with image loading or metadata.
โ Open LinkedIn InspectorTest Twitter cards before sharing. Shows how your card renders on desktop and mobile. Validates twitter:* meta tags.
โ Open Twitter ValidatorValidate product, recipe, and article rich pins. Shows OG tag data and any validation errors.
โ Open Pinterest ValidatorYou Might Also Like These SEO Tools
Frequently Asked Questions About Open Graph
Test Your Social Media Previews Now
Free Open Graph preview tool for social media managers and marketers. See how your content appears before sharing.