Free OG Tag Generator

Generate Open Graph and Twitter Card meta tags instantly. Preview how your content looks when shared on social media. Free, no sign-up required.

Generate Your OG Tags

The title that appears in social share previews. Keep it under 60 characters.

Your website or brand name. Optional but recommended.

A concise summary shown below the title. Keep it under 155 characters.

The canonical URL of the page being shared.

Recommended: 1200 x 630 pixels. Must be an absolute URL.

The type of content. "website" is the most common default.

"summary_large_image" shows a large image preview. "summary" shows a smaller thumbnail.

Explore More Free Tools

Other free tools to help you optimize and grow.

How It Works

How to use this free OG tag generator

No account needed, no sign-up required. Completely free. Fill in your page details, preview the social share card, and copy the generated meta tags.

1

Enter your page details

Fill in the OG title, description, page URL, image URL, site name, and select your OG type and Twitter card type. The more fields you complete, the better your social share previews will look.

2

Preview the share card

See a live preview of how your page will appear when shared on Facebook, LinkedIn, and Twitter. Check that the title, description, and image look right before copying the code.

3

Copy and paste the tags

Click Copy to Clipboard and paste the generated meta tags into the head section of your HTML page. No sign-up required. Completely free.

What Are Open Graph Tags

How Open Graph tags control your social share previews

Open Graph (OG) tags are HTML meta tags that tell social media platforms what title, description, image, and URL to display when someone shares your page. Without them, platforms guess what to show.

OG Tag Example

<meta property="og:title" content="Your Page Title" /> <meta property="og:description" content="Your description here" /> <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" />

Place these tags inside the head section of your HTML

Open Graph was introduced by Facebook in 2010 as a protocol for web pages to become rich objects in a social graph. Today, nearly every social platform supports OG tags, including LinkedIn, Twitter, Pinterest, WhatsApp, Slack, and Discord.

When someone shares a link, the platform crawler visits the URL and reads the OG meta tags from the HTML head. It then uses those values to build the share preview card. If no OG tags are found, the platform attempts to infer a title and description from the page content, which often produces poor results.

Properly configured OG tags give you complete control over your brand appearance on social media. This free tool generates both Open Graph tags (for Facebook, LinkedIn, and most platforms) and Twitter Card tags (for Twitter/X) in a single step.

The most important OG properties are og:title, og:description, og:image, and og:url. Together they create the preview card that determines whether someone clicks your link or scrolls past it.

OG Properties

Essential Open Graph properties and when to use them

Use this table to understand each OG property, whether it is required, and what it controls in the social share preview.

PropertyRequiredDescription
og:titleRequiredThe title of your page as it appears in share previews. Keep it concise and compelling, under 60 characters for best display.
og:descriptionRequiredA brief summary of your page content. Shows below the title in share previews. Keep it under 155 characters.
og:imageRequiredThe image displayed in the share preview card. Use an absolute URL. Recommended minimum size: 1200 x 630 pixels.
og:urlRequiredThe canonical URL of the page. This tells social platforms which URL to associate with the shared content.
og:typeOptionalThe type of content (website, article, product, profile). Defaults to "website" if not specified.
og:site_nameOptionalThe name of your website or brand. Appears above or near the title in some platform previews.

Based on the Open Graph protocol specification and platform documentation, 2026.

OG Image Specs

Recommended og:image sizes for every platform

Each social platform has its own preferred image dimensions. Use these specs to create images that display perfectly everywhere your content is shared.

PlatformRecommended SizeAspect RatioNotes
Facebook1200 x 630 px1.91:1Minimum 600 x 315 px. Images smaller than 200 x 200 px will not display.
Twitter1200 x 600 px2:1For summary_large_image cards. Summary cards use 144 x 144 px minimum.
LinkedIn1200 x 627 px1.91:1Minimum 200 x 200 px. Larger images get better engagement in feeds.
WhatsApp400 x 400 px1:1Square images work best. Falls back to og:image if no specific image is set.

Platform image requirements updated for 2026. Sizes may change; check platform docs for the latest.

Common OG Mistakes

Six mistakes that ruin your social share previews

Most broken social previews are caused by simple, avoidable mistakes. These six errors silently hurt your click-through rates on social media.

🚫

Missing og:image entirely

Posts without images get dramatically fewer clicks and shares. Social platforms may pull a random image from your page or show no image at all, making your link look broken or unprofessional.

Posts with images get up to 2.3x more engagement
📏

Using the wrong image size

Images that are too small get cropped or ignored. Images that are too large slow down page load times. Use 1200 x 630 pixels as your universal OG image size to look great across all platforms.

Use 1200 x 630 px as your universal size
🔗

Using relative image URLs

