Logo

Complete Tools

Search tools
Ctrl K
Favoritekofi

Meta Tag Generator

Generate SEO-optimized meta tags for search engines and social media

Create complete HTML meta tags including SEO metadata, Open Graph tags for Facebook/LinkedIn, and Twitter Card markup. Optimize your website's search engine visibility and social media presence with properly formatted meta tags.

Categories
Browser Tools, SEO Tools

Page Title

Recommended: ~60 chars. Current: 0

Description

Recommended: ~160 chars. Current: 0

Keywords

Author

Robots

Generated HTML

About Meta Tag Generator

Meta Tag Generator is a comprehensive tool for creating properly formatted HTML meta tags that optimize your website for search engines and social media platforms. Meta tags are HTML elements placed in the <head> section of web pages that provide metadata about your content to browsers, search engines, and social media platforms.

While invisible to users viewing your page, meta tags are critical for:

  • Search Engine Optimization (SEO): Influencing how your pages appear in search results
  • Social Media Sharing: Controlling how links display when shared on platforms like Facebook, Twitter, and LinkedIn
  • Browser Behavior: Defining character encoding, viewport settings, and crawler instructions

This tool eliminates the need to memorize complex meta tag syntax and ensures you're following current best practices for each platform.

Features by Category

Basic SEO Tags

Essential metadata that search engines use to understand and display your content:

Page Title (<title>)

  • The most important on-page SEO element
  • Appears as the clickable headline in search results
  • Displayed in browser tabs and bookmarks
  • Best Practice: 50-60 characters (Google truncates around 60)
  • Include primary keywords near the beginning
  • Make each page title unique and descriptive

Meta Description

  • Summary text shown below the title in search results
  • Doesn't directly affect rankings but heavily influences click-through rates
  • Best Practice: 150-160 characters (Google truncates around 155-160)
  • Write compelling copy that encourages clicks
  • Include a clear call-to-action when appropriate
  • Naturally incorporate relevant keywords

Keywords

  • Comma-separated list of relevant terms
  • Note: Most search engines (including Google) no longer use this for ranking
  • Still useful for internal documentation and some smaller search engines
  • Keep to 5-10 highly relevant keywords

Author

  • Identifies the content creator
  • Useful for blog posts and articles
  • Can help with content attribution and authorship

Robots

  • Instructs search engine crawlers on how to index the page
  • Options:
    • index, follow (default): Index this page and follow links
    • noindex, follow: Don't index but follow links
    • index, nofollow: Index page but don't follow links
    • noindex, nofollow: Don't index or follow links

Open Graph Tags (Facebook, LinkedIn, etc.)

Open Graph protocol tags control how your content appears when shared on social media:

Why Open Graph Matters:

  • Over 2 billion shares per day use Open Graph
  • Without OG tags, platforms guess what to display (often poorly)
  • Professional appearance increases click-through rates by 30-40%

Key Tags:

og:title - The headline for your shared content

  • Can differ from page <title> for better social engagement
  • Recommended: 60-90 characters

og:description - Summary shown in the share preview

  • Can be more conversational than meta description
  • Recommended: 200-300 characters

og:type - Content type classification

  • website: General web pages (default)
  • article: Blog posts, news articles
  • book: Book or publication pages
  • profile: Personal or business profiles

og:url - Canonical URL of the content

  • Use the full, absolute URL
  • Should match your canonical tag
  • Helps prevent duplicate content issues

og:image - Visual preview image

  • Critical for engagement: Posts with images get 94% more views
  • Optimal size: 1200x630px (1.91:1 ratio)
  • Minimum: 600x315px
  • Format: JPG or PNG (under 8MB)
  • Use high-quality, eye-catching images
  • Ensure text is readable at small sizes

Twitter Card Tags

Specialized tags for optimized Twitter/X sharing:

Why Separate Twitter Tags:

  • Twitter has its own card system with unique requirements
  • Falls back to Open Graph if Twitter tags aren't present
  • Allows different presentation on Twitter vs other platforms

Card Types:

