Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Meta Tag Generator

Meta Tag Generator

Generate complete HTML meta tags for SEO, Open Graph, and Twitter Card with live preview across Google, Facebook, and X.

What Are Meta Tags?

Meta tags are snippets of HTML code that provide information about a web page to search engines and social media platforms. They don't appear on the page itself but play a crucial role in how your content is displayed in search results and when shared on social media.

Why Meta Tags Matter

Search Engine Optimization

Well-crafted title and description tags improve your click-through rate from search results

Social Media Sharing

Open Graph and Twitter Card tags control how your page looks when shared on Facebook, LinkedIn, X (Twitter), and other platforms

Brand Consistency

Ensure your content appears professional and consistent across all platforms

Three Types of Meta Tags

This tool generates three categories of meta tags to optimize your web presence:

Basic SEO Tags

Essential metadata for search engine visibility and indexing

  • Title and description
  • Keywords and author
  • Robots directives
  • Canonical URL

Open Graph Tags

Control appearance on major social platforms

  • Facebook and LinkedIn
  • Pinterest and Slack
  • Custom images and titles
  • Content type definitions

Twitter Card Tags

Define card layout and content for X (Twitter)

  • Summary cards
  • Large image cards
  • Author attribution
  • Site handles

How to Use the Meta Tag Generator

1

Fill in Basic SEO

Start with the Basic SEO tab. Enter your page title and meta description — these are the most important tags for search engine visibility. The character counter helps you stay within optimal limits:

  • Page Title — Aim for 50–60 characters. This appears as the clickable headline in search results
  • Meta Description — Aim for 150–160 characters. This is the summary text below the title in search results
  • Optionally add keywords, author name, canonical URL, and robots directives
2

Customize Open Graph (Optional)

Switch to the Open Graph tab to customize how your page appears on Facebook, LinkedIn, and other social platforms. If you leave fields empty, they automatically use values from the Basic SEO tab.

  • Select the content type (website, article, product, video, or profile)
  • Add an image URL — recommended size is 1200 x 630 pixels for best display
  • Set your site name and locale
3

Customize Twitter Card (Optional)

Switch to the Twitter Card tab to control how your page appears when shared on X (Twitter). Fields inherit from Open Graph first, then Basic SEO.

  • Choose between summary (small image) or summary_large_image (large image) card type
  • Add your Twitter handles for site and author attribution
4

Preview and Copy

Use the preview panel on the right to see how your page will look on Google, Facebook, and X. When satisfied, click Copy Code to copy the generated HTML and paste it into your page's <head> section.

Pro Tip: You only need to fill in the Basic SEO tab. Open Graph and Twitter Card fields automatically inherit values, saving you time while maintaining consistency across platforms.

Features

Smart Defaults

You only need to fill in the Basic SEO tab. Open Graph fields automatically inherit from Basic SEO, and Twitter Card fields inherit from Open Graph (then Basic SEO). Override any field individually when you need different text for social sharing.

Traditional Approach

Manual Entry

  • Fill all fields separately
  • Duplicate content across tabs
  • Risk of inconsistency
  • Time-consuming process
Smart Defaults

Automatic Inheritance

  • Fill once, apply everywhere
  • Automatic value propagation
  • Guaranteed consistency
  • Save time and effort

Live Multi-Platform Preview

See exactly how your page will appear across three platforms before publishing:

Google SERP

Preview the title, URL, and description as they appear in search results

Facebook

Preview the Open Graph card with image, title, description, and site name

X (Twitter)

Preview both summary and summary_large_image card layouts

Character Count Validation

Real-time character counting with color-coded indicators helps you write optimal-length meta content:

Optimal Length Green
Approaching Limit Yellow
Exceeding Recommended Red

Clean Code Output

The generated HTML is syntax-highlighted for easy reading and includes only the tags you've filled in — no empty or unnecessary tags. One click copies the complete code to your clipboard.

Clean Output

Only includes tags with values

  • No empty tags
  • Properly formatted HTML
  • Syntax highlighting

One-Click Copy

Instant clipboard integration

  • Copy all tags at once
  • Ready to paste
  • No manual formatting needed

