HTML Meta Tag Generator with Google and Share Previews

Fill in a title, a description, and a share image. The head tags build as you type, beside a Google result measured in pixels and the card a shared link gets on Facebook, LinkedIn, or X.

Meta tag form, previews, and generated head code

Empty fields write no tag. Share title and description fall back to the search ones.

1Search result
0 chars, 0 of 600 px
0 chars, 0 of 920 px
2Share card
X card layout
3Head basics
toolexe.comhttps://toolexe.com

Your title shows here

With no description, Google takes a sentence from the page near the words in the query.

Desktop layout. Cut points come from Arial measured in your browser, so treat them as close, not exact.

Head tags

0 tags

Checks

    Load sample fills the form with the head of the Toolexe JSON Beautifier page. The share title differs from the title tag on purpose. Search titles answer a query, feed titles compete with photos and posts, so the two read differently.

    Which head tags still change something

    A head section from 2012 carries a dozen tags nobody reads anymore. Here is what each common tag does today, and what happens on a page without it.

    TagRead byPage without the tag
    <title>Google, Bing, browser tabs, bookmarksGoogle writes a title from the H1 or from link text pointing at the page.
    descriptionGoogle and Bing snippets, chat link previewsThe snippet comes from page text near the query words.
    rel="canonical"Google, BingWith tracking parameters or a www twin, Google picks the URL to index on its own.
    robotsEvery major crawlerDefault is index, follow. The generator writes the tag only for other values.
    viewportMobile browsersPhones render a 980 px desktop layout, zoomed out.
    charsetBrowsersThe browser guesses the encoding. An é turns into é on a wrong guess.
    og:title, og:imageFacebook, LinkedIn, Slack, Discord, WhatsApp, iMessageThe app scrapes the title tag and some image from the page, or shows a bare link.
    twitter:cardXX has no card layout to apply, so the og: tags go unused.
    theme-colorMobile Chrome and Safari, installed web appsThe browser bar keeps its default color.
    keywordsNo major search engineNothing. Google stated in 2009 the tag plays no part in ranking.

    Google cuts titles by pixel width

    A desktop result trims the title near 600 pixels of 20 px Arial. There is no fixed character limit. A capital W is about three times as wide as a lowercase i, so an all-caps title hits the cut in the mid 40s, while mixed case lands somewhere between 55 and 65 characters.

    The meter under the title field measures each keystroke in the same font. Green means the full title shows. Amber means Google adds an ellipsis, and the Google result tab shows the exact word where the cut falls.

    Why Google swaps your description

    Google writes its own snippet when the description misses the words in the query. A page ranking for fifty queries with one description gets a rewrite on most of them. Your text survives more often when three things hold.

    1. The description names the task in the words people type: "format JSON", not "data presentation".
    2. Facts in the description also appear in the page text.
    3. No other page on the site shares the description. A sitewide default gets ignored.

    About 155 to 160 characters fit on desktop before the ellipsis. The meter uses 920 pixels of 14 px Arial. On news and blog results, Google puts a date in front of the snippet, which eats roughly 15 characters of room.

    Share image sizes per platform

    Use an absolute https URL for og:image. A relative path such as /images/card.png fails on every platform, because the scraper reads the tag with no base URL from your page.

    PlatformSize to aim forForcing a fresh preview
    Facebook1200 × 630, under 8 MBSharing Debugger, then Scrape Again
    LinkedIn1200 × 627Post Inspector. Without a re-inspect, the old card stays for about a week.
    X, large image2:1, such as 1200 × 600, under 5 MBThe old Card Validator lost its preview in 2022. Paste the URL into a draft post to check.
    X, small square1:1, at least 144 × 144Same as above
    Slack, Discord, WhatsApp1200 × 630 worksShare the URL with a throwaway query string, such as ?v=2

    One 1200 × 630 image covers every row above except the small square. Keep text and logos inside the middle area, since WhatsApp and some Slack layouts crop the sides.

    One twitter: tag instead of five

    X falls back to og:title, og:description, and og:image when the twitter: version is missing. So the generator writes twitter:card and twitter:site, nothing more. Four duplicate tags per page disappear.

    Tick Write the full twitter: set in two cases: the X headline should differ from the Facebook one, or a plugin on your side expects every twitter: tag present. The generator uses name="twitter:card", the form in the X documentation. Older generators write property=, which X also parses.

    Where the output goes

    Static HTML

    Paste inside <head>. Keep charset as the first tag, since browsers look for the charset in the first 1024 bytes only.

    WordPress with an SEO plugin

    Yoast, Rank Math, and All in One SEO already write title, description, canonical, and og: tags. Copy the values into the plugin fields, not the tags into the theme. Two og:image tags make Facebook pick the first, often the wrong one.

    Laravel, Django, Rails layouts

    Put the tags in the base layout once, with the values pulled from per-view sections or variables. Hardcoded tags in a layout give every page the same description.

    Next.js and Nuxt

    Use the metadata API, generateMetadata or useHead. Raw tags inside a component duplicate on client-side navigation.

    What this generator leaves out

    After publishing, view the page source and search for og:image. Two or more hits mean a theme or plugin writes its own set, and the scraper reads whichever comes first.

    Questions after the tags go live

    Duplicate titles, the keywords tag, stale share images, og:url, noindex, and privacy.

    Does every page need its own title and description?

    Yes. Search Console flags duplicate titles, and Google rewrites shared descriptions for most queries. On a large site, build both from page data, such as the product name plus its category, instead of one default.

    Should I still fill in meta keywords?

    Not for search. Google ignores the tag, and Bing has said a stuffed keywords tag reads as a spam signal. Fill the field only if an internal site search or a CMS feature reads the tag.

    I changed og:image and the old picture still shows.

    Platforms cache the first scrape of a URL. Run the URL through the Facebook Sharing Debugger or LinkedIn Post Inspector to refresh. Slack and Discord refresh on their own after a while, or share the URL with a new query string.

    Why does og:url copy the canonical URL?

    Facebook groups likes and shares under og:url. A tracking link with utm parameters would split the count across many URLs. Pointing og:url at the canonical keeps one count per page.

    Is noindex the same as a robots.txt block?

    No. A robots.txt block stops the crawl, so Google never reads the noindex tag and the URL stays listed with no snippet. To drop a page from results, allow the crawl and use noindex.

    Does the generator send my text anywhere?

    No. The tags build in this tab with JavaScript. The share preview requests your image URL from your own server, and nothing else leaves the page.