Meta Tag Generator
Fill in one form and get clean, correctly escaped meta tags — title, description, canonical, robots, viewport, Open Graph, and Twitter cards — with warnings for common mistakes.
Processed locally in your browser — nothing is uploaded.
Meta Tag Generator
1200 × 630 px works everywhere.
Meta tags
<meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary_large_image" />
Paste the tags inside your page's <head>. Twitter (X) reads og:title, og:description, and og:image, so only the card type and handle are repeated for it.
About Meta Tag Generator
Fill in the page's title, description, and canonical URL, choose how search engines and social platforms should treat it, and copy a ready-to-paste block for the page's <head>. The tags are grouped — basics, Open Graph, Twitter — and every value is HTML-escaped, so a title with quotes, an ampersand, or angle brackets can't break the markup or inject anything into it.
Only the tags that do something. A robots tag appears only when you turn indexing or link-following off, because "index, follow" is what crawlers assume anyway. Open Graph's title, description, and image are written once and Twitter (X) reads them, so the card gets just its type and your handle instead of a duplicate set. Set a language in Options to add og:locale, and the tool reminds you that the language itself belongs on <html lang>.
Warnings for the quiet mistakes. Titles and descriptions are measured in pixels the way Google truncates them, so you're told when either will end in "…" — see exactly where in the SERP Snippet Preview. You're also warned about relative canonical and og:image URLs that platforms won't resolve, a large-image Twitter card with no image, and noindex combined with a canonical, which sends search engines contradictory instructions.
Common uses
- Set up the head of a new page, landing page, or static site template
- Add Open Graph and Twitter card tags so shared links get a proper preview
- Hide a staging or thank-you page from search results with noindex
- Audit an existing set of tags by retyping the values and reading the warnings
Need wording for the description? Draft it with the Meta Description Generator. Once the page is live, check what platforms actually see with the OG Meta Checker.
Example
Input
Title: Tom & Jerry's "Best" Boots · Canonical: https://example.com/boots · noindex
Output
<meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Tom & Jerry's "Best" Boots</title> <meta name="robots" content="noindex, follow" /> <link rel="canonical" href="https://example.com/boots" />
The full output continues with the Open Graph and Twitter card tags.
Limitations
- The tags are only as good as the page behind them: Google may rewrite a title or description that doesn't match the content
- Structured data (JSON-LD), favicons, and hreflang alternates aren't included — use the Hreflang Generator for language versions
- The
<html lang>attribute can't live in the head, so it's shown separately for you to add - Platforms cache share cards; after changing Open Graph tags on a live page, re-scrape it in each platform's debugger
Frequently asked questions
Which meta tags does a page actually need?
A charset, a responsive viewport, a <title>, a meta description, and usually a canonical link. Add Open Graph tags (og:title, og:description, og:image) so links shared on Facebook, LinkedIn, Slack, and others get a preview card, and a twitter:card tag for X. The old keywords meta tag is ignored by Google and isn't generated.
Do I need separate Twitter tags if I have Open Graph tags?
Mostly not. X falls back to og:title, og:description, and og:image when twitter:title, twitter:description, and twitter:image are missing, so the only tag it needs on its own is twitter:card (plus twitter:site for your handle). If you switch Open Graph off, the tool writes the Twitter versions instead.
Should the canonical URL be absolute?
Yes. Google accepts relative canonicals but recommends absolute ones, because a relative path is resolved against whatever host served the page — a staging domain or an http:// copy can end up canonicalising to itself. og:image is stricter: social platforms ignore relative image URLs entirely.
How do I stop a page from appearing in Google?
Turn off “Let search engines index this page” to add <meta name="robots" content="noindex">. The page must stay crawlable for this to work — if robots.txt blocks it, Google never sees the noindex. Don't add a canonical pointing elsewhere at the same time; Google treats the two together as a conflicting signal.
Why is my title or description flagged as too long?
Google truncates by pixel width — about 600px for titles and 920px for descriptions on desktop — not by character count. The tool measures your text in Arial the way the results page draws it and warns when it would be cut, so you can shorten it before it ends in “…”.
Is what I enter stored anywhere?
No. The tags are generated in your browser as you type; nothing is uploaded, logged, or saved, so unreleased page titles and URLs stay private.