Get a Free Consultation

Open Graph & Twitter Card Generator

Add your title, description and image, preview how the link looks on Facebook, LinkedIn and X, then copy the meta tags into your page <head>. Free, no sign-up, and nothing leaves your browser.

Updated Live Facebook, LinkedIn and X previews Copy or download as .html

Your social preview

Jump to your tags
1Open Graph type

Use article for blog posts, product for shop pages and website for everything else.

2The content

Use 1200 × 630 px on a public URL that crawlers can reach.

3Twitter / X optional

Auto picks the large image card when an image is set.

More details: image alt, size, locale and creator

Added as og:image:alt and twitter:image:alt.

What are Open Graph and Twitter Card tags?

Open Graph and Twitter Card tags are meta tags in a page’s <head> that tell social platforms which title, description and image to show when someone shares the link. Open Graph was created by Facebook and is read by LinkedIn, WhatsApp, Slack and many others, while Twitter Cards control the preview on X.

Without these tags, a platform guesses from your page and often picks a logo, an ad or nothing at all. With them, every share looks deliberate, which tends to earn more clicks.

X reads Open Graph tags when Twitter tags are missing, so the minimum is the og: set plus twitter:card. This generator writes both for you.

Open Graph and Twitter Card example

<meta property="og:type" content="article" />
<meta property="og:url"
  content="https://www.example.com/post/" />
<meta property="og:title"
  content="How to Audit a Site" />
<meta property="og:description"
  content="A simple checklist." />
<meta property="og:image"
  content="https://www.example.com/og.jpg" />

<meta name="twitter:card"
  content="summary_large_image" />
<meta name="twitter:title"
  content="How to Audit a Site" />
<meta name="twitter:image"
  content="https://www.example.com/og.jpg" />

Which social tags should you include?

Four Open Graph tags are required by the protocol. The rest improve how the card looks and how accessible it is.

Based on the Open Graph protocol (ogp.me) and X’s Cards documentation. Last checked October 2026.
TagWhat it doesPriority
og:titleHeadline shown on the share cardAlways include
og:typeThe kind of page: website, article, product or profileAlways include
og:imageImage on the card, ideally 1200 × 630 pxAlways include
og:urlThe canonical address of the pageAlways include
og:descriptionOne or two sentences under the titleStrongly recommended
twitter:cardChooses the summary or large image layout on XStrongly recommended
og:image:alt, twitter:image:altDescribes the image for screen readersRecommended
og:site_name, twitter:siteBrand name and X account shown with the cardRecommended
og:locale, twitter:creatorLanguage region and the author’s X handleIf it applies

Summary or summary_large_image: which card should you use?

Both are valid. The deciding question is whether your image is wide enough to carry the card.

summary_large_image

For most pages

  • Blog posts and landing pages
  • Products with a strong photo
  • Any 1200 × 630 share image
  • The default when you pick Auto and add an image

summary

For compact cards

  • Profiles and team pages
  • Square logos or avatars
  • Pages with no share image
  • Short, text-led links

How do you add Open Graph tags to a website?

The generator does the writing. These four steps take you from a blank form to a tested share card.

  1. Pick the type

    Choose website, article, product or profile.

  2. Add the content

    Enter the title, description, URL and share image.

  3. Copy the tags

    Copy the code, or download it as an HTML file.

  4. Paste and test

    Add it to the page head, then refresh it in the debuggers.

Platforms cache share cards. After you change a tag or image, run the page through the Facebook Sharing Debugger or LinkedIn Post Inspector so the old preview is replaced. Also check your SEO plugin first, because it may already output these tags.

Open Graph questions, answered

Short answers on image size, tags and testing.

What are Open Graph tags used for?

Open Graph tags tell social platforms which title, description and image to show when your page is shared. They are used by Facebook, LinkedIn, WhatsApp, Slack and many other apps.

What size should an Open Graph image be?

Use 1200 by 630 pixels, a ratio of about 1.91 to 1, saved as JPG or PNG. Keep important content away from the edges, because some platforms crop the image.

Do I need both Open Graph and Twitter Card tags?

Not strictly. X falls back to Open Graph tags when Twitter tags are missing. Adding twitter:card still lets you choose the card layout, so include at least that one.

Which Open Graph tags are required?

The protocol requires og:title, og:type, og:image and og:url. Add og:description as well, since most platforms show it under the title.

Why is my old image still showing after I changed it?

Platforms cache share cards. Re-scrape the URL in the Facebook Sharing Debugger or LinkedIn Post Inspector to refresh the preview. Using a new image file name also helps.

What is the difference between og:type website and article?

Use article for blog posts and news, website for general pages and the homepage, product for shop items and profile for people. The type helps platforms group and label the content.

What is twitter:site?

twitter:site is the X username of the website or brand that owns the page, written with an @. twitter:creator is the individual author’s handle.

Do Open Graph tags affect SEO rankings?

No, they are not a Google ranking factor. They do affect how shared links look, which can raise clicks and traffic from social platforms.

Is this Open Graph generator free?

Yes. It is completely free, with no sign-up and no limit. Everything runs in your browser, so what you type is never uploaded to a server.

Want your pages to look great when shared?

Search Savvy’s team sets up Open Graph, Twitter Cards and structured data across every template, and fixes the technical issues that hold your site back.

See our SEO services
5 ★★★★★ 9 Google reviews