Open Graph Generator

Tags generated—
Title length—
Description length—

How Open Graph Generator is calculated: Open Graph tags = og:title + og:description + og:url + og:type + og:image

What is an Open Graph generator?

An Open Graph generator writes the tags that control how a page looks when someone shares it. When a link is pasted into Facebook, X, WhatsApp, LinkedIn, or a chat app, the app reads the page's Open Graph tags — og:title, og:description, og:url, og:type, og:image, and og:site_name — and builds a preview card from them: a title, a short text, and an image. Without those tags, the paste is a bare link, and bare links get far fewer taps.

Open Graph was made by Facebook, and it is now read by almost every social app. The tags live in the head of the page, next to the title and description tags, and visitors never see them directly. What visitors see is the card: the title in bold, the description underneath, and the image beside it. That card is the page's first impression on every share, and it is built entirely from these six tags.

This generator builds the tags for you. Type the title, the description, and the page address, add an image and the site name, pick the page type, and press the button. The tags appear in the box below, ready to copy. Paste them into the head of your page and every share of that link will carry the card you designed.

How Open Graph tags work

A social app reads a shared link in two steps. First it fetches the page, then it looks in the head for the Open Graph tags. og:title becomes the card's title, og:description becomes the short text, og:url becomes the link's address, og:type says what kind of page it is, og:image becomes the picture, and og:site_name becomes the small site name under the card. Each tag has one job, and the app trusts what it finds.

The tags use the property attribute, not the name attribute: property equals og:title, not name equals og:title. That detail matters, because a tag written with name instead of property is ignored by the apps that read Open Graph. This generator writes property every time, so the tags it builds are read correctly.

Every field you leave blank is left out of the output, except the four core tags — title, description, url, and type — which are always written. A page with no image has no og:image tag, and one with no site name has no og:site_name tag. The block is valid with four tags and valid with six, because it only ever writes what you typed. A meta tag generator writes the title and description tags that sit next to these in the head.

The title, description, and image, explained

The title is the bold line on the card, and it should be the same as the page's title tag. A title of 13 characters, like the default My Page Title, is far too short — it says nothing about the page. Aim for 50 to 60 characters that name the topic and the benefit, for example Free QR Code Generator — Make a QR Code Online, which is 46 characters. The card title and the search title should match, so a reader sees the same words in both places.

The description is the short text under the title, and it should be 120 to 160 characters — one or two plain sentences saying what the reader gets. The default here is 81 characters, which is on the short side but still works. A description that runs past 200 characters gets cut off on the card, so put the most important words first. Write it as a summary, not as a list of keywords.

The image is the picture on the card, and it is the part people notice first. Use a real image from the page — a photo, a diagram, a screenshot — at least 1200 by 630 pixels, so it looks sharp on every screen. A page with no image gets a card with no picture, and a card with no picture gets far fewer taps. If the image address is wrong, the card shows a broken picture, so check the address opens in a browser before you publish. A title tag checker can check the title's length while you write it.

A worked example: tags for a guide page

Take the defaults on this page. The title is My Page Title, 13 characters. The description is A plain guide that explains the topic step by step, with examples you can follow, which is 81 characters. The address is https://example.com/page, the type is website, the image is https://example.com/image.jpg, and the site name is Example Site. Press Generate Open Graph Tags and the output has 6 tags: og:title, og:description, og:url, og:type, og:image, and og:site_name. The title length shown is 13 and the description length shown is 81.

Now change the title to QR Code Generator, which is 17 characters, change the type to article, and clear the image and the site name. The output shrinks to 4 tags — og:title, og:description, og:url, and og:type — and the title length shown becomes 17. The description length stays 81, because the description did not change. The two cleared fields are left out instead of being written as blanks.

That shrinking is the behaviour to trust. A generator that wrote an empty image tag would hand the app a card with a picture of nothing. This one writes only what you gave it. Paste the tags into the head of the page, save, and share the link in a chat to see the card. If the card still shows old text, the app may have cached the old preview — wait a few minutes and share again, or use the app's sharing debugger to clear it. A SERP preview tool shows how the same title and description look in search.

Why Open Graph tags matter for every page

Open Graph tags matter because most traffic to a new page comes from a share. Someone pastes the link into a chat, a group, or a post, and the people who see it decide in one second whether to tap. A card with a clear title, a short description, and a picture earns the tap. A bare link looks unfinished, and some readers assume the site is broken.

