Open Graph Generator
Workspace
What is the Open Graph Generator?
The Open Graph Generator builds Open Graph <meta property="og:..."> tags that control the title, description, image, and link shown when a page is shared on Facebook, LinkedIn, and other platforms that read Open Graph tags. You paste the tags into the <head> of your page.
The workspace has five inputs: og:title, og:description, og:url, og:image, and an og:type dropdown (Website, Article, Product).
How to Use the Open Graph Generator
- Enter the
og:title, for exampleExample OG Title. - Enter the
og:description, for exampleAn example Open Graph description. - Enter the absolute
og:url, for examplehttps://example.com/og-page. - Enter the absolute
og:imageURL, for examplehttps://example.com/og-image.jpg. - Choose the
og:type(Website, Article, or Product). - Click Process.
- Copy the Generated Code and paste it into the
<head>of your page. Check the site name line before publishing (see Limitations). - Click Clear to start over.
Worked Example
Input tested on this page: title Example OG Title; description An example Open Graph description.; URL https://example.com/og-page; image https://example.com/og-image.jpg; type Website.
Observed output:
<meta property="og:title" content="Example OG Title"> <meta property="og:description" content="An example Open Graph description."> <meta property="og:url" content="https://example.com/og-page"> <meta property="og:type" content="website"> <meta property="og:image" content="https://example.com/og-image.jpg"> <meta property="og:site_name" content="NOFYI">
Limitations
- The tool adds
<meta property="og:site_name" content="NOFYI">automatically, even though there is no site-name field. ReplaceNOFYIwith your own site name before publishing. - It does not validate the image URL, image size, or aspect ratio, and it does not fetch the image.
- It does not show a preview of the share card and does not check each platform’s current requirements.
- It does not add the tags to your site for you. You must paste them and test the shared link on each platform.
Frequently Asked Questions
What og:type should I choose?
Use website for a general page, article for a news or blog post, and product for a product page. The type tells platforms what kind of content the URL represents.
What image should I use?
Use an absolute URL to a publicly reachable image. Platforms publish recommended sizes and ratios that change over time, so check the current guidance for each platform and test the shared link.
Will the preview always appear?
No. Platforms decide whether and how to render a preview, and they may cache an older version. Valid tags are necessary but not a guarantee.
Can I use relative URLs?
Use absolute URLs including https:// for og:url and og:image. Relative URLs are more error-prone when a link is shared off-site.
Related Tools
From the Blog
How to Check an Image’s Dimensions Before You Upload It
Check an image's width, height, and file size before uploading, avoid upscaling, and test it on your site.
Read article →How to Pick a Colour From an Image (Without Guessing)
Pick an exact colour from any image with an eyedropper, save the hex code, test contrast, and keep your palette small.
Read article →How to Find a Font From an Image (the Practical Way)
Identify a font from an image with a clean crop, compare candidates letter by letter, check licences, and test lookalikes.
Read article →