Summary Large Image (summary_large_image)

  • Large featured image above text
  • Best for: Visual content, blog posts, products
  • Image ratio: 2:1 (minimum 300x157px, recommended 1200x600px)

Summary (summary)

  • Smaller square image with text
  • Best for: Text-heavy content, quick updates
  • Image ratio: 1:1 (minimum 144x144px, recommended 400x400px)

App

  • For mobile app installations
  • Includes app store buttons

Twitter-Specific Fields:

twitter:site - Your website's Twitter handle (@username)

  • Attributes the content to your brand account

twitter:creator - Author's Twitter handle

  • Attributes to individual author
  • Shows up as "by @creator" on cards

Meta Tag Best Practices

SEO Optimization

Title Tag Guidelines:

  • Front-load important keywords
  • Include brand name (usually at the end)
  • Format: Primary Keyword - Secondary Keyword | Brand Name
  • Example: Beginner's Guide to SEO - Tips & Strategies | Marketing Pro

Description Guidelines:

  • Write for humans, not just search engines
  • Include a value proposition
  • Use active voice and action words
  • Add urgency or scarcity when appropriate
  • Match search intent for your target keywords

Common Mistakes to Avoid:

  • ❌ Duplicate titles/descriptions across pages
  • ❌ Keyword stuffing
  • ❌ Missing or empty meta tags
  • ❌ Generic descriptions like "Welcome to our site"
  • ❌ ALL CAPS or excessive punctuation!!!

Social Media Optimization

Image Best Practices:

  • Aspect Ratio: 1.91:1 is the "safe zone" for most platforms
  • Text Overlay: Keep text large and minimal (20% rule no longer applies to OG images)
  • Brand Consistency: Include logo or brand colors
  • Mobile Preview: Test how images look on mobile devices
  • File Size: Optimize for fast loading (aim for under 1MB)

Testing Your Tags:

Refresh Social Cache: Social platforms cache meta data. To force an update:

  1. Use the platform's debugging tool
  2. Fetch new information
  3. Wait 24-48 hours for full propagation

Implementation Guide

Where to Place Meta Tags

Meta tags belong in the <head> section of your HTML:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <!-- Basic SEO -->
    <title>Your Page Title</title>
    <meta name="description" content="Your description" />

    <!-- Open Graph -->
    <meta property="og:title" content="Your Page Title" />
    <meta property="og:description" content="Your description" />
    <meta property="og:image" content="https://example.com/image.jpg" />

    <!-- Twitter -->
    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:title" content="Your Page Title" />
  </head>
</html>

Platform-Specific Considerations

WordPress: Use SEO plugins like Yoast SEO or Rank Math Shopify: Edit theme.liquid or use SEO apps Next.js: Use the <Head> component React: Use React Helmet or Next.js Head Static HTML: Paste directly into HTML files

Dynamic Meta Tags

For dynamic content (blogs, products, etc.), generate tags programmatically:

  • Use template variables for title/description
  • Pull product/article data from your database
  • Generate og:image URLs dynamically
  • Update Twitter handles based on author

Character Count Guidelines

Critical Limits

Title Tag:

  • Desktop: ~60 characters (~600 pixels)
  • Mobile: ~78 characters
  • Recommendation: 50-60 to be safe

Meta Description:

  • Desktop: ~155-160 characters (~920 pixels)
  • Mobile: ~120 characters
  • Recommendation: 150-160 for desktop, 120 for mobile-first

Open Graph Title:

  • ~90 characters before truncation
  • Can be longer than page title

Open Graph Description:

  • ~300 characters
  • More flexible than meta description

Why Character Limits Matter:

  • Truncated text ends with "..."
  • Users may not click if message is cut off
  • Professional appearance requires complete text

Advanced Tips

Multi-Language Support

For international sites, include language-specific meta tags:

<html lang="en">
  <meta property="og:locale" content="en_US" />
  <meta property="og:locale:alternate" content="es_ES" />
  <meta property="og:locale:alternate" content="fr_FR" />
</html>

Article-Specific Tags

For blog posts and news articles:

