Meta Tag Generator

Generate the title, meta description, canonical, Open Graph and Twitter Card tags for a page. Fill in the fields and copy ready-to-paste HTML for your <head>.

Copied
Meta tags

What are meta tags?

Meta tags are elements in a page’s <head> that describe the page to software rather than to readers. Search engines use the <title> and the description when building a result; social networks and chat apps use Open Graph protocol tags (og:title, og:image and so on) to draw a link preview; and X (formerly Twitter) reads its own twitter: card tags, falling back to Open Graph values for any it cannot find. The canonical link, defined in RFC 6596, names the preferred URL when the same content is reachable at several addresses.

This generator writes all of those from six fields, ready to paste into a template.

How to use the meta tag generator

  1. Fill in Title, Description and URL. The page starts with sample values; replace them.
  2. Optionally add Image URL, Site name and Twitter @handle.
  3. The Meta tags box updates as you type. Generate rebuilds it on demand, but you do not need to press it.
  4. Click Copy, or the copy icon in the box’s header, and paste the result inside <head>, replacing any title and description your template already outputs.

What each field produces

FieldTags generated
Title<title>, og:title, twitter:title
Descriptionmeta name="description", og:description, twitter:description
URLlink rel="canonical", og:url
Image URLog:image, twitter:image, and switches twitter:card from summary to summary_large_image
Site nameog:site_name
Twitter @handletwitter:site, copied exactly as typed
(always)og:type set to website, and twitter:card

Empty fields are left out. Values are not trimmed or checked, but &, <, > and " are escaped, so quotes in a title cannot break an attribute. The tool does not generate charset, viewport, robots, keywords or image dimension tags; add those yourself if you need them.

Example output

With Title Tea & Biscuits: A "Proper" Guide, an image and the handle @example, the generator produced the following (some lines left out here for brevity):

<title>Tea &amp; Biscuits: A &quot;Proper&quot; Guide</title>
<meta name="description" content="How to brew tea &lt;properly&gt; and pick biscuits.">
<link rel="canonical" href="https://example.com/tea/">

<!-- Open Graph -->
<meta property="og:title" content="Tea &amp; Biscuits: A &quot;Proper&quot; Guide">
<meta property="og:image" content="https://example.com/img/tea.jpg">
<meta property="og:type" content="website">

<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@example">

The entities are correct: browsers and crawlers decode &amp; back to & before showing the text.

Common problems and fixes

SymptomCauseFix
The shared link shows no imageThe image URL is relative, blocked, behind a login or too small.Use an absolute https:// URL to a public image. Meta recommends at least 1200 × 630 pixels.
An old title or image keeps appearingPlatforms cache previews when a URL is first shared.Ask the platform to re-fetch the page with its sharing debugger, or wait for the cache to expire.
X shows a small cardNo Image URL was entered, so twitter:card is summary.Add an image to get summary_large_image.
Two titles or descriptions in the page sourceYour CMS or theme already writes them.Remove the template’s tags or switch them off in its SEO settings.
twitter:site has no @The handle is copied exactly as typed.Type it with the @, as in @example.

Writing titles and descriptions that work

Frequently asked questions

Do meta tags improve search rankings?

The title helps search engines understand the page. The description is not a ranking factor in Google, but it can become the snippet people read before clicking. Open Graph and card tags affect link previews, not rankings.

Why does Google show a different description from mine?

Google builds snippets mainly from the page content and may use the meta description when it judges that it describes the page more accurately for that search. A specific, accurate description is more likely to be chosen.

Do I need both Open Graph and Twitter tags?

Strictly, X can fall back to Open Graph for the title, description and image, but it needs twitter:card to choose a layout. The generator writes both sets so each platform finds what it looks for.

Should I add a keywords meta tag?

Google has stated that it does not use the keywords meta tag in web search, which is why this generator leaves it out.

When should og:type be something other than website?

The Open Graph protocol defines other types such as article, profile and video.movie, with extra properties of their own. For a blog post, change it to article after pasting.

Is what I type stored or sent anywhere?

No. The tags are assembled in your browser and nothing you type is saved or uploaded by the tool.

Related tools