Robots Directives

Toggle index/noindex and follow/nofollow directives directly. When both are set to their defaults (index, follow), the robots tag is omitted since it's unnecessary.

Smart Optimization: The generator automatically excludes the robots meta tag when using default values (index, follow) to keep your code clean and efficient.

Frequently Asked Questions

What is the ideal length for a meta title?

Google typically displays the first 50–60 characters of a title tag. Keeping your title within this range ensures it won't be truncated in search results. The character counter turns yellow when you approach the limit and red when you exceed it.

Best Practice: Aim for 50-60 characters to ensure your full title appears in search results without truncation.

What is the ideal length for a meta description?

Meta descriptions should be between 150–160 characters. While Google doesn't always use your description (it may generate its own), a well-written description can significantly improve click-through rates.

Important Note: Even though Google may sometimes generate its own description, providing a compelling meta description gives you control over your first impression in search results.

Do I need both Open Graph and Twitter Card tags?

Twitter can fall back to Open Graph tags, so technically you only need OG tags for basic social sharing. However, Twitter Card tags give you more control over how your content appears on X (formerly Twitter), including the choice between summary and large image card layouts.

  • Open Graph tags work across most platforms
  • Twitter Card tags provide X-specific customization
  • Using both ensures optimal display everywhere

What image size should I use for Open Graph?

The recommended image size is 1200 x 630 pixels (1.91:1 aspect ratio). This works well across Facebook, LinkedIn, X, and other platforms. Use high-quality images that represent your content.

Platform Recommended Size Aspect Ratio
Facebook 1200 x 630 px 1.91:1
LinkedIn 1200 x 627 px 1.91:1
X (Twitter) 1200 x 628 px 1.91:1

What's the difference between summary and summary_large_image Twitter cards?

Summary Card

Compact Layout

  • Small square thumbnail on left
  • Text content on right
  • Less visual space
  • Better for text-focused content
Large Image Card

Visual Layout

  • Large image displayed above text
  • More prominent visual presence
  • Takes up more timeline space
  • Better for visual content

Where do I paste the generated code?

Place the generated meta tags inside the <head> section of your HTML page, before the closing </head> tag.

HTML Implementation Example
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    
    <!-- Paste generated meta tags here -->
    <meta name="title" c>
    <meta name="description" c>
    <!-- ... more meta tags ... -->
    
</head>
<body>
    <!-- Your content -->
</body>
</html>
CMS Users: If you use a CMS like WordPress, you can use an SEO plugin (like Yoast SEO or Rank Math) or your theme's custom header code section to add meta tags without editing HTML files directly.

Are keywords meta tags still useful?

Google has stated that it doesn't use the keywords meta tag for ranking. However, some other search engines (like Bing) and internal site search tools may still reference it. It's optional and low priority.

Search Engine Uses Keywords Tag Priority
Google No Not used for ranking
Bing Limited Minor consideration
Internal Search Yes Site-specific use
Recommendation: Focus your efforts on title and description tags instead. These have a proven impact on click-through rates and user engagement.
0 / 60
0 / 160
Recommended: 1200 x 630 pixels
https://example.com
Your Page Title
Your meta description will appear here. Write a compelling description to improve click-through rates from search results.
1200 x 630
example.com
Your Page Title
Your meta description will appear here. Write a compelling description to improve click-through rates from search results.
1200 x 630
example.com
Your Page Title
Your meta description will appear here. Write a compelling description to improve click-through rates from search results.
HTML
Fill in the Basic SEO tab first — Open Graph and Twitter fields will auto-inherit those values
Keep your Page Title between 50–60 characters for optimal display in search results
Keep your Meta Description between 150–160 characters
Use the character count indicators: green = good, yellow = near limit, red = over limit
Recommended OG Image size: 1200 x 630 pixels
Only override OG/Twitter fields when you need different text for social sharing
All processing happens in your browser — no data is sent to any server
Want to learn more? Read documentation →
1/8
Can't find it? Build your own tool with AI
Start typing to search...
Searching...
No results found
Try searching with different keywords