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.
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.
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.
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.@handle with the leading @. Twitter/X uses these to attribute the card to the site account and the author.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.og:image. Images above that limit are silently dropped and the card shows no image.og:title, og:description and og:image. The og:type and article-specific tags are ignored entirely by WhatsApp’s link previewer.Open Graph — Core
Open Graph — Image
Article — Article-specific tags
Twitter / X Card
Leave title, description and image blank to mirror the og: values above.
<!-- 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.