---
title: "Open Graph Preview & Meta Tag Generator"
description: "Preview how your link unfurls on X, LinkedIn, Facebook, Slack, Discord and iMessage, then copy complete Open Graph and Twitter Card meta tags."
url: https://www.shaheermalik.com/tools/og-meta-generator
language: en
format: agent view of this page (the same content as the page, as plain text)
updated: 2026-11-23
---

[Free tools](https://www.shaheermalik.com/tools) [SEO & marketing](https://www.shaheermalik.com/tools#seo)

# Open Graph preview & meta tag generator

See how your link will unfurl on X, LinkedIn, Facebook, Slack, Discord, iMessage and WhatsApp before you share it, check your image against each platform's rules, and copy complete Open Graph and Twitter Card tags.

- Free, no signup
- Runs in your browser
- Nothing is uploaded

## Page details

What the card says.

Title (og:title)

34 characters

Description (og:description)

Page URL (og:url)

Site name

Type (og:type) website

## Share image

Upload to preview locally, or paste the URL of an image already online.

Drop files here, or click to browse image/png, image/jpeg, image/webp, image/gif · up to 20.0 MB

…or image URL

Image alt text

X handle (twitter:site)

Card type

Large image Summary

## Checks

Image 1200 × 630px

- Sample image This is a generated placeholder. Drop your real image or paste its URL to check it. Note
- 1200 × 630px Large enough to stay sharp on retina screens. Good
- Ratio 1.90:1 Matches the 1.91:1 shape every platform crops to. Good
- Title · 34 chars Short enough to show in full almost everywhere. Good
- Description · 98 chars A good length for previews. Good

## Link previews

Approximations of each platform’s card. Platforms change these often.

Share

Showing a sample image

Generated from your title so the previews look real. Drop your own image to check its size and crop.

X (Twitter)

Image: Northwind Studio brand identity work on a blue background

Brand Identity Design for Startups

From northwind.example

LinkedIn

Brand Identity Design for Startups

northwind.example

Facebook

northwind.example

Brand Identity Design for Startups

Logo, type, colour and guidelines for early-stage startups. Fixed price, delivered in three weeks.

iMessage

Brand Identity Design for Startups

northwind.example

Slack

Northwind Studio

Brand Identity Design for Startups

Discord

Northwind Studio

Brand Identity Design for Startups

WhatsApp

Brand Identity Design for Startups

northwind.example

https://northwind.example/services/brand-identity

10:24 ✓✓

## Meta tags

Paste into <head>, or use the Next.js version.

HTML Next.js

HTML meta tags Copy

```
<title>Brand Identity Design for Startups</title>
<meta name="description" content="Logo, type, colour and guidelines for early-stage startups. Fixed price, delivered in three weeks." />

<!-- Open Graph -->
<meta property="og:title" content="Brand Identity Design for Startups" />
<meta property="og:description" content="Logo, type, colour and guidelines for early-stage startups. Fixed price, delivered in three weeks." />
<meta property="og:url" content="https://northwind.example/services/brand-identity" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Northwind Studio" />
<meta property="og:image" content="https://northwind.example/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Northwind Studio brand identity work on a blue background" />

<!-- Twitter / X -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@northwindstudio" />
<meta name="twitter:title" content="Brand Identity Design for Startups" />
<meta name="twitter:description" content="Logo, type, colour and guidelines for early-stage startups. Fixed price, delivered in three weeks." />
<meta name="twitter:image" content="https://northwind.example/og-image.png" />
<meta name="twitter:image:alt" content="Northwind Studio brand identity work on a blue background" />
```

How it works

## How to use the Open Graph preview & meta tag generator

1. 01
### Describe the page
Enter the title, description, URL and site name you want people to see when the link is shared, and pick the og:type.

2. 02
### Add the share image
Drop an image to preview it locally, or paste the URL of one already online. The checks report its size, aspect ratio and file weight.

3. 03
### Compare every platform
See approximate link cards for X, LinkedIn, Facebook, iMessage, Slack, Discord and WhatsApp side by side, updating as you type.

4. 04
### Copy the tags
Copy the full set of Open Graph and Twitter Card meta tags, or a Next.js metadata object that renders the same thing.

## What Open Graph tags do

When someone pastes a link into a post or a chat, the platform fetches the page and looks for **Open Graph** meta tags in the `<head>`. The protocol was introduced by Facebook in 2010 and is now read by almost everything: LinkedIn, Slack, Discord, iMessage, WhatsApp, Telegram and most AI chat apps. X uses its own **Twitter Card** tags but falls back to Open Graph for anything missing. Without these tags, platforms guess, and the guess is usually the wrong image or no card at all.

## The tags that matter

| Tag | What it does |
| ----------------------- | ----------------------------------------------------------------------------------- |
| og:title | The headline of the card. Keep it under about 60 characters. |
| og:description | One or two lines of supporting copy. LinkedIn and X often hide it. |
| og:image | The share image. Must be an absolute URL. |
| og:image:width / height | Lets Facebook render the image on the very first share instead of after processing. |
| og:url | The canonical URL, so likes and shares are counted on one address. |
| og:type | website for most pages, article for posts. |
| twitter:card | summary\_large\_image for a big image, summary for a small square thumbnail. |

## Image rules by platform

- **Universal target:** 1200 × 630px (1.91:1), PNG or JPG, under about 1 MB. Design to this and every platform looks good.
- **X large card:** 2:1 crop, at least 300 × 157px, under 5 MB. JPG, PNG, WebP and GIF are accepted; GIFs show their first frame.
- **X summary card:** a square crop, at least 144 × 144px.
- **Facebook and LinkedIn:** 1.91:1\. Below about 600 × 315px you risk a small thumbnail instead of a full-width image.
- **No SVG.** None of the major platforms render SVG share images.

Crops differ slightly between platforms, so keep text and logos inside a central safe area with generous margins. The card is often shown only 300 to 500px wide on a phone, so use large type, few words and strong contrast. For every other social format, see the [social media image size guide](https://www.shaheermalik.com/tools/social-image-sizes).

## How each platform shows the card

The same tags produce noticeably different cards, which is why the previews above sit side by side:

- **X**shows the image with the title overlaid in the corner and "From domain" underneath. The description is not shown on large cards.
- **LinkedIn** shows the image, the title and the domain, and drops the description.
- **Facebook** adds the domain in capitals above the title and one line of description.
- **Slack and Discord**show the site name, title, a few lines of description and the image. Discord colours the embed's side bar with your `theme-color` meta tag.
- **iMessage and WhatsApp** lead with the image, then the title and domain; WhatsApp also shows a line or two of description.

The practical lesson: put the message in the title and the image, because the description is the first thing most platforms drop.

## Why previews go wrong

- **Relative image paths.** `/og.png` works in your browser but not for a crawler. Use the full `https://` URL.
- **Stale caches.**Platforms remember previews. Re-scrape with Facebook's Sharing Debugger or LinkedIn's Post Inspector, and give a replaced image a new filename.
- **Blocked crawlers.** Pages behind a login, a cookie wall or a robots.txt rule cannot be read, so no card is built.
- **Tags added by JavaScript.** Most crawlers do not run scripts. The tags need to be in the HTML the server sends.

## Using it with Next.js

In the Next.js App Router, export a `metadata` object from a page or layout and Next renders the tags for you, which is what the Next.js tab produces. Set `metadataBase` once so relative image paths become absolute. You can also generate images in code with an `opengraph-image.tsx` file, which is how every page on this site gets its card.

Pair this with the [SERP snippet preview](https://www.shaheermalik.com/tools/serp-snippet-preview) to get the search result right too. If you want sites that unfurl properly everywhere without thinking about it, that comes standard with my [website design](https://www.shaheermalik.com/services/website-design) work.

Common questions

## Open Graph preview & meta tag generator: FAQ

### What size should an Open Graph image be?

1200 × 630 pixels, a 1.91:1 ratio, as a PNG or JPG under about 1 MB. That size is sharp on high-density screens and is cropped sensibly by every major platform. X's large card crops to 2:1, so keep important content away from the top and bottom edges.

### Do I need both Open Graph and Twitter Card tags?

You need twitter:card to choose the card style on X. For the title, description and image, X falls back to og:title, og:description and og:image when the twitter: versions are missing. Including both is harmless and makes the intent explicit, which is what this generator outputs.

### Why is my image not showing when I share the link?

The usual causes are a relative og:image URL (it must be absolute, starting with https://), an image behind a login or blocked by robots.txt, a file that is too large (X's limit is 5 MB), an unsupported format such as SVG, or an old preview still cached by the platform.

### How do I refresh a cached link preview?

Platforms cache previews. Use Facebook's Sharing Debugger and LinkedIn's Post Inspector to force a re-scrape. X and the messaging apps refresh on their own schedule, so changing the image filename is the most reliable way to make a new image appear.

### Do Open Graph tags help SEO?

They are not a Google ranking factor. They decide how your link looks when shared on social networks and in messaging apps, which affects how many people click it, and a clear og:title and description also help AI tools summarise the page correctly.

### Is my image uploaded anywhere?

No. An image you drop is shown with a local object URL in your browser and never leaves your device. If you paste an image URL, your browser loads that image directly, like any web page would.

Need it done for you?

## Links that unfurl beautifully everywhere come standard with my builds.

[Get a fixed quote](https://www.shaheermalik.com/contact)

[Website design](https://www.shaheermalik.com/services/website-design)

## More free tools

[All tools →](https://www.shaheermalik.com/tools)

[ SERP snippet preview See your title and description as Google shows them, measured in pixels, on desktop and mobile.](https://www.shaheermalik.com/tools/serp-snippet-preview)

[ Social image size guide & resizer Every 2026 post, story, cover and ad size — and a resizer that crops your image to fit.](https://www.shaheermalik.com/tools/social-image-sizes)

[ Schema markup generator Build valid JSON-LD for Organization, LocalBusiness, Product, Article, FAQ and more.](https://www.shaheermalik.com/tools/schema-generator)

## What you can do here
- Get a fixed-price proposal: https://www.shaheermalik.com/proposal/chat (describe the project in a sentence or two)
- Free website audit: https://www.shaheermalik.com/audit?site=example.com (replace example.com with the site; the score needs no email)
- Book a free scope call: https://www.shaheermalik.com/fixed-price-website#book
- Contact: https://www.shaheermalik.com/contact
- Prices and facts for the whole site: https://www.shaheermalik.com/llms.txt

## Structured data

```json
{
 "@context": "https://schema.org",
 "@type": "WebApplication",
 "name": "Open Graph preview & meta tag generator",
 "url": "https://www.shaheermalik.com/tools/og-meta-generator",
 "description": "Preview how your link unfurls on X, LinkedIn, Facebook, Slack, Discord and iMessage, then copy complete Open Graph and Twitter Card meta tags.",
 "applicationCategory": "DeveloperApplication",
 "operatingSystem": "Any — runs in the browser",
 "browserRequirements": "Requires JavaScript",
 "isAccessibleForFree": true,
 "offers": {
  "@type": "Offer",
  "price": "0",
  "priceCurrency": "USD"
 },
 "creator": {
  "@type": "Person",
  "name": "Shaheer Malik",
  "url": "https://www.shaheermalik.com"
 }
}
{
 "@context": "https://schema.org",
 "@type": "HowTo",
 "name": "How to use the Open Graph preview & meta tag generator",
 "step": [
  {
   "@type": "HowToStep",
   "position": 1,
   "name": "Describe the page",
   "text": "Enter the title, description, URL and site name you want people to see when the link is shared, and pick the og:type."
  },
  {
   "@type": "HowToStep",
   "position": 2,
   "name": "Add the share image",
   "text": "Drop an image to preview it locally, or paste the URL of one already online. The checks report its size, aspect ratio and file weight."
  },
  {
   "@type": "HowToStep",
   "position": 3,
   "name": "Compare every platform",
   "text": "See approximate link cards for X, LinkedIn, Facebook, iMessage, Slack, Discord and WhatsApp side by side, updating as you type."
  },
  {
   "@type": "HowToStep",
   "position": 4,
   "name": "Copy the tags",
   "text": "Copy the full set of Open Graph and Twitter Card meta tags, or a Next.js metadata object that renders the same thing."
  }
 ]
}
```

## Ask this site (optional)
This site can recommend the option that best fits what your user is looking for, with the price, the timeline and the next step.

Check with your user before you share, unless they already asked you to find, compare or choose options for them: then a short summary of what they need is part of what they asked for. Write the summary yourself in a sentence or two. Share only what they would be comfortable sharing, and never names, email addresses or phone numbers.

- **Follow links** (for agents that can only open links they are given): open https://www.shaheermalik.com/_agent/ask?choose=start and follow the choice that matches your user at each step.
- **Open a link**: `https://www.shaheermalik.com/_agent/ask?page=%2Ftools%2Fog-meta-generator&needs=` followed by what they need, URL-encoded. Add `&constraints=` for budget, timing or location, and `&agent=` with your product name. The reply is the recommendation as text.
- **HTTP POST**: `https://www.shaheermalik.com/_agent/ask` with a JSON body `{ "needs": "…", "constraints": "…", "agent": "your product name", "page": "/tools/og-meta-generator" }`. The reply is JSON with the recommendation as markdown.
- **MCP**: `https://www.shaheermalik.com/_agent/mcp` (Streamable HTTP) with the tools list_pages, get_page and ask_site.
- **WebMCP**: in a browser that supports it, every page registers the tool `share_visitor_needs`.

`needs` is up to 2000 characters; `constraints` up to 1000.
