Open Graph Tag Generator

Generate Open Graph meta tags.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter a title, description, image URL and page URL, choose the type, and copy a tag block with Open Graph and Twitter card meta tags.

How to use

1
Step 1
Enter the title and description.
2
Step 2
Add the image URL and page URL; choose og:type.
3
Step 3
Optionally add the site name and an X handle.
4
Step 4
Press Generate and paste the tags in your head element.

How it works

Open Graph tags use property attributes, Twitter tags use name attributes. The Twitter card is summary_large_image when you give an image and summary otherwise. Values are HTML-escaped. Empty fields are skipped.

Worked example

A blog post

Input
Title: Hello, image https://x.com/i.jpg, type article
Output
og:title, og:type article, og:image, twitter:card summary_large_image, twitter:title, twitter:image
Walkthrough
Twitter tags mirror the title, description and image.

Limitations

  • Use an absolute https image URL; it is not fetched or checked.
  • No video or audio tags.
  • Does not refresh a platform's cached preview.

Questions

Which tags does it output?
og:title, og:type, and, when filled, og:description, og:image, og:url, og:site_name, plus twitter:card, title, description, image and site.
Do I need the Twitter tags?
X falls back to Open Graph, but the card type tag helps.
Where do the tags go?
Inside the head element.
Is my text uploaded?
No. The tags are generated in your browser and your text stays on your device.

Features

  • Full Open Graph set
  • Twitter card tags
  • HTML-escaped values
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Google Search Console Training trailer

    Google Search Central

    Series overview for Search Console workflows.

    Watch on YouTube
  • HTML Crash Course For Absolute Beginners

    Traversy Media

    Title/meta tags live in HTML these SEO tools preview.

    Watch on YouTube