OpenGraph & Meta Tags Generator

Generated HTML Meta Tags



    

OpenGraph & Twitter Card Meta Tags Guide

When someone shares your link on Slack, Discord, Telegram, LinkedIn, Facebook, or X (Twitter), those platforms crawl the page's <head> for OpenGraph (og:*) and Twitter Card (twitter:*) meta tags. Without them, links appear as plain text or pull random images from the page. This generator lets you preview the social card and copy clean, escaped HTML meta tags.

Essential Tags Explained

  • og:title: The headline shown in the share card. Aim for 50–65 characters so it does not truncate on mobile feeds.
  • og:description: A concise 1–2 sentence summary (around 110–160 characters) explaining why the user should click.
  • og:url: The canonical URL of the page (without tracking parameters like ?utm_source=...) so share counts consolidate cleanly.
  • og:image: An absolute HTTPS URL to a preview image. For crisp rendering across Facebook, LinkedIn, X, and Discord, use a 1200 × 630 px (1.91:1) PNG or JPEG under 5 MB.
  • og:type: Usually website for home/landing pages or article for blog posts and documentation.
  • twitter:card: Set to summary_large_image for a full-width hero banner above the title, or summary for a compact square thumbnail.

Troubleshooting & FAQ

  • Why did my updated image not appear in Telegram or Slack? Social platforms aggressively cache link previews. After updating your meta tags, use the Facebook Sharing Debugger, LinkedIn Post Inspector, or Telegram's @WebpageBot to force a cache refresh, or append a version query like ?v=2 to your image URL.
  • Do I need duplicate twitter:title and twitter:description tags? X (Twitter) automatically falls back to og:title, og:description, and og:image when twitter:card is present, though including them explicitly guarantees consistent behavior across older crawlers.
  • Why must og:image be an absolute URL? Relative paths like /img/cover.png are ignored by most social crawlers. Always provide a full https://... URL.

Image Dimensions & Hosting Checklist

Make sure your og:image file is publicly accessible without authentication, returns 200 OK with a valid image/png or image/jpeg Content-Type header, and is not blocked by robots.txt or hotlink protection. Also include og:image:width (1200) and og:image:height (630) on high-traffic pages so messaging apps can render the card immediately on the very first share without waiting for image dimension probing.

Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy