Open Graph Tag Generator

Generate Open Graph and X card tags for link previews.

The canonical address of the page.

0/500

What the page says. The AI writes only from this.

1200 × 630 px works on every major platform.

Tags and preview

Fill in the page details and press Generate. Or write the title and description yourself.

Why link previews matter

When a link is shared in a chat, a post or an email, the preview card is the first thing people see. A clear title, a short description and a good image turn a bare URL into something people want to open. Open Graph and X card tags are how you choose what that card shows, instead of leaving it to each app to guess.

The tags you need

  • og:title and og:description: the headline and summary on the card.
  • og:image: the picture, as an absolute https URL.
  • og:url: the canonical address, so shares of different URL variants are counted together.
  • og:type and og:site_name: what kind of page it is and the site it belongs to.
  • twitter:card: the layout X uses; summary_large_image shows a wide image.

How this generator works

An AI model drafts the title and description from the page details you enter, within the lengths each platform shows. Read and edit them: the AI only knows what you gave it and can still get details wrong. Everything else, including the tag list and HTML escaping, is built by fixed rules in your browser, so the code you copy is valid even if you rewrite the text completely.

Paste the tags inside the <head> of the page. If your CMS or framework already sets some of them, replace those rather than adding duplicates.

Frequently asked questions

What are Open Graph tags?

Meta tags in a page’s <head> that tell Facebook, LinkedIn, Slack, WhatsApp and many other apps which title, description and image to show when someone shares the link. Without them, each app guesses, often badly.

Do I need separate Twitter (X) tags?

X reads Open Graph tags as a fallback, but it needs twitter:card to choose the large image layout, and twitter:site to credit your account. The generator adds both, and you can give X its own title and description if you want.

What size should the image be?

1200 × 630 pixels (a 1.91:1 ratio) works on every major platform. Keep important text away from the edges, serve the image over https, and keep the file under a few megabytes.

Why does my old preview still show after I changed the tags?

Platforms cache previews. Use the sharing debuggers from Facebook and LinkedIn to refresh them, or change the image URL (for example by adding ?v=2) so it is fetched again.

Is the title and description written by AI?

The suggested title and description are drafted by AI from the details you enter; you can edit them before copying. The tags themselves, the URLs and the escaping are produced by fixed code, not by the AI.

Related tools

All tools