Social Media Meta Tag Generator

Generate perfect Open Graph and X (Twitter) Card meta tags with live preview. See exactly how your links look when shared on Facebook, LinkedIn, and X. Create compelling social media cards that drive clicks.

Quick Presets:
Content
0/60
0/155
1200 × 630 px JPG / PNG HTTPS < 5 MB
Facebook & LinkedIn
Posts with images get 2-3x more engagement on Facebook and LinkedIn
X (Twitter) X / Twitter
Summary Large Image cards get the best click-through rate on X
Advanced
Article fields only apply when OG type is set to "Article"
Live Preview
Live
1200 × 630
YOURWEBSITE.COM
Your Page Title
Your description appears here. Make it compelling to encourage clicks from social media.
1200 × 628
Your Page Title
Your description appears here.
yourwebsite.com
1200 × 627
Your Page Title
yourwebsite.com
Generated Code 0 tags
social-meta-tags.html

What This Tool Generates

Open Graph Tags Facebook, LinkedIn, WhatsApp
X (Twitter) Cards Summary & Large Image cards
Image Metadata Width, height, alt text
Article Properties Author, section, published time
App Integration Facebook App ID, creator handles

Keyboard Shortcuts

Ctrl+C Copy code
Ctrl+S Download file
Ctrl+R Reset all
1-4 Load preset

Perfect Your Social Media Presence

When someone shares your link on Facebook, LinkedIn, or X, what appears is controlled by social media meta tags — specifically Open Graph (OG) and X Card tags (formerly Twitter Cards). Without these tags, social platforms guess what to show, often resulting in missing images, truncated titles, or irrelevant descriptions.

Our Social Media Meta Tag Generator takes the guesswork out of social sharing. Configure your page details visually, see exactly how your link will look on Facebook, X, and LinkedIn simultaneously, and get production-ready HTML code to paste into your <head> section.

How to Use the Social Meta Generator

01

Enter Your Page Details

Fill in your page title, description, URL, and image. Character count indicators help you stay within optimal lengths for each platform.

02

Preview on Every Platform

See live previews for Facebook, X (Twitter), and LinkedIn — all at once. No tab switching needed. Watch all three update in real-time as you type.

03

Review Validation

Check the real-time validation messages for title length, description quality, image requirements, and URL format — fix issues before publishing.

04

Copy or Download

Expand the code section, click Copy or Download, and paste the generated meta tags inside the <head> section of your page.

Key Features

Simultaneous Previews

See Facebook, X, and LinkedIn previews all at once — no tab switching. Compare how your link looks across platforms in a single view.

Syntax-Highlighted Code

Generated meta tags displayed with syntax highlighting and line numbers, available in a collapsible panel so previews stay the focus.

Tabbed Platform Preview

Switch between Facebook, X (Twitter), and LinkedIn previews with a single click. See platform-specific rendering for each social network.

Smart Presets

One-click presets for Blog, Product, Article, and Local Business configure everything with realistic sample data.

Real-Time Validation

Context-aware warnings help you fix common mistakes — like missing images or titles that are too long — before you publish.

100% Private

All processing happens in your browser. No data is sent to any server — your URLs and content stay completely private.

Tag Reference Guide

Every field in the tool generates specific HTML meta tags. Here is a quick reference:

PlatformTagPurposeMax Length
Open Graphog:titleTitle shown in link preview60 chars
Open Graphog:descriptionDescription below the title155 chars
Open Graphog:imagePreview image (1200×630px)
Open Graphog:urlCanonical URL of the page
Open Graphog:typeContent type (website, article)
Open Graphog:site_nameName of the overall site
X (Twitter)twitter:cardCard type (summary, large image)
X (Twitter)twitter:site@handle of the website
X (Twitter)twitter:creator@handle of content creator
Advancedfb:app_idFacebook App integration
Advancedarticle:authorArticle author name
Advancedarticle:sectionArticle category/section
Advertisement
Ad

Platform-Specific Guidelines

Each social platform has slightly different requirements for optimal display:

  • Facebook: Uses Open Graph tags. Images should be 1200×630px. Titles up to 60 characters, descriptions up to 155 characters. Supports og:locale for multilingual content. Use the Facebook Sharing Debugger to test and clear cache.
  • X (formerly Twitter): Uses twitter: card tags with OG fallback. Supports Summary (small square image) and Summary Large Image (full-width image) cards. Images should be at least 300×157px for large image, 144×144px for summary.
  • LinkedIn: Uses Open Graph tags same as Facebook. Images should be at least 1200×627px. LinkedIn caches link previews — use the Post Inspector to refresh after making changes.
  • WhatsApp: Uses Open Graph tags. Images display as squares in chats, so ensure your key content is centered. WhatsApp aggressively caches — clearing cache may take time.
  • Pinterest: Uses Open Graph tags but also supports Rich Pins. Use og:type=article for article pins and include og:image with vertical images (2:3 aspect ratio) for best display.

Expert Social Media Tips

Image is Everything

Posts with images get 2-3x more engagement. Always include an og:image tag with a high-quality 1200×630px image that represents your content.

Write for Clicks, Not SEO

Social titles should be curiosity-driven and emotional, not keyword-stuffed. Ask a question, use numbers, or create urgency to maximize click-through rates.

Test Before Publishing

Always test your tags with Facebook Sharing Debugger and X Card Validator before promoting content. Fix issues before they reach your audience.

Keep Both OG and X Tags

While X can read OG tags, having dedicated twitter: card tags lets you optimize separately for each platform — different lengths, different CTAs.

Advertisement
Ad

Frequently Asked Questions

What are social media meta tags?

Social media meta tags (Open Graph and X/Twitter Cards) control how your webpage looks when shared on social platforms like Facebook, LinkedIn, and X (formerly Twitter). They specify the title, description, and image that appear in social posts. Without these tags, social media picks random text and images from your page, often creating ugly or confusing link previews.

What is the difference between Open Graph and X (Twitter) Cards?

Open Graph tags (og:) work on Facebook, LinkedIn, WhatsApp, and most other social platforms. X Cards (twitter:) are specific to X (formerly Twitter). While X can read Open Graph tags, dedicated twitter: tags let you optimize specifically for X and choose card types. Our generator creates both types of tags.

How do I add social media meta tags to my website?

Copy the generated meta tags from our tool and paste them in the <head> section of your HTML page. For WordPress, use an SEO plugin like Yoast or Rank Math. For Shopify or Wix, use their social media settings or add custom code.

What image size works best for social media sharing?

Use 1200×630 pixels for optimal display across all platforms. This size works perfectly for Facebook, LinkedIn, and X large image cards. Images should be under 5MB in JPG or PNG format. Our preview shows exactly how your image will look when shared.

What are X Card types and which should I use?

Summary Card shows a small square image with title and description — good for text-focused content. Summary Large Image Card displays a big prominent image above text — best for visual content, products, or when the image is key to your message. Our preview shows both card types.

How do I test my social media tags after adding them?

Use Facebook Sharing Debugger (developers.facebook.com/tools/debug) to test Open Graph tags and X Card Validator to test X/Twitter Cards. LinkedIn has a Post Inspector tool. Our generator includes direct links to all three testing tools at the bottom of the output panel.