SEO Meta Tag Generator

Fill in a form to get a ready-to-paste head block: title, description, canonical, robots, Open Graph and Twitter card tags, properly escaped.

The interactive tool loads here when JavaScript runs.

About this tool

What is the SEO Meta Tag Generator?

The SEO Meta Tag Generator turns a short form into the HTML you paste into a page's head: charset and viewport, the title element, meta description, optional keywords and author, a robots meta tag, a canonical link, an Open Graph block and a Twitter (X) card block. Copy HTML puts it on the clipboard and Download saves it as meta-tags.html.

Values are HTML-escaped, so a description containing quotes, an ampersand or angle brackets produces valid attributes instead of a broken tag. Empty OG Title and OG Description fields fall back to the main title and description, and the Twitter card reuses the same title, description and image.

Everything runs in your browser. The title and description boxes take text of any length and count characters against the recommended 60 and 160. The count turns amber as you get close, and red with a written warning once you go over, so you can see how much a search result may cut off. The Language choice is written as a reminder to set lang on the html element, because there is no standard language meta tag.

  • Title, description, canonical and robots tags
  • Open Graph and Twitter (X) card blocks that can be toggled
  • HTML escaping of quotes, ampersands and angle brackets
  • Character counters for title and description
  • Copy to clipboard or download as an HTML file; runs locally
Read the guide: Meta Tags That Still Matter: Titles, Descriptions and Open Graph

Updated

How to use the SEO Meta Tag Generator

  1. Fill in Title Tag and Meta Description under Basic Meta Information. Add a Canonical URL if the page can be reached at more than one address.
  2. Choose Robots (index,follow is the default) and the page Language and Charset.
  3. Under Social Media Tags, keep or untick Include Open Graph tags and Include Twitter Cards, then add an OG Image URL, OG URL and type. Leave OG Title and OG Description empty to reuse the main ones.
  4. Click Generate Meta Tags, then Copy HTML or Download, and paste the block inside your page's head element.

Worked examples

Escaping quotes and ampersands

Input

Title: Tom's "Best" Pizza & Pasta

Output

<title>Tom&#39;s &quot;Best&quot; Pizza &amp; Pasta</title>
<meta property="og:title" content="Tom&#39;s &quot;Best&quot; Pizza &amp; Pasta">

Without escaping, the double quotes would end the content attribute early and the rest of the title would be lost.

Twitter tags reuse the Open Graph values

Input

OG Image URL https://example.com/card.png, Twitter Card: Summary Large Image

Output

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://example.com/card.png">

X documents its card tags with the name attribute, so that is what the generator writes.

Background and insight

The title element and meta description date from the earliest HTML specifications and are still the two tags that most affect how a result looks. Google uses the title element as its main source for the title link but may rewrite it; the description becomes the snippet when it matches the query better than text on the page. Neither tag is a strong ranking factor by itself, but both decide whether someone clicks.

Several tags people still add are ignored. Google stopped using meta keywords for web ranking in 2009, and a meta name="language" tag has never been standard (search engines read the html lang attribute, hreflang and the content itself). They are harmless, but they are not where effort pays off.

Open Graph (ogp.me, 2010) and X cards control link previews in social apps and chat. The canonical link, defined in RFC 6596, tells search engines which URL should represent duplicate or parameterised versions of a page. Robots meta values such as noindex, follow are directives the crawler obeys once it fetches the page; a page blocked in robots.txt is never fetched, so its noindex is never seen.

Common use cases

  • Static sites and landing pages

    Produce a correct head block for a hand-written HTML page in a minute.

  • Templating a CMS

    Generate a reference block, then replace the values with template variables.

  • Fixing a broken share card

    Rebuild the Open Graph and Twitter tags with an absolute image URL.

  • Keeping a page out of search

    Emit noindex,follow for thank-you pages or internal search results.

Tips and limitations

  • Write a unique title and description for every page. Duplicate titles across a site are one of the main reasons Google rewrites them.
  • Use absolute URLs for canonical, og:url and og:image. Relative values are a common reason link previews break.
  • The keywords field is optional and ignored by Google. Leave it empty unless an internal search tool reads it.
  • Do not combine noindex with a robots.txt Disallow for the same page; the crawler must fetch the page to see noindex.
  • Set the language on the root element, for example <html lang="en">, rather than with a meta tag.

Sources and further reading

Frequently asked questions

What meta tags does a web page actually need for SEO?

A unique title element and a meta description cover most of it, plus a canonical link if the page has duplicate URLs and a robots meta tag only when you need noindex or nofollow. Add Open Graph and twitter:card tags for link previews. Meta keywords and language tags are ignored by Google.

Should twitter: tags use name or property?

Use name. X documents its card tags as meta name="twitter:card" and so on, and that is what the generator writes. Open Graph tags use property="og:...". Many parsers accept either, but following each specification avoids surprises with stricter crawlers.

Why does the generator escape quotes in my description?

Meta tags put your text inside a double-quoted attribute. A raw double quote would end the attribute early and the rest of the description would be lost or break the tag. Escaping it as &quot; keeps the HTML valid; browsers and crawlers decode it back to a quote.

Is there a meta tag for page language?

There is no standard one. Search engines and screen readers read the lang attribute on the html element, such as <html lang="en">, and hreflang links for translated versions. The generator therefore writes a reminder comment for the html element instead of a meta name="language" tag.

How long should a meta description be?

Around 120 to 160 characters fits in most desktop snippets before truncation. Google may still show a different snippet built from the page if it matches the search better. Write one or two specific sentences that say what the page offers and why it is different.

What is the difference between og:url and the canonical link?

The canonical link tells search engines which URL should be indexed when content is duplicated. og:url tells social platforms which URL to attribute shares and likes to. They should normally hold the same absolute address so engagement and indexing collect on one URL.

Is there an in-depth guide to the SEO Meta Tag Generator?

Yes. “Meta Tags That Still Matter: Titles, Descriptions and Open Graph” covers the background, how it works, common pitfalls and worked examples. Read the full guide.