Skip to main content
ponderloop

Meta Tag Generator

For the example page below, the generator writes 22 tags: its title is 43 characters and about 433 px wide (likely to fit), and its description is 137 characters, inside the usual range. Type your own title, description, canonical URL and image and it writes a ready-to-paste head snippet with title, description, canonical, robots, viewport, Open Graph and X card tags, escaped correctly, while it checks lengths, URLs and duplicates as you type. Nothing is fetched or uploaded: the search and social previews are drawn from your text alone.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

Describe the page

Stays in your browser

Replace the example with your page. The snippet, checks and previews update as you type.

Page
Sharing image

The width and height are optional: they write og:image:width and og:image:height and give the aspect ratio. The image is never downloaded.

Search engine directives (robots)
Browser and X card

Your head snippet

Paste it inside the <head> element, near the top. Text is HTML-escaped for you.

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Handmade Ceramic Mugs &amp; Bowls | Clay Harbor</title>
<meta name="description" content="Small-batch stoneware mugs, bowls and plates, thrown by hand and glazed in our studio. Free shipping over $50 and returns within 30 days.">
<link rel="canonical" href="https://www.example.com/shop/ceramic-mugs/">
<meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large">
<meta name="theme-color" content="#f4efe6">
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:title" content="Handmade Ceramic Mugs &amp; Bowls | Clay Harbor">
<meta property="og:description" content="Small-batch stoneware mugs, bowls and plates, thrown by hand and glazed in our studio. Free shipping over $50 and returns within 30 days.">
<meta property="og:url" content="https://www.example.com/shop/ceramic-mugs/">
<meta property="og:site_name" content="Clay Harbor">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://www.example.com/images/ceramic-mugs-1200x630.jpg">
<meta property="og:image:alt" content="Three speckled white stoneware mugs on a wooden shelf">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<!-- X (Twitter) card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Handmade Ceramic Mugs &amp; Bowls | Clay Harbor">
<meta name="twitter:description" content="Small-batch stoneware mugs, bowls and plates, thrown by hand and glazed in our studio. Free shipping over $50 and returns within 30 days.">
<meta name="twitter:image" content="https://www.example.com/images/ceramic-mugs-1200x630.jpg">
<meta name="twitter:image:alt" content="Three speckled white stoneware mugs on a wooden shelf">

The language belongs on the opening tag of the page: <html lang="en-US">

Title characters
43
Title width, estimated (px)
433
Description characters
137
Tags written
22

Checks

0 problems, 0 warnings, 0 notes

  • OKTitle: 43 characters, about 433 px wide (likely to fit).
  • OKDescription: 137 characters, inside the 70 to 160 range this tool checks.
  • OKImage 1200 × 630 is 40:21 (1.905:1): the ratio most often recommended for link previews (1200 × 630, often rounded to 1.91:1).
  • OKNo problems or warnings from these checks.

Rule of thumb, not a Google rule: page titles are commonly quoted at about 50 to 60 characters (about 600 px wide) and descriptions at about 155 to 160 characters. Search engines choose what to show and often rewrite both, and the pixel widths here are estimates from a standard sans-serif font.

Search result preview

An approximation: real results vary by device, font and query, and search engines may show different text. It is a picture, not a link.

www.example.com › shop › ceramic-mugs

Handmade Ceramic Mugs & Bowls | Clay Harbor

Small-batch stoneware mugs, bowls and plates, thrown by hand and glazed in our studio. Free shipping over $50 and returns within 30 days.

Social card preview

An approximation of an X card: each platform crops and styles cards its own way. The image is not downloaded here.

Image not loadedhttps://www.example.com/images/ceramic-mugs-1200x630.jpgAlt text: Three speckled white stoneware mugs on a wooden shelf

www.example.com

Handmade Ceramic Mugs & Bowls | Clay Harbor

Small-batch stoneware mugs, bowls and plates, thrown by hand and glazed in our studio. Free shipping over $50 and returns within 30 days.

Which tag does what, and who reads it

