ToolBook
Support us on Ko-fi
Help us keep this free, forever

Meta Tag Generator

How to use the Meta Tag Generator

Fill the form, watch live previews, copy the <head> block.

  1. Enter title and description

    Type your SEO title (target 50–60 chars) and meta description (target 150–160). The character counters turn red when you cross the limit.

  2. Add the canonical URL and OG image

    Paste the absolute URL of the page (https://...) and the absolute URL of the social-share image. Social platforms cannot resolve relative paths.

  3. Set site name and Twitter handle

    Optional but recommended. Site name appears below the title in Open Graph previews. Twitter handle credits the @account in tweet cards.

  4. Pick your card type

    "Large image" for visual posts; "summary" for text-heavy content where the image is auxiliary.

  5. Copy the meta tags

    Hit "Copy <head>" to put the full meta-tag block on your clipboard. Paste it into your <head> section, swap any placeholder values, and ship.

  6. Validate with official debuggers

    After deploying, use Facebook's Sharing Debugger, LinkedIn's Post Inspector, or Google Rich Results Test to confirm your tags render correctly on each platform.

Frequently asked questions

What's the ideal length for a meta title and description?

Title: 50–60 characters. Description: 150–160 characters. Google truncates roughly at the upper bounds on desktop and lower on mobile. Going over isn't catastrophic. Google just cuts the visible snippet mid-word with an ellipsis, costing you the persuasive last clause that earns the click.

Do I need both Open Graph AND Twitter Card tags?

Yes. Facebook and LinkedIn read Open Graph (og:title, og:description, og:image). X/Twitter prefers its own twitter: tags but falls back to OG if missing. Most CMSes emit both because the redundancy is cheap and the coverage is complete. This generator emits both by default.

What size should the og:image be?

1200 × 630 pixels. That's the format Facebook, LinkedIn, and X all render at full size with their large-image card type. Smaller images render as thumbnails or get cropped. Use a 1.91:1 aspect ratio if you can't hit exactly 1200×630.

What is twitter:card="summary" vs "summary_large_image"?

summary shows a small square thumbnail next to the title and description. summary_large_image shows a wide hero image above the title. Most modern blogs and product pages use summary_large_image for visibility. summary still works for content where a small avatar-style icon is enough.

Does the Twitter handle include the @ sign?

Yes — Twitter's docs say to include the @. The tool adds it automatically if you forget, so "@toolbook" and "toolbook" both produce the same correct output.

Can I preview how the page will look in Slack, WhatsApp, or Discord?

Slack uses Open Graph; WhatsApp uses Open Graph plus a few schema.org fallbacks; Discord uses Open Graph plus oEmbed. The Open Graph preview on this tool is the closest representation of all three.

What does the robots meta tag do, and when should I use noindex?

The robots meta tag tells search engine crawlers whether to index a page and follow its links. Use noindex for pages you never want in search results: staging environments, thank-you pages, filtered product listing variants, and duplicate content pages. Leave it out entirely on pages you want indexed.

Why does every page need a canonical URL?

The canonical tag tells Google which URL is the authoritative version of a page. Without it, the same article reachable at multiple URLs — with and without a trailing slash, with UTM parameters, over HTTP and HTTPS — appears as duplicate content and splits ranking signal across copies. Always use the absolute URL you actually want indexed.

How do I verify my meta tags are working after deploying?

Use the platform's own debugger. Facebook's Sharing Debugger shows exactly how og:image and og:title will render and lets you force a cache refresh. LinkedIn's Post Inspector does the same. Google Search Console shows your actual title and description in the Performance report. All three links are in the Validate section of this tool.

Meta tags, the complete guide

Title length, description length, Open Graph, Twitter Cards, canonical URLs — what each tag does and how to get them right.

Meta tags are how your page introduces itself

Every page on the web has roughly 12 critical meta tags that decide what shows up when the page is shared, indexed, or saved. Get them right and your pages look great in Google, Slack, X, LinkedIn, WhatsApp, and Discord. Get them wrong and the same pages render with no preview, the wrong image, or a truncated headline.

This generator emits the full stack: SEO basics, Open Graph (Facebook / LinkedIn / Slack / WhatsApp), and Twitter Card. Live previews show how each platform will render the page so you tune by sight, not by spec.

The two numbers that matter most

Title: 50 to 60 characters. Google truncates the visible title to roughly 580 pixels of horizontal space on desktop search results. Because typical title-tag characters average 9 to 10 pixels each, 60 characters is the safe ceiling. Mobile is even tighter, with some pages truncating at 50.

Description: 150 to 160 characters. The exact pixel cap is 920 on desktop and ~680 on mobile, which works out to 155–160 characters. Going slightly over isn't catastrophic — Google just cuts the snippet mid-word and appends an ellipsis — but it costs you the persuasive last clause that earns the click.

The progress bars on this tool turn red the instant you cross either limit, so you tune before publishing rather than after.

Open Graph: how the rest of the web reads your page

Facebook invented Open Graph in 2010 as a standard way for any web page to declare a title, description, image, and type. Within five years every major social platform adopted it. Today, when you paste a URL into Slack, LinkedIn, WhatsApp, Discord, or iMessage, what you see is Open Graph — <meta property="og:title">, og:description, og:image, og:url, og:site_name.

The image matters most. 1200 × 630 pixels is the format every platform renders at full size — Facebook, LinkedIn, X, Slack, Discord. Smaller images get cropped or rendered as thumbnails. Maintain a 1.91:1 aspect ratio if you can't hit exactly 1200×630.

Twitter Cards: a small, important sub-standard

X (Twitter) reads Open Graph but prefers its own twitter: namespace when present. The two card types you'll use:

  • summary_large_image shows a wide hero image above the title. Most modern blogs, products, and articles use this.
  • summary shows a small square thumbnail next to the title. Good for content where the image is decorative.

The twitter:site and twitter:creator tags credit the @account that owns the page. Adding them lets X surface "Posted by @account" in the card and hooks the share into the right analytics.

Canonical URLs: the rel that prevents duplicate-content trouble

<link rel="canonical" href="..."> tells search engines "this is the authoritative URL for this content." Without it, the same article reachable at multiple URLs (with and without ?utm_source=..., with and without trailing slash, http and https) appears as duplicate content and splits ranking signal across copies.

Always include a canonical. Always use the absolute URL. Always use the URL you actually want indexed.

What this tool emits, top to bottom

A standard production-grade <head> snippet looks like:

  1. <title> — fundamental SEO tag
  2. <meta name="description"> — SERP snippet
  3. <meta name="author"> — optional but recommended
  4. <link rel="canonical"> — duplicate-content prevention
  5. Open Graph: og:title, og:description, og:type, og:url, og:site_name, og:image, og:locale
  6. Twitter: twitter:card, twitter:site, twitter:creator, twitter:title, twitter:description, twitter:image

That's 12–14 tags depending on which optional fields you fill. The output is HTML you paste straight into your <head> — no transformations needed.

The most common mistake

Relative paths in social-share images. Open Graph crawlers fetch your page, find og:image="/og.png", and have no way to resolve "/og.png" without a base URL. Some platforms attempt to resolve it from the page URL, others give up. The reliable fix is to always use absolute URLs (https://example.com/og.png) for any OG or Twitter image.

The second most common mistake is forgetting to update og:url to the canonical URL of the new page when copy-pasting from another page's <head>. The wrong URL there leads to social shares pointing to the wrong page.

Both mistakes are the kind you spot on the preview before you publish — which is exactly why the previews on this tool exist.