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.
| Tag | Read by | Page without the tag |
|---|---|---|
<title> | Google, Bing, browser tabs, bookmarks | Google writes a title from the H1 or from link text pointing at the page. |
description | Google and Bing snippets, chat link previews | The snippet comes from page text near the query words. |
rel="canonical" | Google, Bing | With tracking parameters or a www twin, Google picks the URL to index on its own. |
robots | Every major crawler | Default is index, follow. The generator writes the tag only for other values. |
viewport | Mobile browsers | Phones render a 980 px desktop layout, zoomed out. |
charset | Browsers | The browser guesses the encoding. An é turns into é on a wrong guess. |
og:title, og:image | Facebook, LinkedIn, Slack, Discord, WhatsApp, iMessage | The app scrapes the title tag and some image from the page, or shows a bare link. |
twitter:card | X | X has no card layout to apply, so the og: tags go unused. |
theme-color | Mobile Chrome and Safari, installed web apps | The browser bar keeps its default color. |
keywords | No major search engine | Nothing. 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.
- Put the words a searcher scans for in the first 40 characters.
- Brand suffixes such as
| Toolexego last. A cut there costs nothing. - Google rewrites titles stuffed with repeats or ones far off from the H1. Keep the two close.
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.
- The description names the task in the words people type: "format JSON", not "data presentation".
- Facts in the description also appear in the page text.
- 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.
| Platform | Size to aim for | Forcing a fresh preview |
|---|---|---|
| 1200 × 630, under 8 MB | Sharing Debugger, then Scrape Again | |
| 1200 × 627 | Post Inspector. Without a re-inspect, the old card stays for about a week. | |
| X, large image | 2:1, such as 1200 × 600, under 5 MB | The old Card Validator lost its preview in 2022. Paste the URL into a draft post to check. |
| X, small square | 1:1, at least 144 × 144 | Same as above |
| Slack, Discord, WhatsApp | 1200 × 630 works | Share 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
- No structured data. JSON-LD for Article, Product, or FAQPage goes in its own script block.
- No hreflang. Sites in several languages need alternate links per locale.
- No icon links. Favicon, apple-touch-icon, and web manifest tags are a separate job.
- No article dates. With og:type set to article, add
article:published_timeby hand. - No fetch of your page. The share preview loads the image alone, so a broken link and the pixel size show up in Checks. File size and file type go unchecked, and the generator never reads the tags already on your live page.
- Pixel widths are estimates. Google changes fonts and result widths without notice, and mobile results wrap the title to a second line.
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.