Toolstia / Meta tag generator

Generate meta tags for a page

Search results and link previews are decided largely by a handful of lines in the head of your HTML: the title, the description, a canonical link, a robots directive and the Open Graph and Twitter card tags. This tool writes those lines for you from five or six fields, so you do not have to remember property names or escape quotation marks by hand.

It is meant for people who hand-code pages, build landing pages in a plain HTML template, or work in a CMS that lets them paste custom head code. As you type, the character counters and the snippet preview show where a title or description is likely to be trimmed. Nothing is sent to a server; the tags are assembled by the page itself as you type.

0 characters. Aim for 60 or fewer.
0 characters. Aim for 120 to 160.

How it works

  1. Type the title and description.
  2. Add the page address and a share image if you have one.
  3. Copy the tags into your page's head section.

Title and description lengths

Search engines show about 60 characters of a title and about 160 of a description, and cut the rest. The counters turn red when you go over. These are guides, not strict rules, because the real limit depends on pixel width.

Open Graph and Twitter tags

Open Graph tags decide the title, text and picture shown when your page is shared on Facebook, WhatsApp, LinkedIn and many chat apps. Twitter card tags do the same for X. With an image the large card is used.

Share image

Use a full web address to a picture about 1200 by 630 pixels. Relative paths do not work for share previews.

The robots tag

Index and follow is the normal choice. Choose noindex for pages you do not want in search results, such as thank-you pages. Special characters in your text are escaped so the HTML stays valid.

What one set of fields turns into

Suppose you enter the title Blue Widget Guide, a one-sentence description, the address https://example.com/widgets/blue/, an image address and a site name. The output has a title element, a description meta tag, a robots tag, a canonical link, og:title, og:description, og:type, og:url, og:image and og:site_name, followed by twitter:card, twitter:title, twitter:description and twitter:image when the Twitter option is ticked.

The same title and description are reused for the Open Graph and Twitter tags. That keeps things consistent, but it also means you cannot give Facebook a different headline from the one Google sees. If you want that, edit the copied lines afterward.

How special characters are handled

Every value is escaped before it goes into the HTML: ampersands become &, double quotes become ", and angle brackets become < and >. So a title typed as Tom & Jerry's "Best" Pizza is written into the attribute as Tom & Jerry's "Best" Pizza, and the quote in the middle can no longer break the attribute early.

Apostrophes are left alone because they are safe inside double-quoted attributes. Do not paste already-escaped text into the fields, or you will end up with double escaping such as &.

How the twitter card type is chosen

If you fill in a share image address, the card type is set to summary_large_image, which shows a wide picture above the text. With no image the type is summary, a small card. The tool decides this for you, so if you want the large card, make sure the image field is filled in with a full address that begins with https://.

What the snippet preview does and does not show

The preview is a rough sketch based on character counts. A title longer than 60 characters is cut to 57 characters plus an ellipsis, and a description longer than 160 is cut to 157 plus an ellipsis. Real search engines trim by pixel width, so a title full of wide letters such as W and M may be cut earlier than one full of narrow letters like i and l.

Search engines also rewrite titles and descriptions when they think another piece of your page answers the query better, so the preview shows what you are offering, not a promise of what will appear.

Tags this tool does not write

The output is limited to title, description, robots, canonical, Open Graph and Twitter tags. It does not add the charset declaration, the viewport tag, hreflang links for translated pages, favicons, or structured data. Most templates already carry the first two, so you normally paste this block next to them rather than replacing them.

Give each page its own title, description and canonical address. Reusing the same description on every page is one of the more common reasons a site's results all look alike.

Pairing noindex with other controls

The robots field offers three choices: index and follow, noindex with follow, and noindex with nofollow. A noindex tag only works if the crawler is allowed to fetch the page and read it. If you also block the same page in robots.txt, the crawler never sees the noindex instruction, and the address can still be listed from links elsewhere. Use one method at a time for a given page.

Questions

Where do I paste the tags?

Between the head tags of your page. In WordPress an SEO plugin usually has fields for the same things.

Is the preview exact?

It is an approximation. Search engines may show different text.

Do meta descriptions affect ranking?

Not directly, but a clear one can make people more likely to click your result.

Is anything uploaded?

No. Your text stays in your browser and is never sent anywhere.

Should the canonical address match the address in the browser bar?

Usually yes. It should be the one preferred version of the page, with the same protocol, the same www choice and the same trailing slash habit your site uses everywhere. A canonical link pointing at a different page tells search engines to treat the two as duplicates, so only do that on purpose.

Why does my share preview not change after I edit the tags?

Platforms such as Facebook and messaging apps keep a saved copy of the preview for a link. After changing the title or image, you may need to wait or use the platform's own refresh or debugging page to fetch the new version.

Do I need both the title tag and the og:title tag?

They serve different readers. The title element is used by browser tabs and search results, while og:title is read by social and chat apps. If og:title is missing, many apps fall back to the title element, but setting both gives you control.

What does the content type option change?

It sets og:type to website, article or product. Website suits home pages and general pages, article suits blog posts and news, and product suits a single item page. It affects how some platforms categorize the link, not how Google ranks the page.

Can I leave the description empty?

Yes. The tool simply skips the description lines. Search engines will then build a snippet from the text on the page, which is sometimes fine, but a written description gives you control over the pitch.