TL
Tool Lab
💰Donate
💰Donate

OG Tag Generator

Generate Open Graph and Twitter tags

Recommended: under 60 characters

Recommended: 1200×630px

Generated Tags
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">

<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">

About This Tool

Open Graph tags control how your page appears when shared on social media platforms like Facebook, LinkedIn, and WhatsApp. Without them, platforms fall back to guessing — often picking the wrong image or title.

Twitter Card tags serve the same purpose for Twitter/X. The summary_large_image card type displays a prominent image, ideal for articles and blog posts. The image should be at least 1200×630 pixels for best results across all platforms.

How to Use

  1. Fill in the title, description, and URL fields.
  2. Add an image URL and alt text for the social preview image.
  3. Select the OG type, locale, and Twitter card settings.
  4. Copy the generated tags and paste them into the <head> section of your HTML.

Use Cases

Web developers ensure new pages display correctly when shared on social media. Marketers guarantee attractive previews when content is shared. Bloggers set correct images and descriptions for their posts. SEO specialists optimize social metadata for better engagement.

FAQ

  • What is the difference between OG and Twitter Card tags?OG tags are used by most social platforms including Facebook, LinkedIn, and WhatsApp. Twitter Card tags are specific to Twitter/X, but Twitter also falls back to OG tags when Twitter Card tags are absent.
  • What are the recommended image dimensions?1200×630px is recommended. Images that are too small may be skipped by platforms. The file size should be under 8MB.
  • What og:type value should I use?Use "website" for general pages and "article" for news or blog posts. Other values include video, music, book, and profile.