OG & Twitter Card Generator — Meta Tag Builder, Auditor & Preview
Build ready-to-paste Open Graph and Twitter Card <meta> tags from a form, or paste an existing <head> to audit it for missing tags, title/description length and twitter:card validity — then preview both in genuinely re-styled Twitter/X, Facebook, LinkedIn and Discord link-card mockups.
Result
Open Graph and Twitter Card meta tags decide what a link looks like the instant it is pasted into Slack, iMessage, a tweet or a Discord channel — a title, description and image chosen by the page's own <head>, not by whatever the platform happens to scrape from the visible body text. This tool is both a builder and an auditor, not a generic template filler. In BUILD mode, fill in a title, description, image URL, canonical URL, content type and Twitter card type, and it composes the exact <meta property="og:..."> and <meta name="twitter:..."> tag block ready to paste into your page's <head>, skipping any field you leave empty rather than emitting hollow tags with blank content.
In AUDIT mode, paste your existing <head> markup or an entire page's HTML and the tool parses it with the browser's native DOMParser to extract every og: and twitter: meta tag already present, then runs the checks that actually matter: the four commonly-required tags (og:title, og:description, og:image, og:url) are flagged if missing; og:title is measured against the roughly 60-character point where some platforms begin truncating it and the roughly 90-character point where most platforms will; og:description is measured against the roughly 155-to-200-character range most platforms allow before cutting it off; twitter:card is checked against the real four values Twitter's Card validator accepts — summary, summary_large_image, app, player — and flagged if it's anything else; and duplicate tags (the same property declared twice, a surprisingly common copy-paste bug) are called out by name.
Image dimensions get an honest treatment: this tool cannot verify your image's actual pixel size without fetching it, and it deliberately never does that, matching this site's no-external-request policy. If your HTML already declares og:image:width and og:image:height, those declared numbers are checked against the widely recommended 1200×630 minimum; if not, you get a clear guidance note instead of a fabricated pass or fail. Both modes render the same four link-preview mockups — Twitter/X (switching between its compact "summary" thumbnail layout and full-width "summary_large_image" layout depending on the twitter:card value), Facebook, LinkedIn and Discord — each genuinely re-styled to match that platform's own typography and layout conventions rather than one box with a different logo, and each is clearly labeled as an illustrative approximation for planning purposes, since real platforms restyle their preview chrome over time and this tool never fetches or scrapes them to check.