Skip to content
Free, no account, runs in your browser

Open Graph generator: meta tags and share-card previews

Fill in the title, description, page URL and image, see how the card will look when the link is shared, and copy the tags into your page's <head>. Everything runs in your browser.

Updated

Paste this inside <head>
Previews (approximate)
Facebook, LinkedIn
X
How do I add Open Graph tags to a page?Add meta tags in the page's <head>, such as <meta property="og:title" content="…">. The Open Graph protocol requires og:title, og:type, og:image and og:url; og:description and og:site_name are recommended. Add twitter:card to choose X's card style. This generator writes the whole block, shows preview cards and flags a title, description or image that is likely to be cut or cropped.

How to use it

  1. Enter the page details

    Title, description, the page's canonical URL, the image URL and your site name.

  2. Pick the types

    Choose og:type (website for most pages, article for blog posts) and the X card type: summary_large_image for a wide image, summary for a small square one.

  3. Check the previews and lengths

    Look at the Facebook/LinkedIn-style, X-style and WhatsApp-style cards and follow the length hints: about 60 characters for the title, 110 to 160 for the description, a 1200 x 630 image.

  4. Copy the tags into <head>

    Paste the block into your page template or your CMS's custom head field, publish, and test the live URL by sharing it.

Which Open Graph tags does a page need?

Open Graph is the protocol, published at ogp.me, that turns a web page into a rich object when it is shared. Each tag is a meta element with a property and a content attribute.

TagRequired?What to put in it
og:titleYesThe page title as it should appear on the card
og:typeYeswebsite for most pages, article for posts
og:imageYesFull https:// URL of the share image
og:urlYesThe canonical URL of the page
og:descriptionRecommendedOne or two sentences
og:site_nameRecommendedYour site or brand name
og:image:width, og:image:heightHelpfulImage size in pixels, so the card can render on the first share
og:image:altRecommended with an imageA description of the image
twitter:cardFor Xsummary or summary_large_image

What size should an Open Graph image be?

Use 1200 x 630 pixels, a 1.91:1 ratio. Meta's documentation recommends at least 1200 x 630 for high-resolution screens and a ratio as close to 1.91:1 as possible to avoid cropping; images under 600 x 315 still show, but much smaller. The minimum is 200 x 200 and the file must be under 8 MB.

  • Keep text and logos away from the edges, so a slightly different crop in another app does not cut them off.
  • Use a new image URL when you change the image. Facebook caches images by URL, so replacing the file at the same address will not update the card.
  • For X, images must be under 5 MB in JPG, PNG, WEBP or GIF; SVG is not supported.
  • Set og:image:width and og:image:height so the image can appear the first time the link is shared, before the crawler has processed it.

Usually only twitter:card. X's card documentation shows twitter:title, twitter:description and twitter:image falling back to og:title, og:description and og:image when they are missing, so the Open Graph tags do double duty. Add the twitter: versions only when you want different text on X.

Share cards also matter when you share a short link. In BN Shortener each link can carry its own preview (title, description, image and X card type), with live Facebook/LinkedIn and X previews in the editor. If you set a custom preview card, search crawlers get the preview page instead of the 301, so leave the card off links where the 301 matters for SEO. Launch Check tests the preview title, description and image before you send, and bio pages set their Open Graph and X card tags automatically.

Sources

  1. The Open Graph protocol, checked 2026-10-23
  2. Images in link shares, Meta for Developers, checked 2026-10-23
  3. Cards markup, X Developer Platform (archived copy of 16 January 2026; the live page now redirects), checked 2026-10-23

Questions

Why does Facebook or LinkedIn still show my old preview?

Platforms cache what they read the first time a URL is shared. Use the platform's debugging tool (Facebook's Sharing Debugger, for example) to fetch the page again, and give a new image a new URL.

How long should the og:title be?

Aim for about 60 characters. Longer titles are often cut on cards, especially on phones. X has documented a 70-character maximum for twitter:title.

How long should the og:description be?

About 110 to 160 characters, one or two sentences, as ogp.me suggests. Cards often shorten the description, so put the important words first.

What is the difference between summary and summary_large_image?

summary shows a small square thumbnail next to the text; summary_large_image shows a wide image above it. Pick the large image when you have a 1200 x 630 picture worth showing.

Where do I paste the tags?

Inside the <head> of the page, before </head>. In most CMSs and site builders there is a field for custom head code or SEO and social settings per page. Put them in the page's HTML itself rather than adding them with JavaScript after the page loads.

Is anything I enter uploaded?

No. The tags and previews are generated in your browser. The preview loads your image from its URL, but nothing is sent to our servers.

Try it on your next link

The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.