Guide

Title tags, meta descriptions and Open Graph, explained

Reviewed 22 November 2026 · 7 min read · Written and maintained by Toolnexo

The tags in a page's head decide how it appears in search results and how a link looks when someone shares it. They are small, but they are the first thing a person sees before deciding to click. This guide explains each tag, what it influences, and which length rules are real guidelines and which are myths. The meta tag generator on this site writes the code for you, escapes your text so quotes cannot break the HTML, and shows a search preview. It runs in your browser and uploads nothing.

The title tag

The title is the clickable headline in a search result and the text on a browser tab. It is one of the strongest on-page signals, so it should describe the page clearly and put the most important words first. A common guideline is about 60 characters. Search engines actually truncate by pixel width, so a title with narrow letters can fit more and one with wide letters fewer, but staying near 60 keeps most of the text visible.

Google sometimes rewrites titles that it finds too long, too short, keyword-stuffed or not matching the page. A unique, descriptive title for every page lowers the chance of that. Avoid repeating the same title on many pages.

The meta description

The description is the snippet of text under the title. Google has said it is not a ranking factor, but a clear one can make people more likely to click, which is the reason to write it well. Aim for roughly 70 to 160 characters that say what the page offers and why it is worth opening.

Search engines often replace the description with text from the page when they think it matches the query better. That is normal, so treat your description as a good default rather than a guarantee. Write a different one for each page, and avoid quotation marks inside it if you edit the HTML by hand.

Canonical, robots and viewport

The canonical link tells search engines which address is the main one when the same content is reachable at several URLs, for example with tracking parameters. It is a strong hint rather than a command. Use a full address starting with https://, and point every duplicate at the same canonical.

The robots meta tag controls indexing for the page. noindex asks search engines to leave it out of results, and nofollow asks them not to follow its links. The default is index, follow, so the tag is only needed when you change something. For noindex to work the page must remain crawlable, so do not also block it in robots.txt. The viewport tag, width=device-width, initial-scale=1, makes the page scale correctly on phones and belongs on every modern page.

Open Graph and X cards

Open Graph tags control the preview when a link is shared on Facebook, LinkedIn, WhatsApp and many other apps. The main ones are og:title, og:description, og:image, og:url and og:type. X uses its own twitter: tags for cards but falls back to the Open Graph title, description and image when its own are missing, so adding twitter:card to choose the layout is usually enough.

For the image, use about 1200 by 630 pixels, a 1.91 to 1 ratio, as a JPG or PNG hosted at a full public address. Keep important content away from the edges because some apps crop. Without an image, shared links look bare and tend to get fewer clicks.

Common mistakes

  • The same title or description on every page of a site.
  • A title stuffed with keywords instead of describing the page.
  • A relative URL in the canonical or og:image tag instead of a full address.
  • A noindex tag left on after a site launch or redesign.
  • A share image that is tiny, cropped badly, or hosted behind a login.
  • Unescaped quotes or angle brackets in text, which break the tag; the generator escapes these for you.

How to use the output

  • Paste the generated tags inside the head element of the page, before the closing head tag.
  • Write separate values for each page; do not reuse one set across the site.
  • Check the page with a social preview tool after publishing, because apps cache the first version they see.
  • Re-check titles and descriptions in search results a few weeks later to see what Google actually shows.
Tools in this guide

Put it into practice

How this guide is maintained

This page is reviewed when the related tools change. It describes what the published tools actually do: the tools run in your browser tab, so your files stay on your device. If you find something inaccurate, email [email protected] and it will be corrected.

Keep reading

Other guides

All guides →