# Open Graph Generator

URL: https://hifreetools.com/seo/open-graph-generator

> Generate Open Graph and Twitter Card meta tags and see a live preview of how your link will look when shared on social media, then copy the tags into your page.

## Quick answer

Open Graph (og:) and Twitter Card meta tags control the title, description, and image that appear when your page is shared on Facebook, LinkedIn, X/Twitter, Slack, and most chat apps. This generator builds those tags from your inputs and shows a live preview card, so you can confirm the look before publishing. Use an image around 1200×630 pixels for the sharpest result.

The tool outputs the core Open Graph properties (og:title, og:description, og:type, og:url, og:image, og:site_name) plus the Twitter Card equivalents (twitter:card, twitter:title, twitter:description, twitter:image). All values are HTML-escaped. The preview approximates a large-image share card; each platform renders slightly differently and caches the tags, so re-scrape after changes.

## Examples

- Large image card: twitter:card = summary_large_image + og:image → Full-width preview image above the title
- Article share: og:type = article → <meta property="og:type" content="article">
- Set the canonical share URL: og:url = https://example.com/page → <meta property="og:url" content="https://example.com/page">

## FAQ

**What is Open Graph?**
Open Graph is a protocol (originally from Facebook) that lets any web page control its title, description, image, and type when shared, using <meta property="og:…"> tags in the page head.

**Do I need both Open Graph and Twitter tags?**
Open Graph alone covers most platforms, and X/Twitter falls back to OG tags. Adding the twitter:card tag lets you choose the large-image layout, so including both is best.

**What image size should I use?**
About 1200×630 pixels (a 1.91:1 ratio) for the large card. Keep important content away from the edges, since some platforms crop slightly.

**Why doesn't my new image show when I share?**
Platforms cache OG data. Use the platform's sharing debugger or link inspector to force a re-scrape after you change the tags.

**Where do these tags go?**
In the <head> of your page, like other meta tags. They have no visible effect on the page itself.

**Is anything uploaded?**
No — the tags and preview are generated in your browser.


## Sources

- [The Open Graph protocol (ogp.me)](https://ogp.me/)
- [X Developer Platform — About X Cards](https://developer.x.com/en/docs/x-for-websites/cards/overview/abouts-cards)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Open Graph Generator", https://hifreetools.com/seo/open-graph-generator
