Free tool
Open Graph Generator
Write the Open Graph tags, preview the card, copy the markup.
How it works
What is the Open Graph Generator?
The Open Graph Generator is a free tool that writes the meta tags a page needs for social share previews. From your title, description, URL, image and type, it builds the <title>, meta description, og: and twitter: tags, shows how the Facebook and X cards will look, and gives you the block to copy into your <head>.
How to use the Open Graph Generator
- Fill in the Title and Description you want the shared card to show.
- Enter the page's Canonical URL, and an Image URL if you have one. Use the full https:// address of an image around 1200x630.
- Add a Site name if you want one, and pick a Type: website, article, product or profile.
- Press Generate Open Graph tags, check the Facebook and Twitter previews, then press Copy Code and paste the block into your page's
<head>.
What does the Open Graph generator create?
One block of tags for one page: a <title>, a meta description, og:title, og:description, og:url and og:type, plus og:image and og:site_name when you fill those fields. It adds twitter:card, twitter:title, twitter:description and, with an image, twitter:image.
Blank optional fields are left out rather than written as empty tags. twitter:card is set to summary_large_image when you give an image and summary when you do not, because the wide card is built around an image. Before you publish, open the Image URL in a browser to confirm it loads.
Where do Open Graph meta tags go?
Inside the page's <head>, in the HTML your server sends. Share crawlers read that HTML and generally do not run JavaScript, so tags added by client-side code after the page loads are not seen.
If your site has a metadata setting, use it instead of pasting raw tags: an SEO plugin in WordPress, or the metadata export in Next.js. The values then stay tied to the page and change when it does.
Which og:type should you use?
website suits most pages, and it is what a page is treated as when no type is declared. Use article for a dated post with an author, product for a page selling one item and profile for a page about one person.
The type decides which extra properties apply, such as article:published_time for articles. It is not a ranking signal, and website on a blog post breaks nothing.
Questions
- What are OG meta tags?
- OG meta tags are Open Graph
<meta>tags in a page's<head>that set the title, description, image and URL shown when the page is shared. Facebook, LinkedIn, WhatsApp, Slack and X all read them to build the link preview. - How do I add Open Graph meta tags to my website?
- Add Open Graph meta tags by pasting the generated block inside
<head>on each page, or by entering the same values in your CMS or SEO plugin. Each page needs its own values, since a shared link shows the tags of the exact URL that was shared. - How do I add an Open Graph image in Next.js?
- In the Next.js App Router, set
openGraph.imagesin a page'smetadataexport, or put anopengraph-image.pngfile in the route folder. Next.js then writes theog:imagetag for you, as an absolute URL oncemetadataBaseis set. - Is og:title the same as the meta title?
- No,
og:titleand the<title>tag are separate and can differ. The<title>is written for a search result, whileog:titleis what a shared card shows. This generator fills both with the same text as a starting point. - What values can og:type have?
- The Open Graph protocol defines
website,article,profileandbook, plusmusic.andvideo.types. This generator offerswebsite,article,productandprofile, which cover most sites. - Do I need og:image:width and og:image:height?
- No,
og:image:widthandog:image:heightare optional. Declaring them lets a platform lay out the card before it has downloaded the image, which helps the first share of a new URL show its picture.
Technical SEO Tools
More in Technical SEO Tools
Opengraph Viewer
Paste a URL and see the card it produces when someone shares it — title, description, image.
View OpengraphRobots.txt Checker
Fetch any site's robots.txt and test one URL against it: allowed, or blocked by which rule.
View robots.txtNoindex Checker
Whether a page is set to noindex, checking the header and the meta tag both.
Check noindexReady when you are
Before your next buyer asks AI about you, ask AI about yourself
One check, four engines, about twenty seconds. We show you the answers before we ask for anything.
