Use this free Open Graph generator to create the meta tags that control how your page looks when someone shares it. Enter a title, description, URL, and image, choose a page type and card style, and the tool builds the og and Twitter card tags. A live preview shows the result, and the checks flag titles or descriptions that are too long, missing images, and URLs that are not https. Copy the tags into your page head or download them as a .txt file.

Social platforms cache link previews. If you change your tags, the old preview can stay for a while, so use the sharing debugger of the platform you are using to refresh it.

How to use the Open Graph generator

  • Enter your page details: add the title, description, page URL, site name, and image URL. Add alt text so the image is described for screen reader users.
  • Choose a type and card style: pick Website or Article, and a large or small image card.
  • Review the checks and preview: fix any item marked with a cross, such as a long title or a missing image.
  • Copy or download: click Copy tags and paste the lines inside the head section of your page.

What the generator outputs

TagPurposeRequired
og:titleThe headline shown in the link previewYes
og:descriptionA short summary shown under the headlineRecommended
og:urlThe canonical address of the pageRecommended
og:imageThe picture shown with the linkRecommended
twitter:cardChooses the large or small card layout on XRecommended

Common uses for Open Graph tags

  • Blog posts: give each article its own headline, summary, and image so shares look clear in feeds.
  • Product pages: show a product photo and a short benefit line when the link is shared.
  • Landing pages: set a consistent image and description for campaigns shared across several platforms.
  • Documentation: make guides easy to recognize when they are linked in chat or email.
Write the og:title for someone scrolling a feed. A clear headline and a specific image do more than a long, keyword-heavy title.

Worked examples

Building tags for a blog post

Enter the article title, a two-sentence summary, the full https page URL, and a 1200 by 630 image. Choose Article and Large image card. The tool outputs the og:type as article and a twitter:card set to summary_large_image, and the preview shows the card as it would look in a feed.

Shortening a long title

A title of 85 characters is flagged as too long. Move the key phrase to the start and cut the rest, so the headline still makes sense when the platform trims it.

Fixing a relative image path

An image path such as /images/share.jpg is flagged because platforms need a full address. Add your domain in front of it, so the path starts with https://, and the check passes.

Common Open Graph mistakes

  • Using relative image paths. Platforms cannot resolve a path that starts with a slash. Use a full https address.
  • Leaving out the image. Cards without an image are much less eye-catching in feeds.
  • Writing a title that does not match the page. A preview that promises one thing and delivers another reduces trust.
  • Forgetting to refresh the cache. After updating an image, the old one can keep showing until the platform refreshes its preview.
  • Hiding tags in the body. Open Graph tags belong in the head section of the page.

Frequently asked questions

What is an Open Graph tag?

An Open Graph tag is a meta tag in a page's head section that gives social platforms and messaging apps the title, description, image, and URL to show when the page is shared.

What is the difference between Open Graph and Twitter Card tags?

Open Graph tags are read by many platforms, including Facebook and LinkedIn. Twitter card tags control how the link looks on X. Many pages include both, and the Twitter tags often repeat the Open Graph values.

Is the Xornex Open Graph Generator free?

Yes. The Xornex Open Graph Generator is free to use online, and you can copy or download the tags without creating an account.

Are my page details uploaded or stored?

No. Tags are built in your browser. Nothing you enter is sent to a server or saved, and clearing the form removes it from the screen.

How long should the title and description be?

Keep the title under about 60 characters and the description under about 160. Platforms may cut off longer text, so put the key words first.

What image size should I use?

A 1200 by 630 pixel image is a common choice for large cards. Use a file that is easy to read at small sizes, and add alt text describing it.

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

Check that the image URL is a full https address, that the file opens in a browser without a login, and that it is not blocked. Platforms cache old previews, so use the sharing debugger of the platform you are using to refresh it.

Does this tool fetch my live page?

No. The tool builds tags from the details you enter. It does not read your live page, so type or paste the values yourself.

Share this article