Meta Tag Generator
Generate SEO meta tags, Open Graph and Twitter card tags for your page, with length checks and a social preview.
The preferred address of this page; also used as og:url.
Social sharing
Recommended 1200 × 630 px, under 5 MB, JPG or PNG.
✓ Title and description look good.
<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Handmade Ceramic Mugs | Clay & Co.</title> <meta name="description" content="Shop small-batch stoneware mugs, glazed by hand in our Portland studio. Free shipping on orders over $50 and a 30-day return policy."> <link rel="canonical" href="https://www.example.com/mugs/"> <!-- Open Graph --> <meta property="og:type" content="website"> <meta property="og:title" content="Handmade Ceramic Mugs | Clay & Co."> <meta property="og:description" content="Shop small-batch stoneware mugs, glazed by hand in our Portland studio. Free shipping on orders over $50 and a 30-day return policy."> <meta property="og:url" content="https://www.example.com/mugs/"> <meta property="og:site_name" content="Clay & Co."> <meta property="og:locale" content="en"> <meta property="og:image" content="https://www.example.com/images/mugs-og.jpg"> <meta property="og:image:alt" content="Three blue ceramic mugs on a wooden table"> <!-- Twitter / X --> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@clayandco">
Link preview (social card)

Approximate layout; each network crops and styles cards slightly differently.
About this tool
Meta tags live in the <head> of a web page and tell search engines and social networks what the page is. The title tag becomes the blue headline in Google, the meta description often becomes the snippet below it, the canonical link says which URL is the original, and Open Graph and Twitter card tags control the preview card when someone shares your link on Facebook, LinkedIn, X, Slack or WhatsApp.
This generator builds all of them from one short form, escapes special characters correctly, and warns when the title or description is likely to be cut off, when a URL is relative, or when the page is set to noindex. A live card preview shows roughly how the link will look when shared.
How to use Meta Tag Generator
- Enter the page title and meta description. The counters turn the warnings on at about 60 and 160 characters.
- Add the canonical URL (the address you want indexed) and your site name and language.
- For social sharing, add a 1200 × 630 px image URL and a short image description, and choose the card type.
- Copy the generated code into the <head> of your page, or download it. Use the SERP preview tool to check the exact pixel width in Google.
Examples
Special characters are escaped
Title: Tom & "Jerry"
<title>Tom & "Jerry"</title>
An unescaped quote would end the content="…" attribute early and break the tag.
Language to og:locale
Language: zh-CN
<meta property="og:locale" content="zh_CN">
Open Graph uses an underscore, unlike the HTML lang attribute.
Robots only when needed
Allow indexing: off
<meta name="robots" content="noindex, follow">
With indexing and following allowed, no robots tag is emitted, because that is already the default.
Which meta tags actually matter for SEO
- Title: a confirmed ranking signal and the main element people click. Put the most important words first and keep each page's title unique.
- Meta description: not a ranking factor, but a good one raises click-through rate. Google rewrites it when it judges another passage more relevant to the query.
- Canonical: consolidates duplicates such as URLs with tracking parameters into one preferred address. It is a strong hint, not a command.
- Robots: noindex removes a page from results; nofollow tells crawlers not to follow its links. Do not block a noindex page in robots.txt, or crawlers will never see the tag.
- The meta keywords tag is ignored by Google and Bing and is not generated here.
Open Graph and Twitter cards
Open Graph was created by Facebook and is now read by almost every platform that shows link previews, including LinkedIn, Slack, Discord, WhatsApp and Telegram. X reads its own twitter: tags first and falls back to Open Graph, so only the card type and account need separate tags.
Use an absolute https:// image URL. Networks cache previews, so after changing tags use their debugging tools (for example the Facebook Sharing Debugger or LinkedIn Post Inspector) to refresh the card.
Frequently asked questions
Everything you need to know about this tool and data security.
How long should a title and meta description be?
Google truncates by pixel width, roughly 50–60 characters for titles and 150–160 for descriptions on desktop. Shorter is safer on mobile. Chinese, Japanese and Korean characters are wider, so aim for about half as many.
Do I need both Open Graph and Twitter tags?
X falls back to og:title, og:description and og:image when its own tags are missing, so the Open Graph set plus twitter:card is enough. That is what this generator outputs.
Where exactly do I paste the code?
Inside the <head> element of the page, before the closing </head>. In WordPress, use your SEO plugin's fields instead of pasting, so tags are not duplicated.
Why does Google show a different title than mine?
Google rewrites titles that are very long, stuffed with keywords, identical across pages or that do not match the content. A concise, specific title that matches the main heading is rewritten least often.
Is my data safe when using this tool?
Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.
Related Tools
Preview how your title and meta description look in Google search results on desktop and mobile, measured in pixels.
Generate JSON-LD structured data for articles, products, FAQs, breadcrumbs, organizations and local businesses.
Turn titles in any language into clean, SEO-friendly URL slugs, with transliteration for accents, Cyrillic, Greek, Korean, Japanese kana and Chinese pinyin.
Featured Projects tech-fun.net
Explore more AI & productivity tools
Nihongo GameBox
Master Japanese typing, Kana, and JLPT N5–N1 vocabulary through interactive retro arcade games.
ResumeGPT
Tailors CVs and cover letters to every job opportunity with a multi-agent LLM pipeline, job tracking, and scheduled discovery.
CollectMind
Turns your bookmarks into a searchable AI knowledge base — entirely on-device, powered by Chrome's built-in Gemini Nano.