Meta Tag Generator

Generate SEO-optimized meta tags, Open Graph and Twitter Card tags

Live preview | Free to use

Basic Meta Tags

Comma-separated list of keywords

Open Graph Tags

(Facebook, LinkedIn, etc.)

Recommended: 1200x630 pixels

Twitter Card Tags

Google Search Preview

Facebook / Social Preview

Twitter Card Preview

Generated HTML

100% Private

All meta tag generation happens locally in your browser. Nothing is ever sent to any server or stored anywhere.

What Are Meta Tags?

The hidden HTML elements that control how search engines and social platforms see your pages

Meta tags are snippets of HTML code placed inside the <head> section of a webpage. They don't appear on the page itself, but they provide critical information to search engines, social media platforms, and browsers about the page's content, author, viewport settings, and more. Well-crafted meta tags directly influence your search rankings, click-through rates, and social media engagement.

Search Engine Visibility

The title tag and meta description determine how your page appears in Google search results. A well-optimized title and compelling description can significantly improve your click-through rate.

Social Media Sharing

Open Graph and Twitter Card tags control how your page looks when shared on Facebook, LinkedIn, Twitter, and other social platforms. Custom images and descriptions drive more engagement.

Crawler Instructions

The robots meta tag and canonical URL tell search engine crawlers how to index your page, which version is authoritative, and whether to follow links — essential for avoiding duplicate content issues.

Essential Meta Tags for SEO

The most important meta tags every page should have

Tag Purpose Best Practice
<title> Defines the page title shown in search results and browser tabs 50–60 characters, include primary keyword
description Summary shown under the title in search results 150–160 characters, compelling call to action
robots Controls search engine crawling and indexing behavior Use "index, follow" unless page should be hidden
canonical Specifies the preferred URL for duplicate content Always set to the single authoritative URL
viewport Controls responsive behavior on mobile devices width=device-width, initial-scale=1
charset Declares the character encoding for the document Always use UTF-8

Tip: While the keywords meta tag is largely ignored by Google, it can still be useful for internal site search and for other search engines like Bing.

Open Graph vs Twitter Cards

Understanding the two major social media meta tag standards

Open Graph (OG)

  • Created by Facebook in 2010
  • Used by Facebook, LinkedIn, Pinterest, Slack, Discord
  • Prefix: og:
  • Supports title, description, image, type, URL, locale
  • Recommended image: 1200x630px

Twitter Cards

  • Created by Twitter (now X)
  • Used exclusively on Twitter/X platform
  • Prefix: twitter:
  • Supports card, site, creator, title, description, image
  • Falls back to OG tags if not set separately

Best Practice: Always include both Open Graph and Twitter Card meta tags. While Twitter can fall back to OG tags, having dedicated Twitter Card tags ensures the best possible display on all platforms. This generator creates both sets automatically.

How to Use This Meta Tag Generator

Generate perfect meta tags in four simple steps

1

Enter Basic Info

Fill in your page title and meta description. Watch the character counters to stay within recommended limits for search engines.

2

Add Social Tags

Configure Open Graph and Twitter Card tags. Add an image URL for rich social media previews. Fields default to your basic meta info.

3

Preview Results

See live previews of how your page will look in Google search results, Facebook shares, and Twitter cards before publishing.

4

Copy the Code

Copy the generated HTML code and paste it into the <head> section of your webpage. Done!

Frequently Asked Questions

Common questions about meta tags and SEO optimization

Meta tags are HTML elements placed in the <head> section of a webpage that provide metadata about the page. They are important for SEO because the title tag is a major ranking factor, the meta description influences click-through rates from search results, and the robots tag controls how search engines index your content. Without proper meta tags, search engines may display suboptimal snippets for your pages.
The ideal meta title length is 50–60 characters. Google typically truncates titles longer than 60 characters with an ellipsis. The ideal meta description length is 150–160 characters. Descriptions beyond 160 characters will be cut off in search results. This tool provides real-time character counters with color-coded progress bars to help you stay within optimal limits.
Open Graph (OG) tags were created by Facebook and are used by most social media platforms including Facebook, LinkedIn, Pinterest, Slack, and Discord to generate rich link previews. Twitter Card tags are specific to Twitter/X and control how shared links appear in tweets. Twitter will fall back to OG tags if Twitter Card tags are absent, but having both ensures the best display on all platforms.
The robots meta tag instructs search engine crawlers on how to handle a page. index, follow (default) tells crawlers to index the page and follow its links. noindex, follow prevents indexing but still follows links. index, nofollow indexes the page but ignores links. noindex, nofollow prevents both indexing and link following. Use noindex for pages like thank-you pages, login screens, or internal search results.
A canonical URL (<link rel="canonical">) tells search engines which version of a page is the authoritative copy when the same content exists at multiple URLs. This is essential for preventing duplicate content penalties. Common scenarios include HTTP vs HTTPS, www vs non-www, URLs with tracking parameters, and paginated content. Always set a canonical URL to the single preferred version of each page.
Yes. This meta tag generator runs 100% in your browser using JavaScript. No data is ever sent to any server, stored in any database, or shared with any third party. All tag generation and previews happen locally and instantly. You can verify this by checking the Network tab in your browser’s Developer Tools — no requests are made. The tool works fully offline once the page has loaded.