3 new job openings added this week

Open Graph Meta Tag Generator

Developer Tools Runs in your browser

Create Open Graph meta tags for social media sharing. Generate Facebook, Twitter, LinkedIn preview cards.

Open Graph Generator tool

Open Graph Information

60-95 characters recommended

0/200 characters (recommended)

1200x630px recommended (1.91:1 ratio)

0 tags • Ready to paste in <head> section

Social Media Preview

Facebook / LinkedIn
example.com
Your title will appear here
Your description will appear here...
Twitter / X
Your title will appear here
Your description will appear here...

Platform Support

Facebook

Full support for all OG tags

Twitter

Uses OG tags, supports Twitter Cards

LinkedIn

Full Open Graph support

WhatsApp

Uses OG tags for link previews

About Open Graph Generator

Fill in the title, description, image and URL you want to appear when someone shares your page, and get the complete Open Graph and Twitter Card block to paste into your head. Two live previews show how the share is likely to render on Facebook or LinkedIn and on X, so you can see a truncated headline before your audience does.

What this tool does

  • Generates og:title, og:description, og:image, og:url, og:site_name, og:type and og:locale
  • Twitter Card tags: twitter:card, twitter:title, twitter:description and twitter:image
  • Article fields — published time, author, section and tags — when the type is set to article
  • Ten locales and seven content types to choose from
  • Live Facebook/LinkedIn and Twitter/X previews
  • Character counter on the description
  • Copy the markup or download it as an HTML file

Runs in your browser. This tool runs entirely in your browser using JavaScript. Nothing you enter or open here is uploaded to our servers.

How to use Open Graph Generator

  1. Enter the title and description

    These can differ from your search-engine title and description, and often should: a share headline can be more conversational than a title tag.

  2. Add the image URL

    Use an absolute URL — https://example.com/image.jpg, not /image.jpg. Relative paths are the most common reason a preview shows no image at all.

  3. Set the canonical page URL

    og:url should be the clean, canonical address of the page. Platforms use it to group shares of the same page together.

  4. Pick the type and locale

    Website for most pages, article for blog posts and news. Choosing article reveals the published time, author, section and tag fields.

  5. Copy the tags into your head

    Paste the whole block inside <head>. Then re-share the link and check the preview — platforms cache aggressively, so use their debugging tools to force a refresh after a change.

Open Graph Generator examples

Real input and the output this tool produces for it.

Example inputs and the results Open Graph Generator returns
Example Input Result
Share title How we cut our build time by 70% <meta property="og:title" content="How we cut our build time by 70%">
Share image https://example.com/og/build-time.png <meta property="og:image" content="https://example.com/og/build-time.png">
Large Twitter card Any generated block <meta name="twitter:card" content="summary_large_image">
Article metadata Type: Article, published 2026-09-05 <meta property="article:published_time" content="2026-09-05">

Getting social previews right

What Open Graph is for

Open Graph is a small set of meta tags that tell any platform showing a link preview what to display. Facebook introduced it, and LinkedIn, WhatsApp, Slack, Discord, Signal, Teams and X all read it now.

Without these tags, platforms guess: they take whatever text they find near the top of the page and whatever image seems largest. The result is often a navigation menu as the description and a logo or a random thumbnail as the image. The tags exist so you decide instead.

The tags that actually get used

Four tags carry almost all the weight; the rest are refinements.

Open Graph tags and their role
Tag What it controls Required?
og:title The headline of the preview card Yes
og:description The supporting line under it Yes in practice
og:image The picture — the single biggest driver of engagement Yes in practice
og:url The canonical URL the share is attributed to Yes
og:type website, article, video and so on Recommended
og:site_name Your site's name beside the preview Recommended
og:locale The language and region of the content Optional
twitter:card Whether X shows a small or a large image Recommended

Getting the image right

The image is what people notice, and it is where most previews go wrong.

  • Use 1200 × 630 pixels (a 1.91:1 ratio). It is the size Facebook, LinkedIn and X all render well, and it avoids awkward cropping.
  • The URL must be absolute and start with https://. A relative path is the single most common cause of a missing preview image.
  • The image must be publicly reachable. Anything behind a login, a staging password, or a hotlink protection rule will not be fetched by the crawler.
  • Keep it under about 5 MB, and preferably far smaller — some platforms give up on slow fetches.
  • Do not put small text in it. Previews are shown small on phones; a headline works, body copy does not.
  • Leave the edges quiet. Different platforms crop differently, so keep anything essential away from the borders.
  • The image resizer will get an image to exactly 1200 × 630.

Why your preview did not update

Every major platform caches link previews, often for a long time. Changing the tags does not retroactively change a share that has already been posted, and pasting the link again usually serves the cached version.

Each platform provides a tool that fetches the page fresh and rebuilds its cache — Facebook's Sharing Debugger, LinkedIn's Post Inspector, X's Card Validator. Run the URL through the relevant one after any change, then paste the link again.

If a preview is still wrong after that, check that the page returns a 200 to a crawler that is not logged in, that the image URL is absolute and public, and that the tags are inside <head> rather than in the body.

Open Graph, Twitter Cards, and search tags

X reads its own twitter: tags first and falls back to Open Graph for anything missing, which is why the generated block includes both. Setting twitter:card to summary_large_image is what turns a small thumbnail into a full-width image.

None of these tags affect search rankings — they are read by social platforms, not by search crawlers. Your <title>, meta description and canonical are a separate set, and the meta tag generator produces those. A complete head has both.

When people use this tool

Publishing a blog post

Set an article-type block with the published time and author so shares render as an article rather than a bare link.

Launching a landing page

Control exactly what appears when the page is shared into Slack, WhatsApp or LinkedIn.

Fixing an ugly preview

When a link shows a menu as its description and a logo as its image, these are the tags that were missing.

Preparing a product announcement

Check the headline and image in the preview before the campaign goes out, not after.

Standardising across a site

Generate a reference block that developers can template across every page type.

Localising shares

Set og:locale so the preview declares the right language and region.

More about Open Graph Generator

Generate Open Graph meta tags for perfect social media link previews. Create tags for Facebook, Twitter, LinkedIn, WhatsApp, and other platforms. Configure title (60-95 characters), description (up to 200 characters), image URL (1200x630px recommended, 1.91:1 ratio), canonical URL, site name, content type (website, article, blog, video, music, book, profile), and locale settings. Article-specific fields: published time, author, section, and tags. Real-time social media preview showing how your link will appear on Facebook/LinkedIn and Twitter/X. Supports multiple content types with conditional fields. Twitter Card tags included automatically (summary_large_image). Character counter for descriptions. Copy generated HTML code or download as HTML file. Platform support information: Facebook (full OG support), Twitter (OG tags + Twitter Cards), LinkedIn (full OG support), WhatsApp (uses OG for link previews). Perfect for social media marketing, content sharing, and improving click-through rates from social platforms.

Open Graph Generator — frequently asked questions

All Developer Tools

Share This Tool

Help others discover this tool by sharing it on social media

Embed Open Graph Generator on your site

Paste this iframe into your own page to give your readers the working tool without sending them away. The embed carries a "Powered by TechBelievers" link and needs no API key.

Embed code
<iframe src="https://techbelievers.com/tools/open-graph-generator/embed?theme=light" width="100%" height="600px" title="Open Graph Generator by TechBelievers" style="border:1px solid #e2e8f0;border-radius:0.5rem"></iframe>

Report a problem or suggest an improvement

Only used to reply to you about this report.

Join Whatsapp