Open Graph Generator

Fill in the fields and get the Open Graph and Twitter Card tags to paste into your page's head, with a live preview of how the card will look when someone shares it. Values are escaped properly for HTML attributes, which matters more than it sounds — a single unescaped double quote in a title ends the content attribute early and silently breaks the tag, and that is by far the most common reason a share card comes out blank. The tool also checks the things that only fail after you publish: image URLs must be absolute, because social crawlers fetch them from their own servers and will not resolve a relative path, and titles and descriptions get length guidance against where each platform truncates. Empty fields are left out rather than emitted blank. Nothing is uploaded — the image is referenced by URL, never sent anywhere.

The tags that matter, and why

TagRequiredNotes
og:titleYesAbout 60 characters before truncation
og:descriptionRecommendedAbout 155 characters
og:imageRecommendedAbsolute URL, 1200 × 630
og:image:altRecommendedDescribes the image to screen readers
og:urlRecommendedThe canonical absolute URL
og:typeYeswebsite, article, product…
twitter:cardYes for Xsummary_large_image is the usual choice

When to use it

  1. Add share cards to a page that currently previews as a bare link.
  2. Check how a title and description will be truncated before publishing.
  3. Generate tags for a landing page or campaign without a CMS plugin.
  4. Fix a card that shows no image after going live.
  5. Produce Twitter Card tags alongside Open Graph in one pass.

How to Use

  1. Fill in the title, description, page URL and image URL.
  2. Pick the content type and Twitter card style.
  3. Check the preview and the warnings for anything that will fail once live.
  4. Copy the tags into your page's <head>.

Features

  1. Open Graph and Twitter Card tags together
  2. Live preview rendered from the same values as the output
  3. Proper HTML attribute escaping — quotes cannot break a tag
  4. Absolute-URL validation for images and page URLs
  5. Length guidance against real truncation points
  6. Empty fields omitted, never emitted blank
  7. 100% client-side — nothing uploaded

FAQs

Why is my share image not showing?

Nearly always because the URL is relative, the image is behind authentication, or the platform has cached an earlier version. Social crawlers fetch the image from their own infrastructure, so it must be an absolute https URL that is publicly reachable. This tool flags relative URLs before you publish.

What size should the image be?

1200 by 630 pixels is the safe default for a large summary card — it is the ratio Facebook, LinkedIn and X all handle well. Stay under about 5 MB, and avoid putting important text near the edges, since platforms crop differently.

Do I need Twitter tags as well as Open Graph?

X falls back to Open Graph for most properties, so strictly you only need twitter:card to choose the layout. Including the rest costs nothing and gives you explicit control if you want a different title or image there than elsewhere.

How long should the title and description be?

Around 60 characters for the title and 155 for the description keeps you clear of truncation on the major platforms. Going over is not an error — the text is just cut off, usually mid-word, which reads badly.

I updated my tags but the old card still shows.

Platforms cache aggressively. Use each platform's own debugger — Facebook's Sharing Debugger, LinkedIn's Post Inspector — to force a refetch. Nothing you change on your own page clears their cache on its own.

Is anything uploaded?

No. Tags are generated in your browser and the image is referenced by URL — it is never uploaded or proxied. Unpublished page titles and URLs are never sent anywhere.

Technical Details

Tags are templated from the fields, with every value escaped for a double-quoted HTML attribute — ampersands first, then quotes and angle brackets, in that order so entities are not double-encoded. That escaping is the difference between a working tag and a broken one: a single unescaped double quote in a title terminates the content attribute early and the rest of the tag becomes stray markup, which is the most common way hand-written Open Graph tags fail. Empty fields are omitted rather than emitted with an empty content attribute, since a blank og:description is worse than none — some crawlers prefer it over the fallback they would otherwise choose. Image and page URLs are checked for being absolute http or https: social crawlers fetch them from their own infrastructure and will not resolve a relative path, which is why a card that previews correctly in a local test can show no image once published. Title and description lengths are measured against the points at which the major platforms truncate. The preview card is rendered from the same values that produce the tags, so what you see cannot drift from what you copy.

SEO Tools

SEO Tools

  • Schema Markup Generator
  • Meta Tag Generator
  • Sitemap Generator
  • Canonical URL Builder
  • Heading Structure Checker
  • Image Alt Text Auditor
  • Robots Meta Tag Generator
  • Sitemap Inspector