Skip to content
toolsbox

Meta Tag Generator

Write title, description, Open Graph and Twitter tags with a live SERP preview.

FreeNo sign-up Runs in your browser

What is a meta tag generator?

A meta tag generator builds the HTML tags that sit in the head of a web page and tell search engines and social platforms what the page is, how to display it and whether to index it. Fill in the fields above and the tool outputs a clean, copyable block covering the title tag, meta description, canonical URL, robots directives, Open Graph tags, Twitter card tags and theme-color.

What makes this generator different is the live Google preview. Google does not truncate titles and descriptions by character count; it truncates by pixel width. A desktop title is cut at roughly 580 pixels and a description at around 920 pixels, which is why a 55-character title full of W's and M's can be clipped while a 65-character title of narrow letters fits. The preview measures your text at the font and size Google uses and shows exactly where the ellipsis would fall.

Everything is generated in your browser. Nothing you type is sent to a server, so you can draft tags for an unreleased product page or a client site without it leaving your machine.

How to generate meta tags for a page

  1. 1

    Write the title and description

    Enter a title with the primary keyword near the front and a description that answers the searcher's question and gives a reason to click. Watch the pixel meters rather than the character count, and keep both inside the limit.

  2. 2

    Set the canonical URL

    Enter the absolute, preferred URL for this page, including https and the exact trailing-slash format your site uses. This is the version you want indexed and credited with links.

  3. 3

    Choose robots directives

    Leave index, follow for normal pages. Switch to noindex for thank-you pages, internal search results, staging copies and thin filtered pages; use nofollow only when you do not want any links on the page to pass signals.

  4. 4

    Fill in Open Graph and Twitter fields

    Add a social title, description, a 1200×630 pixel image URL, the content type and your site name, then pick a Twitter card type. Leave social fields blank to fall back to your main title and description.

  5. 5

    Check the SERP preview

    If the title is truncated or the description cuts off mid-sentence, rewrite until the key message sits safely inside the visible width.

  6. 6

    Copy the HTML into your page head

    Click Copy and paste the block inside the head element of your template, or map each value to the matching field in your CMS or SEO plugin.

When to use a meta tag generator

New pages and product launches

Draft and preview tags before a page goes live, so the first impression in search and on social shares is right from the first crawl rather than fixed weeks later.

Rewriting low-CTR titles

Search Console often shows pages with strong impressions and weak click-through. Testing alternative titles in the pixel preview is the fastest way to write a sharper one that is not truncated.

Fixing ugly social shares

A link shared on LinkedIn, Facebook, Slack or WhatsApp without Open Graph tags shows a random image or none at all. Proper og:image and og:title tags control that preview card.

Handling duplicates and parameters

Category filters, tracking parameters and print versions create duplicate URLs. A self-referencing canonical on the main page, and a canonical pointing to it from the variants, consolidates signals.

Meta tag best practices from real SERPs

Titles: Google rewrites a large share of title tags, most often when they are too long, stuffed with keywords or do not match the page's main heading. Keep titles under the 580-pixel limit, put the primary topic first, add a brand at the end only if it fits, and make the title broadly consistent with your H1.

Descriptions: The meta description is not a ranking factor, but it is your ad copy. Google shows it when it matches the query well and otherwise pulls a snippet from the page. Write a specific, benefit-led sentence or two, front-load the important part in case of truncation on mobile, and give every indexable page a unique one.

Open Graph image: Use 1200×630 pixels, a 1.91:1 ratio, under about 5 MB, served from an absolute https URL. Keep text and logos away from the edges, since some platforms crop to a square. Twitter cards: summary_large_image shows a wide image above the link and earns more attention than the small summary thumbnail. X falls back to Open Graph values when twitter-specific tags are missing.

Theme-color sets the browser toolbar color on Android Chrome and some other mobile browsers. It has no SEO effect. Also note that the keywords meta tag has been ignored by Google since 2009, which is why this generator does not include one.

Frequently asked questions

Is this meta tag generator free?

Yes, it is free to use with no account and no limit on how many pages you generate tags for. The tool runs fully in your browser, including the pixel-width SERP preview, and nothing you type is uploaded or stored. You can copy the HTML and use it on personal, client or commercial sites without attribution.

How long should a title tag be?

A title tag should stay under about 580 pixels wide, which usually works out to 50 to 60 characters. Google truncates by pixels, not characters, so wide letters such as W and M use more space than i or l. Use the preview above to confirm the full title is visible, and put the most important words first in case it is cut.

How long should a meta description be?

Aim for a meta description under about 920 pixels on desktop, roughly 150 to 160 characters. Mobile results can show slightly more or less depending on screen width, so place the core message in the first 120 characters. Google may still replace your description with page text if it judges another passage a better match for the query.

What size should an Open Graph image be?

Use 1200×630 pixels for og:image. That 1.91:1 ratio displays correctly on Facebook, LinkedIn, X with summary_large_image, Slack and most messaging apps. Images smaller than 600×315 may be shown as small thumbnails instead. Serve it from an absolute https URL, keep the file reasonably small and avoid placing important text near the edges.

Should every page have a canonical tag?

Yes, a self-referencing canonical on every indexable page is a sensible default. It tells Google which URL you prefer when the same content is reachable through parameters, trailing-slash variants or http and https versions. Note that Google treats the canonical as a strong hint, not a command, so internal links and sitemaps should point to the same URL.

What is the difference between noindex and nofollow?

Noindex keeps a page out of search results; nofollow tells search engines not to pass signals through the links on that page. They are independent. A typical thank-you page uses noindex, follow, so it stays out of the index while its links are still crawled. Do not block a noindexed page in robots.txt, or Google will never see the tag.

Built and reviewed by Umer Anees, SEO consultant.

Related tools

More SEO tools →