01What is Open Graph Preview?
When you paste a link into Slack, LinkedIn, Discord or a Facebook post, the app sends a crawler to fetch the page and read its meta tags. The card you see is built from those tags. If they are missing, the crawler guesses, and the guess is often the cookie banner text or a random logo. Open Graph Preview writes the tags for you so the card shows what you meant. The rules come from the Open Graph protocol published at ogp.me. It names four required properties: og:title, og:type, og:image and og:url. This tool always emits those four when you fill them in, then adds og:description and og:site_name. After the Open Graph block it appends X's Twitter Card tags. twitter:card is fixed to summary_large_image, and twitter:title, twitter:description and twitter:image repeat your values. The form has five text fields (Title, Description, URL, Image URL, Site Name) and a Type dropdown with website and article. Any empty field simply drops its tags from the output. Values are HTML-escaped, so an ampersand becomes & and a double quote becomes ". That keeps a title like Tom & Jerry from breaking the attribute. Warnings sit right under the form. You get one when og:title, og:url or og:image is empty. You also get one when the URL or image isn't an absolute http or https address. That second check matters more than people expect. Crawlers fetch og:image on its own, without your page's base URL, so /img/cover.png points nowhere. Here's a quick case. Set Title to Launch week, clear Description and Site Name, set Image URL to /img/cover.png and pick article. The output has og:title, og:type article, og:url, og:image, twitter:card, twitter:title and twitter:image. Below the form you'll see the relative-path warning for og:image. The Card Preview is one plain mock-up, not a pixel copy of any platform. It shows the image URL as text instead of loading the picture, so it can't tell you whether the image is the right size or even exists. The tool also doesn't fetch your live page or read tags already on it. The tags are assembled in the page itself, so your draft titles and URLs stay on your machine until you paste them somewhere.
Front-end developers wiring share tags into page templates, and anyone debugging why a pasted link shows the wrong title or no image. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Open Graph Preview
- Type the page's Title and Description into the first two fields.
- Enter the page's canonical address in URL and a full https address in Image URL.
- Add a Site Name and pick website or article in the Type (og:type) dropdown.
- Read the yellow warnings under the form and fix each one.
- Check the Card Preview, then click Copy next to Generated Tags.
- Paste the tags into the <head> of your page or template.
03Worked examples
- Input:
Default values (Title My Website Title, URL https://example.com, Type website) - Result:
<meta property="og:title" content="My Website Title" /> <meta property="og:type" content="website" /> <meta property="og:url" content="https://example.com" /> <meta property="og:image" content="https://example.com/og-image.jpg" /> <meta property="og:description" content="A brief description of the page content." /> <meta property="og:site_name" content="Example" /> <meta name="twitter:card" content="summary_large_image" /> … - Shortened. The output ends with twitter:title, twitter:description and twitter:image, which repeat the same values.
- Input:
Title: Launch week; Description and Site Name empty; Image URL: /img/cover.png; Type: article - Result:
<meta property="og:title" content="Launch week" /> <meta property="og:type" content="article" /> <meta property="og:url" content="https://example.com" /> <meta property="og:image" content="/img/cover.png" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:title" content="Launch week" /> <meta name="twitter:image" content="/img/cover.png" /> Warning: og:image should be an absolute http(s) URL; crawlers can't resolve relative paths. - Empty fields drop their tags. The relative image path still produces a tag, plus a warning.
- Input:
Title and URL cleared; Description: Q&A - Result:
Warnings: og:title is required. / og:url is required (the page's canonical URL). <meta property="og:description" content="Q&A" />… - Missing required properties show as warnings, and & is escaped to &.
- Input:
Title: Say "hi" <now> - Result:
<meta property="og:title" content="Say "hi" <now>" /> - Only the og:title line is shown. Quotes and angle brackets are escaped, and twitter:title gets the same value.
- Input:
URL: example.com (no scheme) - Result:
<meta property="og:url" content="example.com" /> Warning: og:url should be an absolute http(s) URL. - Only the og:url line and its warning are shown. Add https:// to clear it.
04Common use cases
- Writing the og: and twitter: tags for a new blog post template before the first post goes live
- Checking a landing page has all four required Open Graph properties before a launch announcement
- Fixing a Slack unfurl that shows the site's generic title instead of the article headline
- Catching a relative og:image path that works in the browser but leaves social cards blank
- Switching og:type to article for posts while keeping website on the home page
- Escaping a title that contains quotes or an ampersand so the meta tag stays valid HTML
05Tips
- Facebook and LinkedIn cache share data. After you change the tags, run the URL through Facebook's Sharing Debugger or LinkedIn's Post Inspector to force a fresh fetch.
- Make og:url the canonical address without tracking parameters. Platforms group shares by that value.
- With article as the type, ogp.me also defines article:published_time, article:author and article:tag. This tool doesn't write them, so add them by hand if you want them.
- X falls back to the og: values when twitter:title, twitter:description or twitter:image are missing. Only twitter:card is needed to get the large image layout.
- Tags added by client-side JavaScript are usually invisible to share crawlers. Render them on the server or in static HTML.
06Related concepts
Open Graph protocol, Twitter Cards, Social media preview, Facebook Sharing Debugger.
Frequently Asked Questions
What is Open Graph Preview?
Open Graph Preview is a free, browser-based developer tool on AIDToolStack. Generate Open Graph and Twitter Card tags with required-tag checks and a card mock-up. It requires no installation or sign-up and works entirely in your browser.
Is Open Graph Preview free to use?
Yes. No sign-up, no fees and no usage cap.
Does Open Graph Preview store my data?
No. It runs in your browser; nothing is uploaded.