Generate Open Graph and Twitter Card tags
When someone shares your link, platforms look for Open Graph and Twitter Card meta tags to build the preview card — the title, description and image. Miss them and your link shows up bare. This generator produces both sets of tags from a few fields.
What it outputs
<meta property="og:title" content="…" />
<meta property="og:description" content="…" />
<meta property="og:type" content="website" />
<meta property="og:url" content="…" />
<meta property="og:image" content="…" />
<meta property="og:site_name" content="…" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="…" />
<meta name="twitter:description" content="…" />
<meta name="twitter:image" content="…" />
Special characters in your text are safely escaped, and empty optional fields are omitted so the output stays clean.
Field guide
- Title / description — what shows in the card; keep the title short and the description a sentence or two.
- Page URL — the canonical URL of the page being shared.
- Image URL — an absolute URL to a preview image, ideally 1200×630px for a large card.
- og:type —
websitefor most pages,articlefor blog posts,productfor shop items. - Twitter card —
summary_large_imagefor a big image,summaryfor a small thumbnail.
Where to put them
Paste the generated tags inside the <head> of your HTML, then test with a
platform’s link-preview debugger to confirm the card renders.
Everything is generated in your browser — nothing is uploaded.