Skip to the content

Open Graph Meta Tag Generator

Fill in the title, description, address and image of a page and copy the og: tags that Facebook, LinkedIn and messaging apps read.

What the card shows

0 characters. Leave the site name out: it has a box of its own.

0 characters.

The one address this page should be shared under.

1200 × 630 px is the size to aim for. A full address is required; a path like /share.png is not enough.

Roughly how the shared link looks

Your image, 1200 × 630 px

example.com

The title of the page

The description, cut off after a line or two.

Every app crops the image and trims the text a little differently.

Share this tool:TwitterFacebookLinkedInWhatsAppEmail

The Open Graph tags that matter

Open Graph is the set of og: tags that Facebook introduced and that LinkedIn, WhatsApp, Slack, Discord and most messaging apps read when a link is shared. The protocol calls four of them required:

TagWhat goes in it
og:titleThe title as it should stand on the card. Facebook asks for it without branding such as the site name.
og:typewebsite for most pages, article for a post or a news story. A page without this tag is treated as a website.
og:imageThe picture, as a full URL that starts with http:// or https://.
og:urlThe one address the page should be known by. Likes and shares of the page's other addresses are added up under this one.

og:description, og:site_name and og:locale are optional. The locale counts as en_US when it is missing, so it only needs filling in for other languages.

The image

These are Facebook's published requirements:

  • 1200 × 630 pixels or more for a sharp picture on high-resolution screens.
  • A shape of 1.91:1, so that nothing is cropped.
  • At least 600 × 315 for the large card. A smaller picture is shown much smaller, and under 200 × 200 it is not accepted.
  • A file of no more than 8 MB.

If you know the size of your image, add og:image:width and og:image:height by hand. Facebook can then show the picture the very first time the page is shared, without having to fetch it first.

Making a platform read the page again

Platforms keep what they read, so after a change the old card can linger.

  • Facebook: enter the address in the Sharing Debugger. It scrapes the page again.
  • LinkedIn: the Post Inspector fetches a page afresh when you enter its address.
  • A new picture: give it a new file name. Facebook stores images under their URL, and a changed picture at an address it already knows is not picked up.

The meta tag generator writes these tags together with the title, description, canonical and robots tags of a page.