Open Graph Tag Generator

Generate Open Graph and Twitter Card meta tags to control how your pages appear when shared on Facebook, Twitter, LinkedIn, and other social platforms.

Open Graph Tags
Recommended: 1200 × 630 px, max 8 MB
Twitter Card Tags
Generated Tags

            
Facebook / LinkedIn Preview
No image set (1200×630 recommended)
EXAMPLE.COM
Your page title
Brief description for social sharing.
Twitter / X Preview
No image set
Your page title
Brief description for social sharing.
example.com

Frequently Asked Questions

Open Graph is a protocol created by Facebook and used by Facebook, LinkedIn, Pinterest, and many other platforms. Twitter Cards are Twitter's proprietary format. It is best practice to include both since Twitter will fall back to OG tags when Twitter-specific tags are absent.

The universally recommended size is 1200 × 630 pixels with a minimum of 600 × 315 px. Keep the file size under 8 MB. Use JPEG for photos and PNG for graphics with text. Facebook will not scrape images smaller than 200 × 200 px.

Facebook caches OG data aggressively. Use the Facebook Sharing Debugger (developers.facebook.com/tools/debug) to force a re-scrape of your URL. Enter your URL and click "Scrape Again" to refresh the cached data.

Use website for homepages and general pages. Use article for blog posts and news articles — this unlocks additional properties like article:author and article:published_time. Use product for e-commerce product pages.

How It Works

Fill the Fields

Enter your page title, description, URL, image URL, and other metadata in both the Open Graph and Twitter Card sections.

Live Previews Update

Facebook/LinkedIn and Twitter card previews update in real time as you type, so you can see exactly how your link will appear when shared.

Copy to <head>

Click Copy and paste all generated OG and Twitter meta tags into the <head> of your HTML or CMS template.

Common Use Cases

Blog Posts & Articles

Ensure blog posts display a compelling headline and image when shared on social media to maximize click-through rates from social traffic.

E-commerce Products

Set product images, names, and descriptions for OG tags so product links shared on social platforms show attractive visuals that drive traffic.

Event Pages

Control how event listings appear when attendees share them on social media, including the event image, title, and description for maximum visibility.

Social Media Campaigns

Test different OG images and descriptions for landing pages before launching paid social campaigns to optimize visual appeal and messaging.

Brand Consistency

Ensure all pages on your site include your logo or brand image as the fallback OG image so any URL shared on social media looks professional.

Link Previews in Messaging

OG tags also control how links look in Slack, WhatsApp, iMessage, and Discord — important for B2B content shared in team channels.