HTML Meta Tag Generator

Generate complete HTML head meta tags instantly. Covers SEO basics, Open Graph (Facebook), Twitter Card, robots directives, viewport, and charset. Live preview shows how your page looks in Google, Facebook, and Twitter. Copy the full <head> block in one click. 100% free, client-side.

Google SERP
example.com
Page Title
Page description will appear here...
Facebook / Open Graph
og:image
example.com
OG Title
OG description...
Twitter Card
twitter:image
Twitter Title
Twitter description...
example.com
0 tags

Did we solve your problem today?

What is an HTML Meta Tag Generator?

An HTML meta tag generator builds the complete <head> block for any page in seconds. Instead of writing meta tags by hand and checking every attribute, you fill in a form and get ready-to-paste HTML — including SEO basics, Open Graph for Facebook and LinkedIn, Twitter Card, robots directives, viewport, and charset.

How to Use This Tool

  1. Fill in the Basic SEO fields — title, description, author, keywords, and canonical URL. Watch the character counters to stay within recommended limits.
  2. Enable Open Graph to add social sharing tags for Facebook, LinkedIn, and other platforms that support the OG standard.
  3. Enable Twitter Card to control how your link looks when shared on Twitter. If Twitter Card tags are absent, Twitter falls back to Open Graph.
  4. Enable Robots Directives to tell search engine crawlers whether to index the page, follow links, and how much content to display in snippets.
  5. Check the Live Preview to see how your page will look as a Google search result, Facebook post, and Twitter share.
  6. Click Copy All to copy the entire HTML block, then paste it inside your <head> element.

SEO Meta Tags Explained

TagRecommended LengthPurpose
<title>50–60 charactersShown in browser tabs, search results, and bookmarks
<meta name="description">120–160 charactersShown below the title in search results — affects CTR
<meta name="author">anyCredits the page author; used by some readers and RSS
<meta name="keywords">optionalLargely ignored by Google but may be useful for internal search
<link rel="canonical">full URLTells search engines which URL is the “official” version

Open Graph Tags

Open Graph tags control how your page appears when shared on social networks. The essential set is:

Twitter Card

Twitter Card tags work like Open Graph but are specific to Twitter. If Twitter Card tags are missing, Twitter falls back to Open Graph. The summary_large_image type shows a large image above the text and gets significantly higher engagement than summary.

Robots Directives

The <meta name="robots"> tag controls crawler behavior:

DirectiveEffect
indexAllow the page to appear in search results
noindexPrevent the page from appearing in search results
followAllow crawlers to follow links on the page
nofollowTell crawlers not to follow links
max-snippet:-1Allow unlimited text snippet length in results
max-image-preview:largeAllow large thumbnail images in results

Character Limits

Privacy

All tag generation runs entirely in your browser. No data you enter is ever sent to a server, stored, or logged.

FAQ

What meta tags should every page have?

At minimum every page should have: charset (UTF-8), viewport (for mobile), a unique title (50–60 characters), and a meta description (120–160 characters). For social sharing, add Open Graph tags (og:title, og:description, og:image, og:url). For Twitter-specific rendering, add twitter:card and twitter:title.

What is the difference between Open Graph and Twitter Card?

Open Graph (og:) is the standard used by Facebook, LinkedIn, and most other platforms to control how a link preview looks when shared. Twitter Card (twitter:) is Twitter's own format — if Twitter Card tags are absent, Twitter falls back to Open Graph. Having both ensures optimal previews everywhere.

What does the robots meta tag control?

The robots meta tag tells search engine crawlers whether to index the page and follow its links. "index, follow" (default) is fully crawlable. "noindex" prevents the page from appearing in search results. "max-snippet:-1" allows unlimited text snippets in Google results. "max-image-preview:large" allows large thumbnail images.

How long should the meta description be?

Google typically displays up to 160 characters of a meta description. Aim for 120–155 characters to avoid truncation. Include your main keyword naturally and write it as a compelling call-to-action — it directly influences click-through rates even though it is not a direct ranking factor.

Is my data sent to a server?

No. All tag generation happens entirely in your browser using JavaScript string templates. Nothing you type is sent to any server, stored, or logged.