SEO & Webmaster

Meta Tag Generator

Generate SEO meta tags, Open Graph and Twitter card tags for your page, with length checks and a social preview.

34 / 60
132 / 160

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.

Paste into <head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Handmade Ceramic Mugs | Clay &amp; 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 &amp; 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 &amp; 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)

Three blue ceramic mugs on a wooden table
example.com
Handmade Ceramic Mugs | Clay & Co.
Shop small-batch stoneware mugs, glazed by hand in our Portland studio. Free shipping on orders over $50 and a 30-day return policy.

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

  1. Enter the page title and meta description. The counters turn the warnings on at about 60 and 160 characters.
  2. Add the canonical URL (the address you want indexed) and your site name and language.
  3. For social sharing, add a 1200 × 630 px image URL and a short image description, and choose the card type.
  4. 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

Input
Title: Tom & "Jerry"
Result
<title>Tom &amp; &quot;Jerry&quot;</title>

An unescaped quote would end the content="…" attribute early and break the tag.

Language to og:locale

Input
Language: zh-CN
Result
<meta property="og:locale" content="zh_CN">

Open Graph uses an underscore, unlike the HTML lang attribute.

Robots only when needed

Input
Allow indexing: off
Result
<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.