Skip to main content

OpenGraph Meta Tag Generator

Fill in your page details and instantly generate complete og: and twitter: meta tags. Live preview shows exactly how your URL will look when shared on X/Twitter, Facebook, and Slack.

✓ OG + Twitter Card tags ✓ Live social preview ✓ Runs 100% in your browser

Frequently Asked Questions

What is the Open Graph protocol?▼

Open Graph is a protocol developed by Facebook that controls how URLs are displayed when shared on social media. By adding og: meta tags to your HTML <head>, you can specify the title, description, image, and type of your page — ensuring it looks great on Facebook, X (Twitter), LinkedIn, Slack, and other platforms.

What is the recommended image size for OG tags?▼

The ideal Open Graph image size is 1200×630 pixels (1.91:1 ratio). This renders well on all platforms. Minimum size is 600×315px — anything smaller may not display at all. Use PNG or JPEG with a file size under 8 MB. Twitter/X additionally supports 1200×675px (summary_large_image format).

What is the difference between og:type values?▼

Common og:type values: 'website' (default for any page), 'article' (blog posts, news), 'video.movie' or 'video.episode', 'music.song', 'profile' (personal pages). For most landing pages, 'website' is correct. 'article' unlocks additional tags like og:article:author and og:article:published_time.

Do I need Twitter Card tags if I already have OG tags?▼

Yes — Twitter/X has its own meta tag format (twitter:card, twitter:title, etc.) that takes precedence over OG tags for X previews. If Twitter Card tags are missing, X will fall back to OG tags, but the preview may look different. This generator outputs both OG and Twitter Card tags.

Where do I put OG meta tags in my HTML?▼

Place all OG and Twitter Card meta tags inside the <head> element of your HTML document, before the closing </head> tag. They must appear on the canonical page URL — not in JavaScript-rendered content, as social media crawlers often don't execute JavaScript.

How do I test if my OG tags are working?▼

Use official debugging tools: Facebook Sharing Debugger (developers.facebook.com/tools/debug), Twitter Card Validator (cards-dev.twitter.com/validator), and LinkedIn Post Inspector (linkedin.com/post-inspector). These tools fetch and display how your URL will appear when shared.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →