DEVELOPER TOOL

Open Graph Tag Generator — social share previews

Build clean Open Graph and Twitter Card meta tags and preview exactly how your link will look on Facebook, LinkedIn, and X.

Keep it under ~60 characters so it doesn't truncate.
Aim for 110–160 characters.
Language and region in underscore format — e.g. en_US, en_GB, es_ES. Left blank, no og:locale tag is written.
The two article fields are written out only when og:type is set to article and the field is filled in.
Live share preview
Arb Digital — Fast, High-Converting Websites
arbdigital.agency
0
Title chars
0
Desc chars
6
Tags generated
OK
Length status
Tip: Facebook and LinkedIn cache your OG tags — use their debug/inspector tools to force a re-scrape after changes.

The Open Graph tag generator on this page builds the exact <meta> tags that control how a URL looks when it's shared on Facebook, LinkedIn, Slack, Discord, and X (Twitter). Instead of memorizing property names or copy-pasting from an old project, you fill in a title, description, image, and URL, and the tool outputs a ready-to-paste block plus a live preview of the resulting share card.

Everything runs in your browser: the values you type are not sent anywhere.

What This Open Graph Tag Generator Does

Open Graph is a protocol originally introduced by Facebook that lets any web page describe itself as a rich object in a social graph. When you paste a link into a chat app or social feed, the platform looks for a small set of <meta property="og:..."> tags in the page's <head>. If they're present and well-formed, the platform renders a card with an image, headline, and description instead of a bare blue link. If they're missing, most platforms fall back to guessing from the page's <title> and an image found on the page, which usually looks worse and sometimes pulls the wrong image entirely.

This tool takes the five core Open Graph fields — title, description, URL, image, and type — along with the site name, and assembles the corresponding tags in the correct format. It also generates the matching Twitter Card tags, because X uses its own twitter:card family to choose the card layout. Writing both sets means you do not have to depend on any platform's fallback behaviour.

How to Use It

  1. Enter your page title. This becomes the bold headline on the share card. Keep it close to your actual <title> tag so it reads consistently.
  2. Write a description. One or two sentences that sell the click. Most platforms truncate around 110–160 characters, so the tool tracks your character count live.
  3. Paste the canonical URL. Always use the full https:// URL, including trailing slash if that's your site's convention, so the platform doesn't cache a duplicate variant.
  4. Add an image URL. 1200×630px is the safe universal size — it satisfies Facebook, LinkedIn, and X's large-image card without cropping oddly.
  5. Pick og:type and the Twitter card style, then copy the generated block into your page's <head>, above the closing </head> tag.

How the Tags Are Structured

Open Graph properties follow a flat og:property naming convention rather than nested JSON, which is what makes them easy to hand-write once you know the pattern: og:title, og:description, og:url, og:image, og:type, and og:site_name cover most sharing needs. The specification at ogp.me is the reference for the protocol; it requires title, type, image and url, and also documents optional properties such as og:image:width and og:image:height.

Twitter's card tags run in parallel and use the twitter: prefix instead of og:: twitter:card, twitter:title, twitter:description, and twitter:image. X's developer documentation on getting started with cards is the source to check if you need less common card types. Both tag families can coexist in the same <head>; crawlers simply ignore the properties they don't use.

Why Open Graph Tags Matter for Click-Through Rate

A link shared without Open Graph tags is a wall of blue text competing against dozens of other posts in a feed. A link with a clean image, a clear headline, and a tight description is easier to notice and to trust. The size of any click-through gain depends on your audience and content, so measure it yourself rather than assuming a number. This matters just as much for internal tools and documentation shared in Slack as it does for public marketing pages — a badly cropped auto-generated thumbnail undermines trust even before someone clicks.

It's also worth noting that Open Graph tags are read by many chat apps beyond the big social networks — Slack, Discord, Microsoft Teams, WhatsApp link previews, and iMessage all use some flavor of OG parsing. Getting the tags right once means every one of those surfaces benefits, without platform-specific extra work.

Common Pitfalls With Open Graph Images

  • Relative image paths. og:image must be an absolute URL (https://...), never a relative path like /img/hero.jpg. The generator shows a warning under the image field when the URL is not an absolute https:// address.
  • Images that are too small. Facebook's image guidelines state a minimum image size of 200 x 200 pixels; use 1200×630 for a full-width card.
  • Forgetting to update after a redesign. Cached previews can persist. If your card still shows an old image after a change, use each platform's cache-refresh tool rather than waiting.
  • Mismatched og:url. If og:url points to a different URL than the one actually being shared, platforms may treat it as the canonical address for the page. Keep it equal to your canonical URL.
  • Missing og:type. The specification lists it as required. Use website for most pages, and article or product where they apply.
Need your whole site's social presence handled, not just one tag block?

Arb Digital builds websites with Open Graph tags, schema markup and page speed handled as part of the build rather than added afterwards. See what we offer.

Our Services All Free Tools

Common Mistakes to Avoid

  • Writing a title that is unrelated to the page's actual <title> tag, which looks misleading to users. A shorter, punchier version of the same message is fine.
  • Using an image with important text or a logo pushed to the far edges — platforms crop differently, and edge content often gets cut off.
  • Skipping twitter:card and assuming Open Graph tags alone will give you the large-image card on X. Set it explicitly and test.
  • Leaving the description empty, which forces the platform to auto-extract body text that's often the wrong sentence.
  • Not testing before publishing — always paste the live URL into a platform's official debugger before considering the job done.

Related Free Tools From Arb Digital

Pair this generator with the Twitter Card Generator for X-specific markup, the Meta Tag Generator for the title, description and canonical tags, the Meta Description Length Checker to check your snippet, and the String to Slug Converter for clean URL paths. Browse the full free online tools hub for more.

The Tags That Actually Change Your Share Preview

When someone pastes your link into Facebook, LinkedIn, Slack or iMessage, the rich card that appears is built almost entirely from four Open Graph tags: og:title, og:description, og:image and og:url. Miss them and platforms fall back to guessing — often grabbing your generic site name, a stray paragraph, and whatever image they can find, which is frequently a logo or nothing at all. Setting them explicitly is the most direct way to control how your content looks when shared.

og:image does the heaviest lifting because the picture dominates the card visually. og:title can be a shorter, more specific headline than your page's <title> tag, and og:description is your one or two sentences of persuasion. X also uses its own twitter:card family; setting twitter:card to summary_large_image asks for the full-width image card instead of a small thumbnail. The generator above emits both sets so your preview looks intentional on every major platform at once.

Image Sizes, Caching and Debugging the Preview

Two practical gotchas trip up almost everyone. First, image dimensions: the widely recommended size is 1200×630 pixels (a 1.91:1 ratio) served over HTTPS at an absolute URL, not a relative path. Undersized or oddly shaped images get cropped awkwardly or rejected, and a relative /image.jpg that works in your browser will fail when a crawler on another domain tries to fetch it. Always give the full https://… address for og:image and og:url.

Second, caching. Platforms scrape your tags once and cache the result aggressively, so if you fix your tags after a link has already been shared, the old preview can stubbornly persist. The remedy is each platform's debugging tool — Facebook's Sharing Debugger and LinkedIn's Post Inspector both let you re-scrape a URL and force a fresh preview, and they double as validators that show exactly what the crawler sees. Generate your tags with the tool here, paste them into your page's <head>, then run the URL through those debuggers before you announce anything; it turns "why does my link look broken" into a two-minute fix.

Structured Data and Fallbacks Beyond Open Graph

Open Graph tags control social previews, but they are one member of a small family of metadata worth setting together. The classic <meta name="description"> still feeds the snippet many search engines show, and it is a separate tag from og:description — setting one does not set the other, which is why pages sometimes have a great share preview but a blank search snippet, or vice versa. A thorough head section defines both, plus a real <title>, so every surface that quotes your page has something intentional to show.

It also pays to design graceful fallbacks. If og:title is missing a platform drops back to <title>; if og:image is missing it may pick any image on the page or nothing at all. Rather than rely on that lottery, set the tags explicitly and treat a strong default share image as part of your template so even a hastily published page never looks broken when shared. Combined with the debugging tools each platform provides, this "belt and braces" approach — Open Graph for social, meta description for search, sensible defaults for everything else — is what makes a link look polished no matter where it lands.

Worked Example With the Default Inputs

Open this page and look at the output box without changing anything (press Generate Tags to rebuild it). These are the starting values, taken straight from the form:

  • Page title: Arb Digital — Fast, High-Converting Websites
  • Page URL: https://arbdigital.agency/
  • Site name: Arb Digital
  • Image URL (1200×630 recommended): https://arbdigital.agency/images/og-default.jpg
  • og:type: website
  • Twitter card type: summary_large_image

The generator returns the following, computed by the same code that runs above:

  • Live share preview: Arb Digital — Fast, High-Converting Websites
  • Title chars: 44
  • Desc chars: 98
  • Tags generated: 10
  • Length status: OK

These are sample values, not a recommendation. The line under the preview shows the host taken from the URL, “arbdigital.agency”. The 10 tags are og:title, og:description, og:url, og:type, og:image, og:site_name, twitter:card, twitter:title, twitter:description and twitter:image; og:locale and the two article tags appear only when you fill them in (and, for the article tags, choose the article type).

How to read your result

  • Title chars 44 and Desc chars 98. The Length status turns to “Long” only when the title passes 70 or the description passes 170 characters. Those limits are this page's own cut-offs, not a platform rule. The description here is 98 characters, below the 110 to 160 range suggested in the form, so you could say a little more.
  • Tags generated counts the lines in the output box. If it is lower than you expect, a field (usually the image) is empty.
  • The preview only shows your title and host. It does not fetch your image or draw the card, so a broken image URL will not show here.

What to do next

  • Copy the block into the <head> of the page, then check that og:image opens in a browser without logging in.
  • Run the live URL through the Facebook Sharing Debugger and the LinkedIn Post Inspector and re-scrape if an old preview is cached.
  • Replace the default image URL with a real file on your own site before publishing.

Frequently Asked Questions

What is an Open Graph tag generator used for?

It builds the <meta property="og:..."> and Twitter Card tags that control how a URL's title, description, and image appear when shared on social platforms and chat apps.

What image size should I use for og:image?

1200×630 pixels is the widely recommended size — it fills Facebook, LinkedIn, and X's large-image card cleanly without awkward cropping.

Why does my link still show the old preview after I updated the tags?

Social platforms cache Open Graph data. Use Facebook's Sharing Debugger or LinkedIn's Post Inspector to force a fresh scrape of the page.

Do I need both Open Graph and Twitter Card tags?

Yes for full coverage. Open Graph tags drive Facebook, LinkedIn, and most chat apps; X uses its own twitter:card tags to choose the card layout.

Can og:image be a relative URL?

No, it must be a full absolute URL starting with https:// so crawlers on other domains can fetch it correctly.

Is this Open Graph tag generator free to use?

Yes, it runs entirely in your browser at no cost, with no sign-up and no limit on how many tag sets you generate.

Turn this result into a plan

Prefer to hand this off? See how our Web Design & Build work handles it for clients.