Skip to content

Meta tag generator with a SERP preview, for English and Arabic pages

Write the tags that decide how a page looks in Google and in shared links: the title, the meta description, the canonical URL, robots rules, the mobile viewport, Open Graph and X/Twitter cards. The preview shows the result as it would roughly appear on desktop or a phone, right to left for Arabic, and the checks measure your title and description in pixels, the way Google cuts them.

Quick answer

Type the page title and meta description, add the canonical URL and a share image, and choose the robots options. The preview shows how the result may look on desktop or mobile, and the meters warn when the title passes about 580 px or the description about 920 px. Press "Copy all" and paste the tags into the head section of the page.

Runs in your browser

Try an example:

Search result tags

0 px of about 580 px on desktop · 0 characters

0 px of about 920 px on desktop · 0 characters

Robots

Social sharing (Open Graph and X/Twitter)

Have the same page in English and Arabic? Link the versions with hreflang tags (link rel="alternate" hreflang="ar") on every version, each pointing to all the others and to itself, plus an x-default. They are not part of this generator because each language version needs its own set.

SERP preview

example.comexample.com

Your page title appears here

Your meta description appears here. Write one or two sentences that tell searchers what the page gives them.

Approximation of a desktop Google result: the title is measured in Arial 20px and cut at about 580 px, the description in Arial 14px at about 920 px. Google decides the real cut-off and may rewrite either line.

Checks

  • Error: Add a page title. It is the blue headline of your search result.
  • Warning: Add a meta description. Without one, Google picks text from the page.
  • Tip: No canonical URL. Add the page's preferred address if the same content can be reached at more than one URL.
  • Tip: No share image. Links shared on WhatsApp, LinkedIn, Facebook and X look better with one (1200 × 630 px is a safe size).

Your meta tags

Paste these lines inside the head section of the page. Quotes, ampersands and angle brackets are escaped for you; Arabic stays as UTF-8 text.

How to use the Meta Tag Generator

  1. Type the page title and the meta description. The meters under each box show the width in pixels.
  2. Add the canonical URL, the site name and, for shared links, a share image of about 1200 × 630 px.
  3. Leave index and follow ticked unless the page should stay out of search results.
  4. Check the preview on desktop and mobile, fix any warnings, then press "Copy all" and paste the tags inside <head>.

Why Google cuts titles by pixels, not characters

Search results have a fixed width, so what fits depends on the letters you use: "WWW" takes far more room than "iii". A character count is only a rough guide. This tool measures your text with your browser's canvas in Arial at 20 px for the title and 14 px for the description, the sizes desktop results have used for years, and compares it with about 580 px for titles and about 920 px for descriptions. Those limits are approximate and change with Google's design. Google may also rewrite a title or pick another snippet from the page when it thinks it matches the search better, so treat a green meter as "likely to show in full", not a promise.

SERP preview for Arabic pages, right to left

When the title is Arabic, the preview switches to right-to-left, as an Arabic result does: the site name and title are aligned to the right and an Arabic title is cut on its left side. Arabic letters join and change shape, so their width cannot be guessed from the number of characters; measuring them is the only reliable check. Arabic text stays as plain UTF-8 in the code, which is what browsers and search engines expect, and the checks remind you to set og:locale to an Arabic value and to mark the page with lang="ar" and dir="rtl".

What each tag does

The title tag is the headline of the result and the tab name. The meta description is a suggestion for the text under it. The canonical link tells search engines which address is the main one when the same content is reachable at several URLs, for example with tracking parameters. The robots tag can keep a page out of the index (noindex), stop link following (nofollow), or limit snippets. The viewport tag makes the page fit phone screens. Open Graph tags (og:title, og:description, og:image, og:url) control the card shown when the link is shared on WhatsApp, Facebook or LinkedIn, and twitter:card tags do the same on X.

Checks that catch common mistakes

Beyond length, the tool warns when the title and description are identical, when a word is repeated by accident, when the site name appears twice in the title, and when the canonical or share image URL is relative or carries a # fragment, which search engines ignore. It flags noindex and nosnippet because they are easy to leave on by mistake after a staging site goes live. Every value is escaped, so quotes and ampersands in a title such as Tom's "Best" Deals cannot break the HTML. For structured data, use the schema markup generator; for clean URLs, the slug generator.

Frequently asked questions

What is the best length for a meta title?

Aim for a title under about 580 pixels wide on desktop, which is often 50 to 60 characters in English. Put the main words first, because Google cuts the end.

Is this a SERP preview tool as well as a meta tag generator?

Yes. The SERP preview shows the title, URL and description roughly as a desktop or mobile Google result, right to left for Arabic, while the generator writes the tags.

Why does Google show a different title or description from mine?

Google can rewrite titles and choose another snippet from the page when it judges that text matches the search better. Clear, accurate tags make that less likely.

Do I need both Open Graph and Twitter tags?

X reads Open Graph tags when its own are missing, but it needs twitter:card to choose the card size. This tool writes both so every app gets what it looks for.

Where do I paste the generated meta tags?

Inside the <head> section of the page's HTML, once per page. In a CMS, use its SEO fields or header settings instead of pasting duplicates.