UTILS.
Private by default
og

Open Graph Generator

Generate Open Graph and Twitter Card meta tags with a live social share preview.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
— output appears here —

Try a worked example

Example

Enter Trail Mug as the title, Acme as the site name, https://example.com/mug as the URL and https://example.com/mug.jpg as the image. The output has og:title, og:url, og:image and og:site_name tags, plus Twitter Card tags with the card type summary_large_image.

Keep in mind

Use an absolute image URL, because most platforms will not resolve a relative path; 1200 × 630 pixels suits most link previews. Platforms cache previews, so after changing the tags use each platform's debugging tool to refresh them.

About this tool

Creates Open Graph and Twitter Card tags and shows how your link will look when shared. The tags are built in your browser; the preview loads your image address directly from its host.

The form takes a title, site name, description, page URL, image URL and a type (website, article, product, profile or video). Empty fields are omitted, but og:type is always written. The twitter:card value is summary_large_image when an image URL is given and summary otherwise, and the Twitter title, description and image tags repeat your values.

The preview card is only a rough mock-up, not what any network will render. It shows the image, the hostname of your page URL (or the site name if the URL is empty or invalid), the title and the description. Values are written exactly as typed, so relative paths are not turned into full URLs.

Frequently asked questions

What is Open Graph?
A protocol that lets social networks show a rich preview (title, description, image) when your page is shared.
Which Twitter card is used?
summary_large_image when you provide an image, otherwise the smaller summary card.
Does the preview contact my image server?
Yes. The tags are built locally, but the preview card loads the image address you enter in your browser, so that image host sees the request.
Does it add image size or alt text tags?
No. The output covers title, description, type, URL, image and site name, plus the four Twitter tags described above. Add any other tags by hand.

More tools