How to Use the Generator
- Type the title and description you want on the card.
- Paste the page's URL and the full URL of your preview image.
- Check the previews. They update as you type.
- Click copy and paste the tags inside the
<head>of your page. - Deploy, then run the live page through the Open Graph checker to make sure the tags made it.
Where to Put the Tags
The tags go inside <head>, and they have to be in the HTML your server sends. Crawlers don't run JavaScript, so tags added in the browser are invisible to them.
- Plain HTML: paste them into the
<head>of each page. - WordPress: an SEO plugin such as Yoast or Rank Math writes these tags for you. Don't add a second set by hand.
- Next.js: use the
metadataexport instead of raw tags. There's a copy-paste version in the Open Graph examples. - Shopify, Webflow, Squarespace, Wix: set the social image and description in the page's SEO settings.
What Each Field Does
| Field | Tag | Tip |
|---|---|---|
| Title | og:title | Under 60 characters. Leave your site name out. |
| Description | og:description | One or two sentences. X cuts it at 200 characters. |
| Page URL | og:url | The clean canonical address, without tracking parameters. |
| Image URL | og:image | 1200x630 pixels, JPG or PNG, full https:// address. |
| Site name | og:site_name | Your brand, the way you'd write it. |
| Type | og:type | Use article for blog posts and website for everything else. |
| Card type | twitter:card | summary_large_image shows the big image on X. |
Frequently Asked Questions
Do I need both Open Graph and Twitter Card tags?
You need the Open Graph tags plus one Twitter tag: twitter:card. X reads og:title, og:description and og:image when the twitter: versions are missing, so the generator only adds the ones that matter.
What image size should I use?
1200x630 pixels. It's a 1.91:1 ratio and works on Facebook, X, LinkedIn, WhatsApp, Slack and Discord. Use JPG or PNG and keep the file under 1 MB.
Does the generator host my image?
No. Upload the image to your own site first, then paste its full https:// URL into the image field.
How do I test the tags after adding them?
Publish the page, then paste its URL into the Open Graph checker on the homepage. It fetches the live page and shows the preview each platform will build.