<!-- Open Graph Tags --> <meta property="og:type" content="website" /> <meta property="og:locale" content="en_US" /> <!-- Twitter Card Tags --> <meta name="twitter:card" content="summary_large_image" />
What are OpenGraph tags?
OpenGraph tags are <meta> elements in a page's <head> that tell Facebook, LinkedIn, Slack, Discord and other platforms what to show when someone shares your URL: a title, description, image, and canonical URL, independent of whatever the page itself displays. Without them, a shared link falls back to whatever the scraper can guess from the page — often the wrong image, a truncated title, or nothing at all.
This generator also produces the matching Twitter Card tags, since X (Twitter) ignores OpenGraph's og:title and og:description in favor of its own twitter:* namespace unless you explicitly opt into falling back to OG values.
When to use it
Add these tags to any page you expect people to share: blog posts, product pages, landing pages, documentation. They matter most for content marketing and launches, where the preview card is often the deciding factor in whether someone clicks. Set og:type to article for blog posts (enables article-specific extensions elsewhere), product for e-commerce listings, or profile for author/user pages.
The image should be at least 1200x630px — smaller images get upscaled or rejected by some scrapers, and the wrong aspect ratio gets cropped unpredictably in the feed.
Example
For a page at https://cloudpivot.dev/blog/edge-caching-guide, set Title to "A Practical Guide to Edge Caching", Description to a one-sentence summary, Image to a 1200x630 PNG hosted on your own domain, and Site Name to "CloudPivot". The generator outputs paired og: and twitter: meta tags ready to paste into the page's <head> — use "Copy link to this result" to hand the exact field values to a teammate instead of re-typing them.
How to use the OpenGraph Tag Generator tool
- 1
Fill in the core fields
Title, description, URL and image are what most platforms read; the rest are refinements.
- 2
Pick a type and locale
og:type affects how some platforms parse the content; locale matters for non-English pages.
- 3
Set the Twitter Card
summary_large_image shows a full-width image; summary shows a small thumbnail beside the text.
- 4
Copy or share
Copy the tags into your <head>, or copy a permalink that restores every field for a teammate.
Frequently asked questions
Why doesn't my shared link show the new image after I update it?
Facebook, LinkedIn and Slack cache scraped OpenGraph data per URL. Use each platform's own debugger/scraper tool (e.g. Facebook Sharing Debugger) to force a re-scrape — editing the page alone won't refresh an already-shared link.
Do I need both OpenGraph and Twitter Card tags?
Yes if you want good previews on both. X does not read og:title or og:description by default — it looks for twitter:title, twitter:description and twitter:image, falling back to OG tags only for the image in some cases.
What image size should I use?
1200x630px (roughly 1.91:1) is the safe default for summary_large_image and Facebook/LinkedIn. Smaller than 200x200px images get rejected outright by several scrapers.
Is any of this data sent to a server?
No. The tags are built entirely in your browser from the fields you type; nothing is uploaded or logged.
Related on TechLogHub
Related SEO Tools
Meta Tag Generator
Generate HTML meta tags for SEO
robots.txt Generator
Generate robots.txt files for search engine crawlers
sitemap.xml Generator
Generate XML sitemaps for search engines
Canonical Tag Generator
Generate canonical link tags to prevent duplicate content
FAQ Schema Generator
Generate FAQPage structured data (JSON-LD) — no longer a Google rich result
HowTo Schema Generator
Generate HowTo structured data (JSON-LD) — Google retired the rich result in 2023
Get the next tool before you need it
One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.

