Code · Made a little simpler

Open Graph Generator

Build Open Graph and optional X Card tags. Set image order, alt text, dimensions and locales, then preview a draft and copy or download the HTML.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Open Graph image 1
X Card

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Open Graph Generator: how to use it

  1. Enter the page URL, Open Graph title and type. Enter an absolute URL for each image you want to declare.
  2. Add image dimensions and alt text where available. Use Move image up or Move image down to set precedence. Choose an X Card if needed.
  3. Select Generate tags, then copy or download the HTML. To see a visual draft, choose a local JPG, PNG or still WebP for the preview.

Limits and notes

Supports website and article, up to four ordered image URLs, locales in language_TERRITORY form and summary or summary_large_image X Cards. The visual draft uses an optional file you select locally. Actual layouts and image availability depend on the sharing platform.

How your privacy works →

Open Graph Generator: common questions

What happens when I add two Open Graph images?

Both image tags appear in the generated HTML. Each image is followed by its own structured properties. Open Graph gives the first entry preference when values conflict.

Which image does the X Card use?

The generated X Card uses the first Open Graph image by default. Enter an X Card image URL to specify a different one.

Does opening a local preview image change the HTML?

The preview displays the local file independently. The export uses the URLs and properties you enter in the form.

Guides