Skip to main content

Meta Tag Generator

Generate SEO, Open Graph, and Twitter Card meta tags for your web pages. See a live social preview and copy all tags with one click.

✓ SEO + OG + Twitter Card ✓ Live preview ✓ No sign-up required

Page Details

15/60 chars (ideal: ≤60)

61/160 chars (ideal: ≤160)

Social Preview

OG Image (og-image.jpg)

example.com

My Awesome Page

A description of my page for search engines and social media.

Generated Tags

<!-- Primary Meta Tags -->
<title>My Awesome Page</title>
<meta name="title" content="My Awesome Page">
<meta name="description" content="A description of my page for search engines and social media.">
<link rel="canonical" href="https://example.com/page">

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/page">
<meta property="og:title" content="My Awesome Page">
<meta property="og:description" content="A description of my page for search engines and social media.">
<meta property="og:image" content="https://example.com/og-image.jpg">
<meta property="og:site_name" content="Example Site">

<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@example">
<meta name="twitter:url" content="https://example.com/page">
<meta name="twitter:title" content="My Awesome Page">
<meta name="twitter:description" content="A description of my page for search engines and social media.">
<meta name="twitter:image" content="https://example.com/og-image.jpg">

SEO Health Check

Title length15 chars ⚠ Too short
Description length61 chars ⚠ Too short
OG Image✓ Set
Canonical URL✓ Set

Frequently Asked Questions

What are Open Graph meta tags?▼

Open Graph (OG) tags are HTML meta tags that control how your page appears when shared on social media platforms like Facebook, LinkedIn, and Slack. They define the title, description, image, and URL shown in link previews.

What size should my OG image be?▼

The recommended OG image size is 1200×630 pixels (1.91:1 aspect ratio). This works across Facebook, LinkedIn, Twitter, and most messaging apps. Keep it under 1MB for fast loading.

What is the ideal meta description length?▼

Google typically displays 155–160 characters of a meta description. Aim for 70–160 characters — long enough to be descriptive but short enough to display in full. Descriptions over 160 characters get truncated.

What is Twitter Card and how does it differ from OG?▼

Twitter Card tags control how your content appears when shared on Twitter/X. While Twitter can read OG tags as fallback, Twitter-specific tags give you more control over the card type (summary vs large image) and Twitter-specific fields like site handle.

Do I need both OG and Twitter Card tags?▼

Best practice is to include both. Twitter reads OG tags as fallback, but explicit Twitter Card tags ensure correct rendering. Other platforms (LinkedIn, Slack, Discord) primarily read OG tags.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →