← Back to Blog

Open Graph Tags: The Complete 2026 Guide

Β·8 min read

Key Fact: Links with proper OG tags get 2x more engagement on social media. Yet 40% of websites still have missing or broken Open Graph implementation.

What Are Open Graph Tags?

Open Graph (OG) tags are meta tags in your HTML that control how your content appears when shared on social media. They tell Facebook, LinkedIn, Twitter, and other platforms what title, description, and image to display in link previews.

Originally created by Facebook in 2010, Open Graph has become the standard for social sharing. Without OG tags, platforms guess what to showβ€”often with ugly or irrelevant results.

The Essential OG Tags

og:title

The headline shown in the preview. Keep it under 60 characters for best display.

<meta property="og:title" content="Your Page Title" />

og:description

A brief summary of your content. Aim for 155-200 characters.

<meta property="og:description" content="Your description here" />

og:image

The preview image. This is the most important tagβ€”images drive 94% of social engagement.

<meta property="og:image" content="https://example.com/image.jpg" />

og:url

The canonical URL of your page. Prevents duplicate content issues.

<meta property="og:url" content="https://example.com/page" />

og:type

The type of content: website, article, product, video, etc.

<meta property="og:type" content="article" />

Image Requirements by Platform

PlatformRecommended SizeAspect Ratio
Facebook1200 x 630 px1.91:1
Twitter1200 x 628 px1.91:1
LinkedIn1200 x 627 px1.91:1
Discord1280 x 720 px16:9

πŸ’‘ Pro Tip: Use 1200 x 630 pixels as your universal image size. It works well across all major platforms.

Twitter Cards

Twitter uses its own meta tags in addition to Open Graph. For best results, include both:

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Your Title" />
<meta name="twitter:description" content="Your description" />
<meta name="twitter:image" content="https://example.com/image.jpg" />

Card types: summary (small image), summary_large_image (big image),player (video), or app (mobile app).

Complete Example

<!-- Open Graph -->
<meta property="og:title" content="My Awesome Article" />
<meta property="og:description" content="Learn about..." />
<meta property="og:image" content="https://example.com/og.jpg" />
<meta property="og:url" content="https://example.com/article" />
<meta property="og:type" content="article" />
<meta property="og:site_name" content="My Site" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="My Awesome Article" />
<meta name="twitter:description" content="Learn about..." />
<meta name="twitter:image" content="https://example.com/og.jpg" />

Common Mistakes to Avoid

Testing Your OG Tags

Facebook Sharing Debugger

developers.facebook.com/tools/debug β€” Validates tags and clears Facebook's cache

Twitter Card Validator

cards-dev.twitter.com/validator β€” Preview your Twitter card

LinkedIn Post Inspector

linkedin.com/post-inspector β€” Check how links appear on LinkedIn

Generate Your OG Tags Instantly

Don't write OG tags by hand. Use our free OG Tags Generator to create perfectly formatted meta tags in seconds. Just enter your page details and copy the code.

Generate Your OG Tags

Free, instant OG tag generation with live preview.

Create OG Tags β†’

Key Takeaways