How to use Open Graph Tag Generator
Generate complete, validated Open Graph and Twitter Card meta tags for any webpage — fill in the title, description, image URL, type, and optional fields, and get ready-to-paste HTML meta tags. Includes all required fields, recommended optional fields, Twitter Card variants (summary, summary_large_image, player), and structured data for article pages. Copy to clipboard or download as a snippet.
- Enter your page title (40–60 characters recommended for social display).
- Enter the description (100–155 characters — shown in link preview text).
- Enter the absolute URL of your OG image (must be 1200×630px, publicly accessible).
- Select the page type (website, article, video.other, product).
- For articles, fill in the author, published time, and section fields.
- Copy the generated meta tags and paste them inside your HTML <head> section.
Your data never leaves your device — 100% private processing.
Complete OG tag reference
Beyond the four required tags (og:title, og:description, og:image, og:url), several optional tags significantly improve how your content is distributed. og:site_name adds your brand name to the card. og:locale sets the language (en_US, fr_FR). og:image:width and og:image:height help platforms display the image without waiting for the full download. For articles: article:author links to the author's Facebook/LinkedIn profile, article:published_time enables news feed prioritization, article:section categorizes the content. For video content: og:video:url and og:video:type enable in-feed video autoplay on Facebook.
| Tag | Required | Example value |
|---|---|---|
| og:title | Yes | How to Build a REST API in Node.js |
| og:description | Yes | A step-by-step guide to building... |
| og:image | Yes | https://example.com/og-image.png |
| og:url | Yes | https://example.com/article-slug |
| og:site_name | Recommended | ToolsHub |
| og:image:width | Recommended | 1200 |
| og:image:height | Recommended | 630 |
Next.js and framework integration
In Next.js 13+ App Router, OG tags are generated via the `generateMetadata()` function in `page.tsx`. Return an `openGraph` object with title, description, images (array of {url, width, height, alt}), type, and siteName. The Next.js metadata API automatically generates both og:* and twitter:* tags from a single metadata object. For dynamic OG images (custom fonts, layouts), use the `@vercel/og` package with `ImageResponse` in a `opengraph-image.tsx` file — Next.js will auto-register it as the og:image for that route.
Worked examples
Article meta tags
Inputs: title, description, 1200×630 image URL
Result: og:title/description/image/url + twitter:card tags ready to paste
Image size hints
Inputs: add width and height
Result: og:image:width 1200 · og:image:height 630 (prevents layout shift)
Glossary
- meta property="og:..."
- An HTML meta tag using the property attribute (not name) to define Open Graph metadata.
- Absolute URL
- A complete URL including protocol and domain (https://example.com/path) — required for og:image and og:url.
- article:published_time
- An ISO 8601 date string in OG article tags that signals publication date to news aggregators and search engines.
- ImageResponse
- A Next.js/Vercel Edge API for generating dynamic PNG images from JSX — commonly used for OG image generation.
Related reading
Frequently Asked Questions
Why use Open Graph Tag Generator?
- Generate all required og:title, og:description, og:image, og:url tags plus recommended optional fields in one form
- Produce Twitter Card meta tags alongside Open Graph so one tool covers both protocols simultaneously
- Receive inline character-count warnings when og:title or og:description exceed the visible display limit for each platform
- Output article-namespace tags (article:author, article:published_time, article:section) for news and blog pages
Common use cases
- Adding complete Open Graph meta tags to a static HTML landing page that has no CMS or framework generating them automatically
- Generating og:image:width and og:image:height hints to prevent layout shift when platforms render the card preview
- Building article-namespace tags for a news site so Google News displays the correct author and publication date
- Creating og:tags for a client's new service page to ensure the correct branded image appears when shared on LinkedIn
- Producing twitter:card summary_large_image tags for a portfolio piece to make the screenshot prominent in tweet cards
Get weekly tool tips & updates
New tools, power-user tips, and productivity hacks — delivered free every Friday.
No spam, ever. Unsubscribe with one click.
Related Social Media
Social Media Post Mockup
Create realistic social media post mockups for Twitter/X, Instagram, and Facebook. For education, humor, and creative projects.
UTM Campaign URL Builder
Build trackable campaign URLs with UTM parameters for Google Analytics. Add source, medium, and campaign, then copy the link. Free and private.
Meta Tag Generator
Generate SEO meta tags, Open Graph tags, and Twitter Card tags online. Preview Google search snippet and copy all tags instantly.
Hashtag Generator
Generate relevant hashtags for Instagram, TikTok, Twitter, LinkedIn, and YouTube. Mix popular and niche hashtags for maximum reach.
Open Graph Preview
Preview how your page appears when shared on Google, Facebook, Twitter, LinkedIn, and WhatsApp. Test Open Graph meta tags without publishing.
Social Media Character Counter
Count characters for Twitter/X, Instagram, LinkedIn, Facebook, and more. Live counter with limit warnings for every major social media platform.
Explore all Social Media.