Generate clean, valid HTML Open Graph tags for Facebook, LinkedIn, and Twitter.
What Open Graph tags actually control, how to add them to a page, and answers to the questions we get asked most.
<meta> lines in your page's <head>
that tell Facebook, LinkedIn, Pinterest, and other platforms exactly
which title, description, and image to show when your link is shared β
without them, the platform guesses, and often guesses wrong.
Without Open Graph tags, social platforms fall back to scraping your page for a title, the first paragraph of text, and the first image they find β which is frequently a logo, an ad, or an unrelated thumbnail instead of the image you'd actually want representing your content.
Declaring the tags explicitly means every platform reads the same, intentional title, description, and image instead of guessing three different (and sometimes wrong) previews across three different networks. That consistency is what makes a shared link look professional instead of broken, and a clear, on-brand preview measurably improves click-through rate from social feeds.
Here's a complete, working set of tags for a blog post β this is exactly what the generator above outputs:
og:title, og:description, and
og:image are the three tags that actually change what
people see in the preview card; the rest refine how it renders (exact
image dimensions, canonical URL, site name) or extend support to
Twitter/X specifically.
Copy the generated tags and paste them inside your page's
<head> section, anywhere before the closing
</head> tag β order relative to other meta tags
doesn't matter.
If you're on a CMS (WordPress, Shopify, Webflow, etc.) rather than hand-editing HTML, most platforms have a dedicated field or SEO plugin for social sharing metadata instead of a raw template file β check your theme or plugin settings for "social preview" or "Open Graph" fields before editing a template directly, since a plugin-managed tag can get overwritten on the next save otherwise.
The same intentional title, description, and image on every platform β never a random scraped image.
A clear, on-brand preview card earns more clicks from a social feed than a broken or generic one.
Generates complete, valid tags you can drop straight into your
page's <head>, no manual editing required.
og: tags whenever
dedicated twitter:card tags aren't present, so a
normal Open Graph block still produces a working preview. This
generator also includes the twitter:card tag
directly for the most reliable rendering on X specifically.