Open Graph Generator

Build the meta tags that control how a link looks when shared.

  • SEO Tools
  • Free, no sign-up
  • Runs in your browser

Open Graph Generator tool

Shared link preview

Meta tags

About the Open Graph Generator

When someone shares your link on WhatsApp, Facebook, LinkedIn or X, the preview card comes from Open Graph tags; without them, apps guess, often picking the wrong image and a line from the menu. This Open Graph generator builds the title, description, image, URL and type tags, plus matching Twitter card tags, and shows a live preview of the shared card. Use an image of at least 1200 by 630 pixels for a sharp large preview. Apps cache previews, so after changing tags you may need to refresh the cache using each platform's own debugging tool. For X-specific options, use the Twitter Card Generator, and for search snippets, the SERP Preview Tool.

Alongside the four mandatory properties, the output includes the extras platforms rely on in practice, such as a summary line, your site's name, its language and region, and details about the picture. The on-screen mock-up shows the card at feed width, which is narrower than a search listing, so you can tell whether the headline gets trimmed.

The image is where most previews go wrong. Networks want a wide image around 1200 by 630 pixels, referenced by its complete address including https and the domain. Forgetting the domain part of the picture address is the leading cause of image-less previews. Choose a picture that still reads clearly when shrunk to a thumbnail, because chat apps often display it small.

How to use the Open Graph Generator

  1. Fill in the page detailsEnter the headline, a short summary, the preferred address and your site's name.
  2. Add the image addressLink to a wide picture using its full address, starting with https.
  3. Check the previewSee how the card would look in a timeline or a chat window.
  4. Copy the tagsPut the whole block between your page's opening and closing head tags.

Open Graph Generator features

  • The full set of properties social apps consult
  • Mock-up of the card as it would appear when shared
  • Picture dimensions and description fields
  • Extra fields for news posts: date, writer and category
  • Alert when the picture link lacks its domain
  • Advice on how much text fits on a card
  • One-click copy of the finished, safe markup

Common uses

  • Ensuring a fresh article shows a tidy card on Facebook and LinkedIn
  • Correcting a chat preview that displays the wrong image
  • Building the tags into a theme so every new post is covered
  • Checking how a launch announcement will look before posting it
  • Adding article details for news and blog content

Open Graph tags in practice: WhatsApp previews for an admissions page, refreshing cached previews, Urdu pages, images that crawlers can reach and product shares

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

In Pakistan, most links are shared on WhatsApp, and the preview card that appears, with its image, title and description, decides whether anyone taps. Open Graph tags control that card on WhatsApp, Facebook, LinkedIn and many other apps. This guide sets up previews for a school admissions page and covers refreshing old previews, Urdu pages, images that crawlers can actually fetch, safe areas for text and product pages.

A worked example: an admissions page

A school shares its admissions page with parents through WhatsApp groups. Without tags, the preview shows a random logo and the menu text. With og:title set to Admissions Open for 2026, Grades 1 to 10, og:description summarising deadlines and documents, and og:image pointing to a 1200 by 630 pixel image of the campus with the school name, the preview looks official and informative. Keeping the image file small, around a couple of hundred kilobytes, helps it load reliably in WhatsApp.

Refreshing cached previews

Platforms store previews after the first share, so fixing tags does not update cards that already exist. Facebook's Sharing Debugger and LinkedIn's Post Inspector can fetch a page again and refresh their stored copy. WhatsApp keeps previews for a while on its side, so test new tags with a fresh link, for example by adding a harmless parameter, before sharing widely.

Urdu pages

Pages in Urdu can declare og:locale as ur_PK, with the title and description written in Urdu. Apps then display the Urdu text as the preview, which is far more inviting for Urdu-reading audiences than an English fallback taken from the menu.

Images crawlers can reach

The image address must be absolute, use https and be publicly accessible. Images behind logins, blocked by robots rules or protected by aggressive bot protection fail silently, leaving previews without pictures. Opening the image address in a private browser window is a quick check that it is reachable.

Safe areas for text

Some apps crop preview images, sometimes into small squares on phones. Keep important text and logos near the centre of the image, away from the edges, and avoid tiny text that becomes unreadable in small previews. A clear photo with a short headline works better than a crowded poster.

Product pages

For shops, each product page should use its own product photo as the og:image, with the title naming the product and the description mentioning a key detail, such as size range or delivery. A share of a specific product with its own picture converts far better than a generic shop logo.

Default and page-specific tags

Set a sensible default image and description for the whole site, so every page has a reasonable preview, then override them on important pages. Templates in content management systems can fill tags automatically from each page's title, summary and featured image.

Testing before campaigns

Before a campaign, share each important link privately in WhatsApp, Facebook Messenger and LinkedIn to see the actual preview. Fixing a missing image or a cut-off title before the link goes to thousands of people is far easier than explaining a broken preview afterwards.

Common mistakes

  • Using relative or http image addresses.
  • Expecting fixed tags to update previews already shared.
  • Placing key text at the edges of preview images.
  • Using one generic image for every product.

Related tools

To add the X card tags as well, use Twitter Card Generator. To size the preview image correctly, try Social Media Image Resizer, and for the rest of the head tags, Meta Tag Generator.

Tags must be in the HTML

Most link preview crawlers do not run JavaScript, so tags added by scripts after the page loads are invisible to them. Open Graph tags must be in the HTML the server sends. Viewing the page source, rather than inspecting the live page in developer tools, shows whether the tags are really there.

Type and canonical address

Set og:type to article for articles and website for the home page and general pages, and set og:url to the page's canonical address. Shares of tagged or parameter-laden versions of a page then group together on platforms that count shares by address.

Images generated automatically

Sites with many pages can generate preview images automatically during publishing, combining the page title with a branded background. Every page then gets a distinctive, readable image without manual design work, which looks far better in shared links than one repeated logo.

Consistent branding

A simple template for preview images, with the same logo position, colours and font, makes every shared link instantly recognisable as yours. Over time, people in busy group chats learn to spot your previews, which helps them trust and open your links.

Titles written for sharing

The og:title can be slightly warmer and more conversational than the search title, because it appears among friends' messages rather than a list of competing results. Keep it honest and specific, and make sure it still makes sense without the description, which some apps hide on small screens.

Privacy

Tags are generated in your browser. Nothing is sent anywhere or stored.

Frequently asked questions

Which Open Graph tags are mandatory?

Four are compulsory: a title, a content type, a picture and the page address. A summary property is almost as important, because platforms otherwise grab your search description or the first words they find.

What size should the shared image be?

Use a wide picture of 1200 by 630, the dimensions most networks display as a big card. Keep the file comfortably small, ideally under a few megabytes, and reference it with a full https address.

Why does my link preview have no picture?

The usual culprits are a picture address missing its domain, an image that requires signing in, or an outdated copy held in the platform's cache. Each network offers a debugging page that forces it to fetch your tags again.

Do I also need Twitter Card tags?

X reads Open Graph data when its own tags are absent, so a well-tagged page already previews reasonably there. The Twitter-specific tags add control over the card style, which is why a separate generator exists on this site.

Do Open Graph tags improve search rankings?

No. They are read by social networks and messaging apps, not used by search engines for ranking. What they change is how appealing a shared link looks, and therefore how many people tap it.

Where on the page do the tags belong?

In the head section, alongside your page title and search description. The order of the tags does not matter, as long as each appears only once per page.