UtilityToolsLab

© 2026 UtilityToolsLab. Built and maintained by the UtilityToolsLab Team.

Free eBooks·About·Changelog·Privacy Policy·Terms of Service·Report a bug
HomeOn-Page SEOOG Tag Generator

Related Tools

Hreflang GeneratorSERP PreviewMeta Tag Generatorrobots.txt GeneratorKeyword Permutations

Open Graph Tag Generator

Generate og:title, og:description, og:image and Twitter Card meta tags for any page. Supports article, product, website and video types. Paste into your head.

You Might Also Like

All On-Page SEO

Meta Tag Generator

Generate title, description, canonical, robots, Open Graph, and Twitter Card meta tags in one place. Copy the HTML and paste into your page head.

Hreflang Generator

Build hreflang tags for every language version of a page as HTML, an HTTP header or sitemap XML, and catch invalid codes like en-UK before they ship.

SERP Preview

Preview how a title and description will look in Google search results, with real pixel-width truncation, not just a character count. 100% client-side.

robots.txt Generator

Build a valid robots.txt file from Allow/Disallow rule groups, crawl-delay and sitemap URLs. Multiple user-agents supported. Copy and paste, entirely offline.

When someone shares a link on Facebook, LinkedIn, Slack or WhatsApp, the platform reads a cluster of <meta property="og:…"> tags from the page head to build the preview card. Without them, the platform picks a random image and the first paragraph it finds. This tool generates the complete tag set (Open Graph plus Twitter/X Card) from a single form.

Fill in the fields, copy the output, and paste it inside your page’s <head> element. Every tag the tool emits is valid HTML5. No JavaScript, no server, no upload.

Worked Example: a Tech Blog Article

The first Load Sample click fills the form with an article scenario: title “How to Build a REST API with Node.js and Express” (48 chars, green badge), description “Learn to build a production-ready REST API using Node.js, Express and MongoDB…” (130 chars, within the 160-char limit), URL and image pointing to example.com. The output panel shows og:type set to article, all core tags, plus twitter:card set to summary_large_image with the Twitter title and description mirroring the OG values because the override fields were left blank.

What Each Property Controls

  • og:type: seven presets: website, article, product, video.movie, music.song, music.album, profile. Choosing article reveals the article-specific fields (article:author, article:published_time, article:section) and hides them for every other type.
  • og:title / og:description: character-count badges turn green when within the recommended limits (60 chars for title, 160 for description) and red when over. Facebook truncates anything longer in the card preview.
  • og:image: must be an absolute HTTPS URL; the tool flags a non-HTTPS value with an inline warning because Facebook silently refuses insecure image URLs. Recommended size is 1 200 × 630 px. The minimum Facebook accepts is 200 × 200 px.
  • og:image:alt: required for accessibility. Screen readers announce this text when the preview image is described.
  • twitter:title / twitter:description / twitter:image: leave these blank and the tool mirrors the OG values. Fill them in only when you want different card text on Twitter/X than on Facebook.
  • twitter:site / twitter:creator: both expect an @handle with the leading @. Twitter/X uses these to attribute the card to the site account and the author.
  • og:locale: follows the BCP 47 pattern with an underscore: en_US, not en-US. A hyphen is valid per the OGP spec but some parsers reject it; the tool always emits the underscore form.

Tricky Inputs: Caching, Platform Rules and Locale Format

  • Facebook caches OG data for up to 24 hours after the first scrape. Deploying updated tags does not refresh the card immediately. Use Facebook’s Sharing Debugger at developers.facebook.com/tools/debug to force a re-scrape. LinkedIn has a similar tool at linkedin.com/post-inspector.
  • Twitter/X re-fetches cards on each new tweet for unseen URLs; already- published tweets keep the old card indefinitely.
  • Slack enforces a 2 MB file-size ceiling on og:image. Images above that limit are silently dropped and the card shows no image.
  • WhatsApp reads only og:title, og:description and og:image. The og:type and article-specific tags are ignored entirely by WhatsApp’s link previewer.
Content type

Open Graph — Core

Open Graph — Image

Article — Article-specific tags

Twitter / X Card

Card type

Leave title, description and image blank to mirror the og: values above.

Generated tags
<!-- Open Graph -->
<meta property="og:type" content="article">
<meta property="og:title" content="How to Build a REST API with Node.js and Express">
<meta property="og:description" content="Learn to build a production-ready REST API using Node.js, Express and MongoDB. Covers routing, middleware, error handling and JWT auth.">
<meta property="og:url" content="https://example.com/blog/rest-api-nodejs">
<meta property="og:site_name" content="Dev Tutorials">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://example.com/images/rest-api-og.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">

<!-- Twitter / X Card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="How to Build a REST API with Node.js and Express">
<meta name="twitter:description" content="Learn to build a production-ready REST API using Node.js, Express and MongoDB. Covers routing, middleware, error handling and JWT auth.">
<meta name="twitter:image" content="https://example.com/images/rest-api-og.png">

Paste inside your page's <head> element. Facebook caches OG tags for 24 hours — use the Sharing Debugger to force a refresh after deploying.