Generate Open Graph and Twitter card tags

Fill in the fields, copy the head tags, and check an estimated Google result and social card. Nothing is fetched.

This page opens on the social card. Fill in the title, description, page address, site name and image address, then choose whether the page is a website or an article and whether the Twitter card is a large or a small image. The tags appear in a block you can copy: og:type, og:title, og:description, og:url, og:site_name and og:image, followed by twitter:card, title, description and image. Values are HTML-escaped, so quotes and ampersands in a title cannot break the tag. The card above the tags is a rough layout, with a plain box in place of the picture: the image address is written into the tags but is not requested. Each site draws its own card, so check the final link in the real app. The ordinary title, description and robots tags are in the same block.

How it works

  1. Fill in the title, description and address
  2. Choose type, robots and card options
  3. Copy the tags into your page head

Frequently asked questions

What size should the image be?

This page does not check it, because the picture is never loaded. Many sites show a wide image best at about 1200 by 630 pixels. Check the real link in the app that will show it.

What is the difference between website and article?

It sets og:type. Use website for a home page or tool, and article for a post with a date and an author. The value only tells a site how you classify the page.

Why is there a Twitter group when Open Graph exists?

Twitter cards read their own twitter: tags first and fall back to Open Graph on many sites. Writing both gives you a choice of a large or a small image card.