They matter just as much for control. Without the tags, the app guesses the card from the page text, and the guess is often a menu label, a cookie notice, or the first sentence of a sidebar. With the tags, the words on the card are the words you chose, not the words an app happened to grab. The title, the description, and the image are yours to set.

They also matter for consistency. The same link is shared on Facebook, X, WhatsApp, and LinkedIn, and each app reads the same tags. One block in the head controls the card everywhere, so the page looks the same no matter where it is shared. A meta tag generator writes the search tags that sit next to these, and the two sets together cover every way a page is found.

Open Graph generator vs writing the tags by hand

Writing Open Graph tags by hand is not hard, and many developers do it. The risk is not difficulty but small errors: a missing closing quote, an unescaped ampersand in a URL, a property written as name instead of og:title, or an og:image that still holds the old picture after a redesign. Any of those breaks the card, and the error is invisible until someone shares the link.

A generator removes those errors. It escapes the special characters for you — a less-than sign becomes its code, a greater-than sign becomes its code, and an ampersand becomes its code — so a title with an ampersand cannot break the tag. It writes property on every tag, so the apps read them. It builds every tag from the same values, so the card title and the search title always match.

Hand-writing still has a place: a developer who manages a site with a template writes the tags once in the template and fills them from a database, which is faster than pasting per page. But for a single page, a small site, or a quick check of what the tags should look like, the generator is faster and safer. The same title can be checked in a character counter if you want its exact length.

Common mistakes with Open Graph tags

The most common mistake is leaving the tags out entirely. New pages often ship with a title and a description but no Open Graph tags, and the first share looks like a bare link. Every page deserves its own tags, written for that page alone, because every page gets shared sooner or later.

The second mistake is copying the same tags onto every page. Ten pages with the same og:title and og:image look like ten copies of one page when shared, and readers cannot tell them apart. Write a fresh title, description, and image for each page, even if the pages are similar. The third mistake is an image that is too small or missing: a card with a broken or tiny picture gets skipped, so use a real image at least 1200 by 630 pixels.

The fourth mistake is using relative image addresses like /image.jpg instead of full addresses starting with https://. Social apps fetch the image from the address in the tag, and a relative address tells them nothing about which site it belongs to. Always use the full address. And the fifth mistake is forgetting the cache: after you fix the tags, the old card can linger in an app's cache for hours, so test with the app's sharing debugger instead of sharing the link again and again.

How to use this Open Graph generator

First, type the page title. Aim for 50 to 60 characters that name the topic and the benefit. Then write the description in one or two plain sentences, 120 to 160 characters, saying what the reader gets from the page. Then type the full page address, starting with https://, exactly as it appears in the browser.

Add an image address if the page has a main image, pick the page type — website for most pages, article for a written piece — and add the site name if you want it on the card. Press Generate Open Graph Tags. The tags appear in the box below, and the results box shows how many tags were built and the lengths of the title and description.

Finally, copy the whole block and paste it into the head section of your page, near the top, before the closing head tag. Save the page and test it: paste the link into a chat to check the card, and use the app's sharing debugger if the card still shows old text. If the title needs a different case style, a case converter can fix the capitalisation before you paste it in.

Frequently Asked Questions

Open Graph tags are meta tags with property names starting og: — og:title, og:description, og:url, og:type, og:image, and og:site_name. They were made by Facebook and are now read by almost every social app. When someone shares a link, the app reads the tags and builds a preview card with a title, a short text, and an image.

At least 1200 by 630 pixels, which is the size Facebook and most apps recommend for a large card. Smaller images look blurry or get cropped, and a missing image leaves the card with no picture at all. Use a real image from the page — a photo, a diagram, or a screenshot — and use its full address starting with https://.

Social apps cache link previews, so a link shared before you added the tags keeps showing the old card for a while. The tags are correct; the cache is stale. Wait a few minutes and share again, or use the app's sharing debugger to clear the cached preview for that address. Facebook, X, and LinkedIn all provide a debugger page for this.

No, not directly. Open Graph tags control the share preview, not the search result, and they do not change where a page ranks. They earn clicks from shares, which is where most traffic to a new page comes from. The search result itself comes from the title tag and the meta description, which a meta tag generator writes.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.