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.
Page Title
Recommended: ~60 chars. Current: 0
Description
Recommended: ~160 chars. Current: 0
Keywords
Author
Robots
Page URL (Canonical)
OG Type
Image URL
Card Type
Site (@username)
Creator (@username)
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 linksnoindex, follow: Don't index but follow linksindex, nofollow: Index page but don't follow linksnoindex, 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 articlesbook: Book or publication pagesprofile: 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:
- Facebook: Use Facebook Sharing Debugger
- Twitter: Use Twitter Card Validator
- LinkedIn: Use LinkedIn Post Inspector
- General: Use schema.org validators
Refresh Social Cache: Social platforms cache meta data. To force an update:
- Use the platform's debugging tool
- Fetch new information
- 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:
- Verify tags are in
<head>section - Use platform debugging tools to check for errors
- Clear social media cache using platform tools
- Ensure images are publicly accessible (not behind authentication)
- 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
Description Not Showing in Search
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:
- Start with title/description variations
- Test one element at a time
- Give tests 2-4 weeks to collect data
- Analyze CTR differences in Search Console
- 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
- Start with the basics: Title and description first
- Make it unique: Every page needs unique meta tags
- Write for humans: Optimize for clicks, not just keywords
- Test your tags: Use validation tools before publishing
- Monitor performance: Track CTR and adjust accordingly
- Keep it updated: Review and refresh meta tags regularly
- Mobile-first: Test how tags appear on mobile devices
- Brand consistency: Maintain consistent messaging across all tags
Related Tools
Comments