Skip to content
DoItJag

Open Graph Tag Generator

Make your links look good when they are shared. Enter the title, description, page URL and image, see a rough share card, and copy the Open Graph and X card tags for your page. Paste an existing page’s HTML to check which tags it already has.

Start from an existing page (paste its HTML)

This page never visits other websites. In your browser, open the page, press Ctrl+U (or Cmd+Option+U on a Mac) to see its source, copy everything and paste it here. The Open Graph and X card tags found fill the form below.

24 characters
76 characters
X (Twitter) card

Rough share preview

Image not loaded (see below)

www.example.com

Handmade Leather Wallets

Slim leather wallets stitched by hand in Jaipur. Free delivery across India.

This page does not load images from other websites. Choose the same image from your device to see it here and fill in its width and height.

Each app draws its own card, so the real look differs. After publishing, paste the link into the app to check.

X reads og:title, og:description and og:image when its own twitter: tags are missing, so only the card type and accounts are added for X.

Sources

When someone pastes your link into WhatsApp, Facebook, LinkedIn, Slack or X, the app fetches the page and looks for Open Graph tags to build a card with a title, picture and short text. Without them, each app guesses, often picking a logo or the cookie banner text.

The required four

The protocol at ogp.me names four properties every page should have: og:title, og:type, og:image and og:url. The image and URL must be complete addresses beginning with https://; a relative path such as /images/share.jpg will not load inside another app. Add og:description and og:site_name for a fuller card, and og:image:alt so people using screen readers know what the picture shows.

X cards

X reads its own twitter: tags first and falls back to the Open Graph ones, so this tool only adds the card type and the accounts. Choose the large image card for articles and products, or the small square card for profiles and simple pages. X documents a few limits worth knowing: no SVG images, image files under 5 MB and alt text up to 420 characters.

Worked example

For a product page you might enter the title “Handmade Leather Wallets”, the page address, the image https://www.example.com/images/wallets-share.jpg at 1200 by 630 pixels with alt text describing three brown wallets on a table, the site name and the locale en_IN. With no description filled in, the output has nine Open Graph lines plus one line for X naming the card type. Choosing the image from your computer shows it in the preview and fills in its real size.

Checking after you publish

  • Apps keep previews for a while, so a new image may not show at once on links shared earlier.
  • Each app crops the image its own way, so keep text away from the edges.
  • Meta suggests images at least 1080 pixels wide for sharp display on high-resolution screens.

To shrink or crop the picture first, use the Image Resizer; for the search-result tags, see the Meta Tag Generator.

How to use Open Graph Tag Generator

  1. Fill in the title, description, page URL and the full address of the share image (or paste a page’s HTML to load its tags).
  2. Optionally choose your image file to preview it and fill in its width and height.
  3. Read the notes, then copy the tags into the head section of your page.

Privacy: how it works

Everything happens in your browser. Nothing you type is sent to any server, and no website is contacted.

Frequently asked questions

Which tags are required?

The Open Graph protocol requires og:title, og:type, og:image and og:url. The tool also adds the description, site name, image size and alt text when you fill them in.

Why does the preview not show my image?

This page never loads anything from other websites, for your privacy. Choose the same image from your device to see it in the preview.

What size should the share image be?

The Open Graph protocol sets no size. Meta suggests at least 1080 pixels wide for sharp display, and X does not accept SVG images. Always give the width and height tags.