Meta tag generator

Write your page title and description, see how they'll look in Google, and copy ready-to-use meta tags for search engines and social media.

Google preview

example.comYour page title appears hereYour meta description appears here. Google may show different text if it thinks another part of the page matches the search better.

Your meta tags

Paste this inside the <head> of your page, replacing any existing title and description tags.

How to use the meta tag generator

  1. Write your page title and meta description. The counters turn green when the length is in the recommended range, amber when it’s short and red when it’s too long.
  2. Add the page URL, site name and a social image to get complete Open Graph tags.
  3. Check the Google preview to see how your page may look in search results.
  4. Click Copy code and paste it into the <head> of your page.

If you use WordPress, an SEO plugin such as Yoast or Rank Math adds these tags for you. Copy your title and description into the plugin’s fields instead of pasting the code.

What each tag does

Tag What it’s for
<title> The clickable headline in search results and the text on the browser tab. One of the strongest on-page SEO signals.
meta description The summary under the title in search results. It doesn’t affect rankings directly, but a good one gets more clicks.
meta robots Tells search engines whether to index the page and follow its links. Leave it out for normal pages.
link rel="canonical" Names the main URL of the page to avoid duplicate content.
og: tags Control the title, description and image shown when the link is shared on Facebook, WhatsApp and LinkedIn.
twitter:card Controls how the link looks on X (Twitter).

Writing a title that gets clicks

  • Put the main keyword near the start, the words people actually type into Google.
  • Make every title unique. Two pages with the same title compete with each other.
  • Add your brand at the end if there’s room, separated by a dash or a vertical bar.
  • Be specific. “Free Image Compressor – Shrink JPG & PNG Online” says more than “Image Tools”.

Writing a good meta description

  • Summarise what the page offers in one or two sentences, in plain language.
  • Include the main keyword. Google shows matching words in bold, which catches the eye.
  • Give a reason to click: free, no sign-up, step-by-step, updated this year (only if true).
  • Avoid quotation marks, which can cut the description short in some places.

Check your social previews

After publishing, paste your URL into Facebook’s Sharing Debugger or LinkedIn’s Post Inspector to see the preview and refresh any old cached version. WhatsApp uses the same Open Graph tags.

Last updated 3 December 2026

Frequently asked questions

How long should a title tag be?

Aim for about 50–60 characters. Google cuts titles by width, roughly 600 pixels, so longer titles end with “…”. Put the most important words first.

How long should a meta description be?

Around 120–160 characters works well. Google often shortens longer descriptions, and sometimes writes its own from the page text if it thinks that matches a search better.

Do meta keywords still matter?

No. Google has ignored the meta keywords tag for many years, so this tool doesn't generate it. Spend the effort on a clear title, description and useful page content instead.

What size should the social image be?

Use 1200 × 630 pixels. That's the size Facebook, LinkedIn, WhatsApp and X use for large link previews. Keep important text away from the edges, as some apps crop the image.

What is a canonical URL?

It tells search engines which address is the main version of a page when the same content can be reached at several URLs, for example with and without tracking codes. Use the page's clean, final URL.