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 browserReplace the example with your page. The snippet, checks and previews update as you type.
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 & 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 & 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 & 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.
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
| Tag | What it does | Read by | Written by this tool as |
|---|---|---|---|
| title | The 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 & Bowls | Clay Harbor</title> |
| meta description | A 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."> |
| canonical | Names 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/"> |
| robots | Tells 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"> |
| viewport | Makes 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-color | Suggests a color for the browser toolbar or tab strip. | Some mobile browsers | <meta name="theme-color" content="#f4efe6"> |
| og:title | The 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 & Bowls | Clay Harbor"> |
| og:description | The 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:image | The 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:alt | Describes 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:url | The 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:type | The 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:card | Chooses 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:image | The 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_time | When 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
| Size (px) | Aspect ratio | Compared with 1200 × 630 | Used for |
|---|---|---|---|
| 1200 × 630 | 40:21 (1.905:1) | Same shape | The size most guides recommend for a link-preview image (Open Graph); also fine for the X large card, which crops it slightly. |
| 1200 × 600 | 2:1 (2.000:1) | 5.0% wider | The 2:1 shape X describes for the summary_large_image card. |
| 600 × 315 | 40:21 (1.905:1) | Same shape | The same shape at half the size. Often cited as the smallest that still gets the large layout on Facebook-style previews. |
| 300 × 157 | 300:157 (1.911:1) | 0.3% wider | The smallest size X lists for large cards. Looks soft on high-density screens. |
| 1200 × 1200 | 1:1 (1.000:1) | 47.5% narrower | Square: suits the X summary card and chat apps that crop to a square. |
| 144 × 144 | 1:1 (1.000:1) | 47.5% narrower | The smallest size X lists for summary cards. |
Title and description length: what the checks say about sample text
| Sample | Text | Characters | Estimated width | Check result |
|---|---|---|---|---|
| Title: very short | Home | 4 | 53 px | short, with room to spare |
| Title: the example title | Handmade Ceramic Mugs & Bowls | Clay Harbor | 43 | 433 px | likely to fit |
| Title: long, mixed case | The Complete Beginner Guide to Throwing Stoneware Mugs on a Pottery Wheel | 73 | 711 px | likely to be shortened |
| Title: all capitals (wider letters) | SUMMER SALE: MUGS, BOWLS AND PLATES WITH FREE SHIPPING | 54 | 647 px | likely to be shortened |
| Title: narrow letters | Illinois: little millilitre lilies | 34 | 219 px | short, with room to spare |
| Description: very short | Handmade mugs. | 14 | not measured | Short |
| Description: the example description | Small-batch stoneware mugs, bowls and plates, thrown by hand and glazed in our studio. Free shipping over $50 and returns within 30 days. | 137 | not measured | In range |
| Description: long | Small-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. | 184 | not measured | Long |
Robots directives this tool can write
| Directive | Written as | Effect |
|---|---|---|
| index, follow | index, follow | The default. Writing it changes nothing; it only states the intent. |
| noindex | noindex, follow | Do not show the page in search results. |
| nofollow | index, nofollow | Do not follow the links on this page. |
| nosnippet | index, follow, nosnippet | Do not show a text snippet or video preview for the page. |
| max-snippet | index, follow, max-snippet:160 | Use at most that many characters for the text snippet. 0 means none and -1 means no limit. |
| max-image-preview | index, follow, max-image-preview:large | How large an image preview may be: none, standard or large. |
| max-video-preview | index, follow, max-video-preview:-1 | How many seconds of a video preview may be shown. -1 means no limit. |
| noimageindex | index, follow, noimageindex | Do not index the images on this page. |
| notranslate | index, follow, notranslate | Do not offer a translation of the page in results. |
Eight worked examples: what the checks say
| Scenario | What is entered | What the tool says |
|---|---|---|
| Nothing typed for title and description | Empty title, empty description | No 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 title | Description = the title | Description: 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.jpg | The image URL is relative. Social platforms need the full address, starting with https://. |
| Pages still on http | http:// canonical and image | The 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 capitals | SUMMER SALE: MUGS, BOWLS AND PLATES WITH FREE SHIPPING | Title: 54 characters, about 647 px wide (likely to be shortened). |
| A very short description | Handmade mugs. | Description: 14 characters is short (under 70). There is room to say more. |
| A description that runs on | The example description written twice | Description: 275 characters is long (over 160). The end is likely to be cut off in results. |
| Quotes, ampersands and angle brackets | Title: Mugs & "Bowls" <Sale>, Chef's Pick | <title>Mugs & "Bowls" <Sale>, Chef's Pick</title> <meta name="description" content="5 > 3 & "quotes" stay intact"> |
How to generate meta tags for a page
- 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.
- 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.
- 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.
- 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.
- 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 &, " becomes ", and < and > become < and > 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
- The Open Graph protocol (og:title, og:type, og:image, og:url, og:description, og:site_name, og:locale)
- Google Search Central: robots meta tag specifications
- Google Search Central: influencing title links in search results
- Google Search Central: control your snippets in search results
- Google Search Central: consolidate duplicate URLs (canonical)
- WHATWG HTML Standard: the meta element
- X developer documentation: Cards (card types, image sizes and fallbacks)
- Adobe Font Metrics for Helvetica (advance widths used for the width estimate)
More free tools
- Robots.txt Generator and TesterBuild a robots.txt with per-crawler rules, wildcards and sitemaps, then test any URL path against it as RFC 9309 says a crawler must. Runs in your browser.
- UTM BuilderAdd utm_source, utm_medium and utm_campaign to any link with correct encoding, check case and spaces, read a tagged URL back, or tag a whole list at once.
- URL Slug GeneratorTurn titles into clean URL slugs: hyphen or underscore, accents to ASCII, optional stop-word removal and a max length. Batch mode warns about duplicates.
- Favicon GeneratorMake a favicon from an image, text or an emoji: PNGs from 16 to 512 px, favicon.ico, an SVG icon, the HTML link tags and a ZIP. Runs in your browser.
- Regex TesterTest JavaScript regular expressions: highlighted matches, capture groups, replacements with $1 or $<name>. Stops runaway patterns. Runs in your browser.
- Chmod CalculatorConvert Unix file permissions between a checkbox grid, octal (755, 4755), ls -l text (rwxr-xr-x) and chmod commands; apply changes like u+x,go-w.
More: Web, URLs, images and networkAll developer toolsAll toolsHome & DIY calculators