Skip to content

Meta Tag Generator - Generate HTML Meta Tags for SEO

Aim for 50 to 60 characters. Google cuts titles at about 600px wide.

Aim for 120 to 155 characters. Line breaks are collapsed into spaces.

Google Preview
https://example.com
Page Title
Page description will appear here.
Facebook Preview
example.com
Page Title
Page description will appear here.
Twitter Preview
Page Title
Page description will appear here.
example.com
HTML Tags
<!-- Primary Meta Tags -->
<meta name="robots" content="index, follow">
<meta name="theme-color" content="#ffffff">

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:locale" content="en_GB">

<!-- Twitter -->
<meta name="twitter:card" content="summary">

Generate meta tags for a page

Fill in the title, description, URL and share image. The Google preview and the Facebook and X cards update as you type, and the counters show when the title or description is getting long. Copy the generated HTML into the page's <head>.

Example output

<title>Blue Mug - Handmade Ceramics</title>
<meta name="description" content="A 350 ml stoneware mug, glazed by hand in Nelson.">
<link rel="canonical" href="https://example.com/mugs/blue/">
<meta name="robots" content="index, follow">
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/mugs/blue/">
<meta property="og:title" content="Blue Mug - Handmade Ceramics">
<meta property="og:image" content="https://example.com/img/blue-mug.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">

A trimmed sample; the tool also writes the matching description, site name, locale and Twitter tags.

About the previews

The Google preview cuts the title at 60 characters and the description at 155. That is close to what Google does, but Google measures pixels, so treat it as a guide. The social previews show the card layout with your image; the real card depends on each platform's cache and cropping. To make the share image itself, try the OG image generator.

Checks before you publish

  • Every page should have its own title and description. Duplicates across a site make results hard to tell apart.
  • The canonical URL should be the exact address you want indexed, including the trailing slash if your site uses one.
  • Leave robots as index, follow unless you mean to hide the page. A leftover noindex from staging is a common reason a site vanishes from Google.

Related Tools

Frequently Asked Questions

Which tags does it generate?
The title and meta description, a canonical link, robots and theme-color; Open Graph tags (og:type, og:url, og:title, og:description, og:image with width, height and alt, og:site_name, og:locale); and Twitter card tags (twitter:card, twitter:url, twitter:title, twitter:description, twitter:image, twitter:image:alt, twitter:site). Empty fields are left out. twitter:card is summary_large_image when you add an image and summary otherwise.
How long should the title be?
Aim for 60 characters or fewer. Google cuts titles by pixel width, around 600 px, not by a fixed count, so a title full of wide letters like W and M is cut sooner than one with narrow ones. The counter turns amber above 60 and red above 70. Put the important words first. Google also rewrites titles it thinks do not match the page, so a clear, accurate title is more likely to be shown as written.
How long should the meta description be?
Around 150 to 155 characters for desktop results; mobile shows a little less. The counter warns above 155 and flags anything over 180. Line breaks are turned into spaces because the attribute must be one line. Google often writes its own snippet from the page text instead, especially when the description does not match the search.
Why add og:image width, height and alt?
Width and height let Facebook and LinkedIn draw the preview card on the very first share, before they have downloaded the image. Use 1200 x 630, which suits every major platform. The image URL must be absolute (starting with https://), or most platforms ignore it. The alt text describes the image for screen reader users.
Do I need both Open Graph and Twitter tags?
Not strictly. X falls back to og:title, og:description and og:image when the twitter: versions are missing, but it does need twitter:card to show a large image. Including both is harmless and covers the few tools that only read one set.
My share preview is stale. How do I refresh it?
Platforms cache what they scraped. Use Facebook's Sharing Debugger and click Scrape Again, or LinkedIn's Post Inspector, to make them fetch the page again. Changing the og:image URL, for example by adding ?v=2, also forces a fresh image.