<meta property="og:type" content="article" />
<meta property="article:published_time" content="2024-12-16T10:00:00Z" />
<meta property="article:author" content="Author Name" />
<meta property="article:section" content="Technology" />
<meta property="article:tag" content="SEO" />

Video Content

For video content:

<meta property="og:type" content="video.other" />
<meta property="og:video" content="https://example.com/video.mp4" />
<meta property="og:video:width" content="1280" />
<meta property="og:video:height" content="720" />

Canonical URLs

Always include a canonical tag to prevent duplicate content:

<link rel="canonical" href="https://example.com/page" />

Troubleshooting

Tags Not Showing on Social Media

Solution:

  1. Verify tags are in <head> section
  2. Use platform debugging tools to check for errors
  3. Clear social media cache using platform tools
  4. Ensure images are publicly accessible (not behind authentication)
  5. Check image file size and format

Wrong Image Displaying

Causes:

  • Cached old image
  • Invalid image URL
  • Image too small
  • Wrong image format

Solutions:

  • Use platform debugging tools to refresh
  • Verify image URL is absolute and publicly accessible
  • Ensure image meets minimum size requirements
  • Use JPEG or PNG formats

Note: Google often rewrites meta descriptions based on search query

  • This is normal behavior
  • Google uses page content to create relevant descriptions
  • Your meta description is still valuable as the default

Duplicate Content Issues

If multiple URLs have the same content:

  • Use canonical tags to specify preferred URL
  • Implement 301 redirects from duplicate URLs
  • Use consistent URL structure (www vs non-www, http vs https)

SEO Impact

What Meta Tags Directly Affect Rankings?

Direct Ranking Factors:

  • ✅ Title tag (strong signal)
  • ❌ Meta description (no direct impact)
  • ❌ Meta keywords (completely ignored)

Indirect Impact:

  • ✅ Higher click-through rates from compelling descriptions
  • ✅ Lower bounce rates from accurate expectations
  • ✅ Social signals from increased sharing
  • ✅ Brand recognition from consistent messaging

Measuring Success

Track these metrics to measure meta tag effectiveness:

  • Click-Through Rate (CTR): Google Search Console
  • Social Shares: Social media analytics
  • Engagement: Bounce rate, time on page
  • Conversions: Goal completions from organic/social traffic

A/B Testing Meta Tags

Test different versions to optimize performance:

  1. Start with title/description variations
  2. Test one element at a time
  3. Give tests 2-4 weeks to collect data
  4. Analyze CTR differences in Search Console
  5. Implement winning variations

Resources & Tools

Validation Tools:

  • Google Rich Results Test
  • Facebook Sharing Debugger
  • Twitter Card Validator
  • LinkedIn Post Inspector
  • Bing Webmaster Tools

Learning Resources:

  • Google Search Central documentation
  • Open Graph Protocol specification (ogp.me)
  • Twitter Developer documentation
  • Schema.org for structured data

Browser Extensions:

  • META SEO inspector
  • OpenGraph Preview
  • SEO Meta in 1 Click

Quick Reference

Essential Tags Checklist

✅ Every page needs:

  • [ ] Title tag (unique per page)
  • [ ] Meta description (unique per page)
  • [ ] og:title
  • [ ] og:description
  • [ ] og:image
  • [ ] og:url
  • [ ] og:type
  • [ ] twitter:card

✅ Optional but recommended:

  • [ ] Meta keywords
  • [ ] Author
  • [ ] Canonical URL
  • [ ] Robots directive
  • [ ] twitter:site
  • [ ] twitter:creator

Quick Tips

  1. Start with the basics: Title and description first
  2. Make it unique: Every page needs unique meta tags
  3. Write for humans: Optimize for clicks, not just keywords
  4. Test your tags: Use validation tools before publishing
  5. Monitor performance: Track CTR and adjust accordingly
  6. Keep it updated: Review and refresh meta tags regularly
  7. Mobile-first: Test how tags appear on mobile devices
  8. Brand consistency: Maintain consistent messaging across all tags

Comments

Complete Tools
AboutTermsPrivacyContact

Copyright © 2022 - 2025 Complete Tools. Unless otherwise noted, all code MIT license.


Made with by Complete JavaScript