Each row shows the line this tool writes for the example page. The last column says which kind of program reads the tag.
TagWhat it doesRead byWritten by this tool as
titleThe headline of the page: the clickable title in search results, the browser tab and bookmarks. Search engines may rewrite it.Search engines, browsers, and link previews as a fallback<title>Handmade Ceramic Mugs &amp; Bowls | Clay Harbor</title>
meta descriptionA summary of the page. Search engines may use it as the snippet under the title, but often write their own from the text of the page.Search engines; link previews as a fallback<meta name="description" content="Small-batch stoneware mugs, bowls and plates, thrown by hand and glazed in our studio. Free shipping over $50 and returns within 30 days.">
canonicalNames the preferred address when the same content can be reached at several. Search engines treat it as a strong hint, not a command.Search engines<link rel="canonical" href="https://www.example.com/shop/ceramic-mugs/">
robotsTells crawlers whether to index the page and follow its links, and how much of it to show in results.Search engines that support the directives (Google documents the ones used here)<meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large">
viewportMakes the page as wide as the device screen, so phones do not draw a shrunken desktop layout.Mobile browsers<meta name="viewport" content="width=device-width, initial-scale=1">
theme-colorSuggests a color for the browser toolbar or tab strip.Some mobile browsers<meta name="theme-color" content="#f4efe6">
og:titleThe headline of the link preview when the page is shared. Falls back to the title when missing on many platforms.Social networks and chat apps that build link previews<meta property="og:title" content="Handmade Ceramic Mugs &amp; Bowls | Clay Harbor">
og:descriptionThe short text under the headline of a link preview.Social networks and chat apps that build link previews<meta property="og:description" content="Small-batch stoneware mugs, bowls and plates, thrown by hand and glazed in our studio. Free shipping over $50 and returns within 30 days.">
og:imageThe picture of the link preview. It must be a full, public address.Social networks and chat apps that build link previews<meta property="og:image" content="https://www.example.com/images/ceramic-mugs-1200x630.jpg">
og:image:altDescribes the preview picture for people who cannot see it.Platforms that support image descriptions in previews<meta property="og:image:alt" content="Three speckled white stoneware mugs on a wooden shelf">
og:urlThe address the shared link should count as. Use the same value as the canonical URL.Social networks and chat apps that build link previews<meta property="og:url" content="https://www.example.com/shop/ceramic-mugs/">
og:typeThe kind of object: website for most pages, article for dated posts.Social networks and chat apps that build link previews<meta property="og:type" content="website">
twitter:cardChooses the card layout on X: summary (small square picture) or summary_large_image (wide picture).X<meta name="twitter:card" content="summary_large_image">
twitter:imageThe picture of the X card. X reads the og: tags when a twitter: tag is missing, so this one only matters when the pictures should differ.X<meta name="twitter:image" content="https://www.example.com/images/ceramic-mugs-1200x630.jpg">
article:published_timeWhen an article first appeared, as an ISO 8601 date or date and time. Only written for the article page type.Platforms that understand og:type article<meta property="article:published_time" content="2026-10-12T08:30:00+00:00">

Recommended og:image sizes and their aspect ratios

Each ratio is computed from the pixel size. 1200 × 630 is 40:21, which is 1.905:1 and is often rounded to 1.91:1; the last column compares every size with it.
Size (px)Aspect ratioCompared with 1200 × 630Used for
1200 × 63040:21 (1.905:1)Same shapeThe size most guides recommend for a link-preview image (Open Graph); also fine for the X large card, which crops it slightly.
1200 × 6002:1 (2.000:1)5.0% widerThe 2:1 shape X describes for the summary_large_image card.
600 × 31540:21 (1.905:1)Same shapeThe same shape at half the size. Often cited as the smallest that still gets the large layout on Facebook-style previews.
300 × 157300:157 (1.911:1)0.3% widerThe smallest size X lists for large cards. Looks soft on high-density screens.
1200 × 12001:1 (1.000:1)47.5% narrowerSquare: suits the X summary card and chat apps that crop to a square.
144 × 1441:1 (1.000:1)47.5% narrowerThe smallest size X lists for summary cards.

Title and description length: what the checks say about sample text

