Open Graph Generator: Create OG Tags and Twitter Card Meta Tags

Build Open Graph and X (Twitter) Card meta tags so every shared link shows a proper title, description and image on Facebook, LinkedIn, WhatsApp, Slack and X. Watch the card update live and copy the finished HTML.

  • Facebook and X card previews
  • Article and product types
  • HTML ready to paste

How to use the Open Graph Generator tool

  1. Select a typeChoose website, article, product, profile or video, and decide on the X card layout.
  2. Complete the fieldsAdd a headline, summary, page address and image address, plus your site name and image alt text.
  3. Look at the cardFlip between the Facebook/LinkedIn and X previews to see how the link will appear in a feed.
  4. Copy the OG tagsGrab the HTML and place it in the <head> of the page.

Open Graph generator features

  • Previews as you typeCards for Facebook, LinkedIn and X update instantly using your actual image.
  • Every key propertyog:title, og:description, og:image, og:url, og:type, og:site_name, og:locale and image alt text.
  • Twitter Card supportChoose a large-image or compact summary card and credit your account with twitter:site.
  • Article detailsInclude a publication time and author name for blog posts and news stories.
  • Escaped outputQuotation marks and other special characters are encoded so the tags never break.

What are Open Graph tags?

Open Graph is a small set of meta tags, introduced by Facebook, that decides what appears when a link is shared: the headline, summary, picture and site name. Leave them out and each platform improvises, frequently grabbing an irrelevant image or the wrong snippet of text. Facebook, LinkedIn, WhatsApp, Slack, Discord, Telegram, iMessage and plenty of other apps rely on them. X, formerly Twitter, has its own twitter: tags but reads Open Graph when those are missing.

Choosing the right OG image

  • Ideal dimensions: 1200 by 630 pixels, a ratio of roughly 1.91 to 1.
  • Smallest for a big preview: about 600 by 315 pixels.
  • File type and weight: JPG or PNG, kept well under 5 MB, since lighter images appear faster.
  • Composition: keep words and logos clear of the borders, because some apps crop the picture to a square.
  • Address: a complete https:// link that anyone can open without logging in.

Troubleshooting link previews

  • An outdated preview keeps appearing: social sites store previews for a while. Ask them to fetch the page again with Facebook’s Sharing Debugger or LinkedIn’s Post Inspector.
  • The picture is missing: confirm the image address is absolute, served over https, and not hidden behind robots.txt or a login wall.
  • The headline is wrong: check the page has a single set of og: tags, since some SEO plugins quietly add a duplicate set.

Open Graph tags versus regular meta tags

Your <title> and meta description target search results, whereas Open Graph text is aimed at social feeds, where a friendlier or more intriguing headline tends to earn more clicks. Reusing the same wording is fine, but tailoring each can pay off. Create your search snippets with the Meta Tag Generator, and prepare a share image at the right size with the Image Resizer or Crop Image.

Frequently asked questions

What is the best Open Graph image size?
1200 × 630 pixels. It stays sharp on Facebook, LinkedIn and large X cards.
Why does a shared link still show my old picture?
Platforms cache previews. Re-scrape the page with Facebook’s Sharing Debugger or LinkedIn’s Post Inspector to refresh it.
Do I need Twitter tags as well as Open Graph?
X can read Open Graph, but twitter:card is needed to pick the card layout. This generator outputs both sets.
Does WhatsApp read Open Graph tags?
Yes. Its link previews are built from og:title, og:description and og:image.
Where do Open Graph tags go?
Inside the <head> of the page, next to your other meta tags.