Skip to content

Meta tag generator

Title, description, canonical, robots and social tags, ready to paste into <head>.

Updated

Search
0 characters · common guidance 50–60
0 characters · common guidance 120–160
Indexing
Links
Social sharing
1200 × 630 pixels is the size Facebook recommends.
Browser
  • Warning: Add a title: every page needs one.
  • Warning: Add a description. Without one, Google picks text from the page for the snippet.
  • Warning: Add an image URL: a large image card has nothing to show without one.

No robots tag is needed: index, follow is what search engines assume without one.

How to generate meta tags

  1. Write the page title and description. The counts under each box compare them with common guidance.
  2. Add the page's canonical URL, the full address you want search engines to treat as the original.
  3. Choose whether search engines may index the page and follow its links.
  4. Add a share image URL and alt text for link previews, and pick the X card type.
  5. Fix anything marked under Checks, then copy the HTML and paste it inside the page's <head>.

What each tag does

TagWhat it's forCommon guidance
<title>The browser tab, and usually the title of the search resultAbout 50–60 characters; Google cuts by width, around 600 pixels
meta descriptionOften used as the snippet under the resultAbout 120–160 characters; no limit is set
meta robotsAsks search engines not to index the page or follow its linksLeave it out for index, follow
link rel="canonical"Names the preferred URL when the same content has severalA full, absolute URL
og:title, og:description, og:image, og:urlThe card shown when the link is shared on Facebook, LinkedIn, WhatsApp, Slack and othersImage 1200 × 630 pixels
twitter:cardChooses a small or large image card on X; other X tags fall back to Open Graphsummary_large_image for a wide image
meta viewportMakes the page fit phone screenswidth=device-width, initial-scale=1
meta theme-colorTints the browser's toolbar on some phonesYour brand colour

The length figures are common guidance, not rules. Google sets no limit on titles or descriptions; it truncates them to fit the screen, and may show a different title or snippet if it judges another one describes the page better for a search.

Tags you can skip

  • Meta keywords. Google says it doesn't use the keywords tag for indexing or ranking.
  • Robots index, follow. It's the default when there's no robots tag, so it adds nothing.
  • Separate twitter:title and twitter:description. X falls back to the Open Graph title and description; set them only to say something different on X.

Good titles and descriptions

  • Make each page's title unique and specific: what the page is, then the brand.
  • Put the words people search for near the start, once, written naturally.
  • Describe what someone gets from the page in the description, like a short advert for it.
  • A noindex tag only works if crawlers can fetch the page, so don't also block it in robots.txt.

Sources

Each link was last checked on .

Common uses

  • Launching a new page. Fill in the title, description, canonical URL and share image once, copy the code into the page's head, and the page is ready for search results and shared links.
  • Fixing a bare link preview. If a shared link shows no image or the wrong title, generate the Open Graph and X card tags it's missing and add them to the page.
  • Keeping a draft page out of Google. Set robots to noindex for a thank-you page, a staging copy or a private landing page, and paste the generated robots tag into its head.

Questions

How long should a title and meta description be?

Common guidance is about 50–60 characters for a title and 120–160 for a description, because Google cuts longer ones to fit the screen. It's guidance, not a rule: Google sets no limit, measures in pixels rather than characters, and may show a different snippet anyway.

Do I still need a meta keywords tag?

No. Google says it doesn't use the keywords meta tag at all, for indexing or ranking, so the generator leaves it out. Spend the effort on a clear title and description instead.

Why isn't there a robots tag in my code?

Because index, follow is what search engines assume when there's no robots tag, so it's left out to keep the code short. Choose noindex or nofollow and the tag appears.

What's the difference between the title and og:title?

The <title> is what browsers show in the tab and what Google usually starts from for the result's title. og:title is what Facebook, LinkedIn, WhatsApp and others show on a shared link card. Leave the Open Graph title empty to reuse the page title.

Why must the canonical and image URLs be full URLs?

Google recommends absolute URLs for canonical links, and social networks fetch the og:image on their own servers, where a path like /share.jpg means nothing. Write them with https:// and the domain.

All SEO tools →