Counts are computed by the tool. Widths are estimates at a 20 px sans-serif font; the 600 px and 50 to 60 character figures are commonly quoted rules of thumb, not Google limits.
SampleTextCharactersEstimated widthCheck result
Title: very shortHome453 pxshort, with room to spare
Title: the example titleHandmade Ceramic Mugs & Bowls | Clay Harbor43433 pxlikely to fit
Title: long, mixed caseThe Complete Beginner Guide to Throwing Stoneware Mugs on a Pottery Wheel73711 pxlikely to be shortened
Title: all capitals (wider letters)SUMMER SALE: MUGS, BOWLS AND PLATES WITH FREE SHIPPING54647 pxlikely to be shortened
Title: narrow lettersIllinois: little millilitre lilies34219 pxshort, with room to spare
Description: very shortHandmade mugs.14not measuredShort
Description: the example descriptionSmall-batch stoneware mugs, bowls and plates, thrown by hand and glazed in our studio. Free shipping over $50 and returns within 30 days.137not measuredIn range
Description: longSmall-batch stoneware mugs, bowls and plates, thrown by hand and glazed in our studio in small runs, with free shipping over $50, a 30-day return window and a repair service for chips.184not measuredLong

Robots directives this tool can write

The directives Google documents for the robots meta tag that this tool supports. The middle column is what the generator writes when only that option is set.
DirectiveWritten asEffect
index, followindex, followThe default. Writing it changes nothing; it only states the intent.
noindexnoindex, followDo not show the page in search results.
nofollowindex, nofollowDo not follow the links on this page.
nosnippetindex, follow, nosnippetDo not show a text snippet or video preview for the page.
max-snippetindex, follow, max-snippet:160Use at most that many characters for the text snippet. 0 means none and -1 means no limit.
max-image-previewindex, follow, max-image-preview:largeHow large an image preview may be: none, standard or large.
max-video-previewindex, follow, max-video-preview:-1How many seconds of a video preview may be shown. -1 means no limit.
noimageindexindex, follow, noimageindexDo not index the images on this page.
notranslateindex, follow, notranslateDo not offer a translation of the page in results.

Eight worked examples: what the checks say

Each row changes the example page in one way and shows what the tool reports (only problems and warnings), or the escaped lines it writes.
ScenarioWhat is enteredWhat the tool says
Nothing typed for title and descriptionEmpty title, empty descriptionNo page title. Search results and browser tabs would fall back to the address or a guess. No meta description. Search engines then build the snippet from text on the page, which may read less well.
Description copied from the titleDescription = the titleDescription: 43 characters is short (under 70). There is room to say more. The title and the description look nearly identical. Use the description to add something the title does not say.
Relative image URL/images/mugs.jpgThe image URL is relative. Social platforms need the full address, starting with https://.
Pages still on httphttp:// canonical and imageThe canonical URL starts with http://. Use https:// if the page is served over HTTPS. The image URL starts with http://. Use https:// so the picture is not blocked or flagged as insecure.
Title in wide capitalsSUMMER SALE: MUGS, BOWLS AND PLATES WITH FREE SHIPPINGTitle: 54 characters, about 647 px wide (likely to be shortened).
A very short descriptionHandmade mugs.Description: 14 characters is short (under 70). There is room to say more.
A description that runs onThe example description written twiceDescription: 275 characters is long (over 160). The end is likely to be cut off in results.
Quotes, ampersands and angle bracketsTitle: Mugs & "Bowls" <Sale>, Chef's Pick<title>Mugs &amp; "Bowls" &lt;Sale&gt;, Chef's Pick</title> <meta name="description" content="5 &gt; 3 &amp; &quot;quotes&quot; stay intact">

How to generate meta tags for a page

  1. Write the title and description. Type the page title and a one or two sentence description. Watch the counts and the checks: they flag text that is empty, very short, very long or the same in both boxes.
  2. Add the canonical URL and site name. Paste the full https:// address you want search engines and social platforms to treat as the page. The same address is written to og:url.
  3. Add the sharing image. Enter a full https:// image address, a short description of the picture and, if you know them, its width and height. Pick the X card type that matches the picture.
  4. Set the robots directives. Leave index and follow for a normal page, or choose noindex or nofollow. Add the preview limits only if you need them.
  5. Copy the snippet. Press Copy snippet and paste it inside the head element of the page, near the top. Put the language on the html tag as shown under the snippet.

