Open Graph Generator

Generate Open Graph meta tags so your page shows a proper title, description and image when shared on Facebook, LinkedIn, WhatsApp and more. Fill four fields and copy the block.

Updated

SEO ToolsTrending● Free No upload Instant

Loading Open Graph Generator…

Your browser is preparing the tool. It runs 100% locally.

Quick answer

Enter a title, description, page URL and image URL, and the tool outputs the five core Open Graph tags (og:type, og:title, og:description, og:url and og:image). These control how your link looks when shared on Facebook, LinkedIn, WhatsApp, Slack and Discord. og:type is set to website. The block builds as you type and runs in your browser; paste it into your page head.

What the Open Graph Generator does

Open Graph is the protocol social platforms read to build a link preview: the card with a big image, a headline and a short description. Fill in the four fields and the tool writes the matching og: tags, with og:type fixed to website, ready to paste into the head of your page.

Point og:image at an image around 1200 by 630 pixels, a size that displays cleanly on every major platform. The tool escapes your text so the markup stays valid.

How it works

Each value becomes a meta tag with the property attribute (property og:title, and so on). Open Graph is written that way, unlike standard meta tags, which use name. The tags belong in the head, where platform scrapers look for them when someone pastes your link.

og:type is fixed to website, which suits most pages: a homepage, a tool, a landing page. Articles and products can use more specific types, but website is a safe default.

Generation algorithm

  1. Collect the fields. Read the title, description, URL and image URL you entered.
  2. Escape each value. Convert ampersand, angle-bracket and double-quote characters to entities for valid markup.
  3. Write the og: tags. Output og:type (website), og:title, og:description, og:url and og:image, each as a property meta tag.
  4. Output live. Join them into one block you copy into the page head; it refreshes as you type.

Tags it generates

og:type: website (fixed) og:title: your title og:description: your description og:url: your page URL og:image: your image URL (aim for 1200×630)

Written with the property attribute (property og:title), which is how Open Graph tags are formed. og:site_name, og:locale and image-dimension tags are not added.

Technical details

InputsTitle, description, page URL, image URL
Output tagsog:type, og:title, og:description, og:url, og:image
og:typefixed to website
Attributeproperty (Open Graph style)
Not addedog:site_name, og:locale, image width/height
Recommended image1200 by 630 pixels
Where it runsIn your browser; nothing is uploaded

Standards and references

  • Open Graph protocol (ogp.me): the four required properties are og:title, og:type, og:image and og:url; this tool adds og:description as well.
  • property attribute: Open Graph uses property (property og:title), not the name attribute that standard meta tags use.
  • Recommended image: 1200 by 630 pixels displays well everywhere; LinkedIn needs at least 1200 by 627 or it shows no image at all.

Accuracy and limits

og:type is fixed to website. That is right for most pages, but an article, product or video can use a more specific type, which may require extra properties. If you need article tags, add them by hand after pasting.

It writes the five core tags only, without og:site_name, og:locale or explicit image width and height. Platforms manage without them, but you can add them yourself for finer control.

It does not fetch or validate your image. Aim for about 1200 by 630 pixels (LinkedIn shows no image at all below 1200 by 627) and host it at a public URL, or the preview will be blank.

Platforms cache previews. After you add or change these tags, a link may still show the old card until you re-scrape it with the platform's debugger, such as Facebook's Sharing Debugger.

Your text is HTML-escaped, so an ampersand appears as its entity in the output. That is valid and renders correctly in the preview.

Real-world uses

Sharing on social

Make a page show a proper title, blurb and image when posted to Facebook or LinkedIn.

Messaging apps

Get a rich link preview in WhatsApp, Slack, Discord and iMessage.

Marketing pages

Control exactly how a campaign or launch page looks when it is shared.

Blogs and articles

Give each post its own share image and headline instead of a bare link.

When it fits, and when it doesn't

Good for

  • Link previews on Facebook, LinkedIn, WhatsApp, Slack
  • Setting a custom share image and headline
  • Most pages, where og:type website fits
  • A core OG block ready to paste

Not the best choice for

  • article, product or video-specific og:type tags
  • Twitter Card tags (a separate, related set)
  • og:site_name, locale or image-dimension tags
  • Validating or hosting the image itself

For the X (Twitter) preview, use the Twitter Card generator, though X also falls back to these OG tags. For standard head tags like title and description, use the meta tag generator.

Frequently asked questions

What is Open Graph for?
It controls the preview card (image, title, description) that appears when your page is shared on Facebook, LinkedIn, WhatsApp, Slack, Discord and other apps. Without it, platforms guess, often badly.
Where do the tags go?
In the head of your page, where platform scrapers look. Paste the block before the head section closes.
What image size should I use?
About 1200 by 630 pixels works everywhere. LinkedIn needs at least 1200 by 627 or it shows no image. Host it at a public URL.
Why is og:type always website?
It is a default that suits homepages, tools and landing pages. Articles, products and videos have their own types you can substitute by hand.
Does this cover X (Twitter)?
Partly. X falls back to Open Graph tags when Twitter-specific ones are missing, so these often work there too. For full control of the X card, use the Twitter Card generator.
Why property and not name?
Open Graph is defined to use the property attribute (property og:title). Standard meta tags use name; mixing them up stops platforms reading the tags.
Why does my preview still show the old image?
Platforms cache previews. Re-scrape the URL with the platform's debugger, for example Facebook's Sharing Debugger, to refresh it.
Do I need og:site_name and og:locale?
No. They are optional and this tool skips them. The five core tags are enough for a good preview; add the extras by hand if you want them.
Does it check that my image loads?
No, it only writes the tag. Make sure the image URL is public and correctly sized, then test with a debugger.
Can one image serve every platform?
Yes. A single 1200 by 630 image under about 1 MB satisfies Facebook, LinkedIn, X, Slack and the rest.
Is my input uploaded?
No. The tags are built in your browser as you type.
Is this the same as the Twitter Card generator?
They are close cousins built from the same form; this one writes og: tags, the other writes twitter: tags. You can use both on a page.

References

The output matches the tool's code: five core tags with the property attribute, og:type set to website, input escaped, and no og:site_name, locale or image-size tags.

PopularHot

Meta Tag Generator

Fill in your page title, description, keywords and author, and the tool writes a block of HTML head meta tags you can paste, with the title, description, viewport and robots tags included. The block updates as you type.

SEOOpen Tool
Trending

SERP Snippet Preview

Type a title, URL and meta description to see roughly how your page could look in Google, cut to length the way a real result is.

SEOOpen Tool

Robots.txt Generator

Generate a robots.txt that sets crawler and AI-bot access and points to your sitemap.

SEOOpen Tool

Slug Generator

Turn a title or phrase into a lowercase, hyphenated URL slug, the readable tail of a web address. It updates as you type, in your browser.

SEOOpen Tool

Readability Checker

Paste your text to get its Flesch Reading Ease score and US grade level, the two classic readability measures, updated as you type.

SEOOpen Tool
PopularHot

Image Compressor

Compress an image to JPEG with a quality slider and watch the file size drop as you drag, in your browser.

ImageOpen Tool

Back to the Open Graph Generator

Generate as many as you need at the top of the page. It runs on this device and needs no account.