Meta Tag Generator with Google and Social Previews

Generate title, meta description, canonical, robots, Open Graph and Twitter card tags with live length meters and search and social previews.

Runs in your browser. Nothing is uploaded.

SEO

Meta Tag Generator

Page

0 characters, about 0 px wide (estimate of 600 px). Empty.

0 characters. Empty.

Absolute URL of the preferred version of this page

Indexing and display

Characters allowed in a text snippet. -1 means no limit, 0 means none

Social sharing

Defaults to the page title

Defaults to the meta description

Absolute URL. 1200 x 630 pixels works for most platforms

Browser and icons

Tints the browser bar on some mobile browsers

180 x 180 pixels

Your tags

Fill in the form and the tags appear here. Turn the viewport and charset tags on or off at any time.

Previews

Search result (illustration)

example.com

Your page title appears here

Your meta description appears here. Google may show different text taken from the page.

Widths are estimated with Arial metrics. Google rewrites titles and snippets when it thinks another text describes the page better, and uses its own fonts and layout.

Social card (Open Graph)

No image set
EXAMPLE.COM
Your page title

Your description appears here.

The image appears only after you type an address. Your browser then requests it from that server, the only request this page ever makes for you; nothing else is fetched or sent.

Example

Input
Title: Handmade Ceramic Mugs | Clay & Co.
Canonical: https://example.com/mugs
Result
<title>Handmade Ceramic Mugs | Clay &amp; Co.</title>
<link rel="canonical" href="https://example.com/mugs">
<meta property="og:url" content="https://example.com/mugs">

What it writes

Fill in the form and the page writes the tags for the head of your HTML: charset and viewport, the title, the meta description, a canonical link, a robots meta tag, theme colours, favicon and manifest links, Open Graph tags for link previews and Twitter card tags. Values are escaped so quotes and ampersands cannot break the markup. Empty fields produce no tag, and Open Graph values default to the page title and description unless you override them. Copy the result or download it as a .html snippet.

The robots tag is written only when it differs from the default. Untick indexing for noindex, untick following for nofollow, and optionally add max-snippet and max-image-preview, which are directives Google documents. A warning reminds you that a page blocked in robots.txt cannot show crawlers its noindex tag, so do not use both on a page you want removed from results.

Titles and descriptions

Google's documentation says a title element should be descriptive and concise, unique per page, free of keyword stuffing, and that the site name can go at the start or end separated by a hyphen, colon or pipe. It also says there is no limit on how long a title can be, but that results are cut off to fit the screen, so the important words should come first. Google may rewrite a title when it judges another text, such as a heading, describes the page better.

The length meters are therefore guides. The title meter estimates pixel width using Arial letter widths against the roughly 600 px desktop width often quoted by SEO tools; that figure is a rule of thumb, not a Google rule, and real results use Google's own fonts. Meta descriptions have no length limit either, snippets are cut to fit, and Google may ignore your text in favour of page content, so the meter marks about 70 to 160 characters as typical rather than required.

Social cards and what to expect

The Open Graph protocol asks for og:title, og:type, og:image and og:url, and an alt text for the image; the tool takes og:url from your canonical URL. Twitter or X reads twitter:card and can fall back to the Open Graph tags for the rest, so the tool writes only the card type, handles and an image alt text when Open Graph is on. A 1200 x 630 pixel image is a common size for large cards.

The social preview shows an image only after you type an address, and then only your browser requests that URL; the page itself fetches nothing and sends nothing. Meta tags help search engines and platforms understand a page, but they do not guarantee rankings, rich results or a particular snippet, and each platform caches previews on its own schedule.

Frequently asked questions

How long should a title tag be?

Google sets no length limit but truncates titles to fit the screen. Roughly 50 to 60 characters, or about 600 pixels, usually shows in full on desktop, so put the key words first. Treat that as a guide rather than a rule.

Does the meta description affect rankings?

Google says it may use the meta description as the snippet when it describes the page better than the page text, and that is about presentation. Do not expect it to change rankings. A clear, unique description can still help people decide to click.

Do I need a meta keywords tag?

No. Google has said it does not use the keywords meta tag, so this tool does not generate one.

What does the canonical tag do?

It tells search engines which URL is the preferred version when several URLs show the same content. It is a strong hint, not a command, and should be an absolute URL in the head. Add a self-referencing canonical to normal pages.

Why does the preview not match what Google or Facebook show?

The previews are illustrations. Google uses its own fonts, may rewrite titles and snippets, and platforms cache link previews, so a changed tag can take time to appear. Use each platform's own debugger for the final check.

Related tools