Frequently asked questions

How long should a title tag be?
A common rule of thumb is about 50 to 60 characters, or about 600 px wide, because longer titles are often shortened in search results. That is advice from SEO practice, not a Google rule: Google decides what to show and may rewrite the title. This tool counts characters and estimates the width so you can see both.
How long should a meta description be?
Guides usually say about 155 to 160 characters, and this tool warns above 160 and below 70. These are rules of thumb too. Search engines may show a different part of your page instead, and how much fits depends on the device.
Are 600 px and 160 characters official limits?
No. They are figures people commonly quote after measuring how results were cut off at some time on some devices. No search engine documents a fixed pixel or character limit for titles or descriptions, and they can change without notice. The checks here are a guide, not a guarantee.
Does Google use the meta description?
It may. Google says snippets are generated mostly from the content of the page, and that it sometimes uses the meta description when that describes the page better than the page text. So a good description helps, but it is not a command, and a missing one is not an error.
What is the best og:image size?
1200 × 630 pixels is the size most guides recommend. Its ratio is 40:21, which is 1.905:1, often rounded to 1.91:1. X describes 2:1 for large cards, so a 1200 × 630 picture is cropped slightly there. Keep the important content in the middle and use a file well under a few megabytes.
Why must og:image be a full https address?
The crawler that builds the preview fetches the picture from its own servers, so it has no page address to resolve a relative path against, and it may refuse pictures served over plain http. Write the full address, starting with https://, and make sure the file is public.
Do I need both Open Graph and X card tags?
Open Graph tags are read by most link-preview systems. X reads its own twitter: tags first and falls back to the og: tags when one is missing, so a page with complete og: tags plus twitter:card works. This tool writes both so the card type is explicit and the two can differ.
How are quotes, ampersands and angle brackets handled?
Text is cleaned (line breaks and runs of spaces become one space) and then escaped for where it lands: & becomes &amp;, " becomes &quot;, and < and > become &lt; and &gt; inside attributes; the title element escapes &, < and >. Apostrophes and non-English letters are written as they are, which is valid because the snippet declares UTF-8. A browser reads the escaped text back as exactly what you typed.
Should the canonical URL match og:url?
Yes, in almost every case. The canonical URL tells search engines which address is the main one, and og:url tells social platforms which address a share should count toward. This tool writes the same value to both, so a share of a tracked link still points at the clean address.
What is the difference between noindex and robots.txt?
A noindex directive is read from the page, so the page must be crawlable for it to work, and it asks the engine to keep the page out of results. A robots.txt rule stops crawling but does not by itself remove a known address from results. Do not block a page in robots.txt if you rely on its noindex tag being seen.
Do meta keywords still matter?
Google has said it does not use the keywords meta tag for ranking, and this tool does not write one. Spend the effort on the title, the description and the page itself.

How it works

The snippet is built from your fields by a plain function: text is cleaned and escaped, tags with empty values are left out, and the robots directives are written in a fixed order (index or noindex, follow or nofollow, then the preview limits, noimageindex and notranslate). Characters are counted as Unicode code points. Title width is estimated by adding up the advance widths of Helvetica (Arial has the same ones) at a 20 px size, with accented letters counted as their base letter, East Asian characters and emoji as one em, and other characters as an average letter; it is an approximation, because real results use other fonts and layouts. The length thresholds (50 to 60 characters or about 600 px for titles, 70 to 160 characters for descriptions) are rules of thumb from SEO practice, not limits published by a search engine. The search result preview cuts the title where the estimate passes the limit and the description after about 160 characters, and the social card preview is a labelled placeholder: neither is a link, and the image is never downloaded, because this tool makes no network requests. The robots directives are the ones Google documents for the robots meta tag. The title and description duplicate check compares words, ignoring case and punctuation.

Sources

More: Web, URLs, images and networkAll developer toolsAll toolsHome & DIY calculators