OG image URLs must be absolute (starting with https://). Social platform crawlers cannot resolve relative paths like /images/og.jpg. Always use the full URL including the domain.

Always start image URLs with https://
📝

Duplicating meta description as og:description

Your meta description targets search engines; your og:description targets social media users. Write a more engaging, action-oriented description for social sharing that encourages clicks.

Write unique copy for social vs. search
🔄

Not clearing platform cache after updates

Facebook, Twitter, and LinkedIn cache your OG data. After updating your tags, use each platform debugging tool to force a re-scrape. Otherwise, old titles, descriptions, and images will keep showing.

Use platform debug tools after every change
🔍

Forgetting Twitter-specific tags

Twitter uses its own meta tags (twitter:card, twitter:title, etc.). While it falls back to OG tags, including Twitter-specific tags gives you more control over how your content appears on the platform.

Include both OG and Twitter Card tags

Optimize Your OG Tags

8 tips to get more clicks from your social share previews

These strategies help you maximize the impact of your Open Graph tags. All CommonNinja widgets mentioned below are free to start.

01

Add social share buttons to every page

Make it effortless for visitors to share your OG-optimized content. Social share buttons placed near your content drive organic sharing and put your carefully crafted OG previews in front of new audiences.

Try Social Share Buttons widget
02

Write titles that spark curiosity

Your og:title is the headline of your social share card. Use action verbs, numbers, or questions to grab attention. Keep it under 60 characters so it does not get truncated on any platform.

03

Design a dedicated OG image

Do not reuse your page hero image. Create a purpose-built OG image with bold text overlay, your brand colors, and a clear visual hierarchy. Tools like Canva and Figma have OG image templates.

04

Use unique OG tags for every page

Every page on your site should have its own og:title, og:description, and og:image. Reusing the same tags across pages makes all your shared links look identical, reducing click-through rates.

05

Test on multiple platforms

Facebook, Twitter, and LinkedIn all render OG tags slightly differently. Use the Facebook Sharing Debugger, Twitter Card Validator, and LinkedIn Post Inspector to verify your previews look correct everywhere.

06

Include og:type for rich content

Setting og:type to "article" enables additional properties like article:published_time and article:author. This gives platforms more context and can improve how your content is categorized and displayed.

07

Organize FAQ content with accordions

If your page has frequently asked questions, use accordions to keep them organized. Clean, structured content makes it easier to write compelling og:descriptions that summarize what visitors will find.

Try Accordion widget
08

Keep content fresh with dynamic feeds

Content feeds automatically pull in new updates. Fresh, regularly updated pages give you more reasons to share on social media, and every share puts your OG tags to work driving new traffic.

Try Feeds widget

Social Meta Tags Glossary

Key social meta tag standards compared

OG tags are just one piece of the social metadata puzzle. Here is how they compare to other markup standards, and when to use each one.

StandardDefinitionSyntaxWhen to Use
OG TagsOpen Graph meta tags that control how your content appears when shared on Facebook, LinkedIn, and other social platforms. Defined by Facebook in 2010 as part of the Open Graph protocol.meta property="og:*"Every page you want to look professional when shared on social media
Twitter CardsTwitter-specific meta tags that define how your content appears in tweets. Twitter supports summary, summary_large_image, app, and player card types.meta name="twitter:*"Any page that may be shared on Twitter/X
Schema.orgA collaborative vocabulary for structured data markup. Used in JSON-LD format to help search engines understand your page content for rich results.JSON-LD script blockEarning rich snippets, knowledge panels, and enhanced search results
Structured DataMachine-readable code added to web pages that helps search engines understand the content. Can be implemented as JSON-LD, Microdata, or RDFa.JSON-LD / Microdata / RDFaImproving search engine understanding of your page content
Rich SnippetsEnhanced search results that display additional information like ratings, prices, or FAQ answers. Powered by structured data markup on your pages.Depends on schema typeIncreasing click-through rates from search engine results pages

FAQ

Open Graph (OG) tags are meta tags you add to the HTML head of your page to control how your content appears when shared on social media platforms like Facebook, LinkedIn, and Twitter. They let you define the title, description, image, and URL that show up in the share preview card. Without OG tags, platforms guess what to display, often with poor results.
Yes, it is completely free. No account or sign-up required. Generate as many OG tag sets as you need.
Twitter has its own meta tags (twitter:card, twitter:title, twitter:description, twitter:image). However, Twitter falls back to OG tags if Twitter-specific tags are missing. For the best results, include both. This free tool generates both OG and Twitter Card tags for you.
Facebook recommends 1200 x 630 pixels for og:image. Twitter recommends 1200 x 600 pixels for summary_large_image cards. LinkedIn uses 1200 x 627 pixels. A 1200 x 630 image works well across all platforms as a universal size.
Paste the generated meta tags inside the head section of your HTML page, before the closing head tag. If you use a CMS like WordPress, most SEO plugins (Yoast, Rank Math) have dedicated fields for OG tags. For Next.js, use the generateMetadata function or a Head component.
Use the Facebook Sharing Debugger (developers.facebook.com/tools/debug), the Twitter Card Validator, or the LinkedIn Post Inspector. These tools fetch your page and show exactly how your share preview will look. If you update your tags, use these tools to clear the platform cache.

Trusted by