How to use
- Write the page Title and Description, keeping an eye on the character count and the short / good / long indicator.
- Enter the canonical URL and the share image URL as full addresses starting with
https://. - Choose the page type (og:type), language (og:locale) and X card style. If the page should stay out of search, turn off “Show in search results”.
- Check the search result and share card previews, then copy the HTML into your page’s
<head>.
What each tag does
| Tag | Where it shows up |
|---|---|
<title> |
The browser tab and the blue headline in search results |
<meta name="description"> |
The snippet under the headline (search engines may pick other text instead) |
<link rel="canonical"> |
Tells search engines which URL is preferred when the same content lives at several addresses |
og:title, og:description, og:image |
Link preview cards on Facebook, LinkedIn, Slack, iMessage and more (the Open Graph protocol) |
og:url, og:site_name, og:type, og:locale |
The card’s URL, site name, type and language |
twitter:card and related tags |
X (Twitter) cards. Without them, X falls back to the Open Graph tags |
<meta name="robots" content="noindex"> |
Keeps the page out of search results |
How long should titles and descriptions be?
Search engines don’t publish character limits for titles or descriptions. They cut them off by pixel width instead. The ranges used here (30–60 characters for titles, 70–160 for descriptions) are common industry guidelines, not rules. Wide letters like W and M take up space faster than narrow ones, so put the important words first. The previews also cut text off by its actual width, not by character count.
Share image tips
- Facebook recommends 1200×630 px (a 1.91:1 ratio) for link share images, and most other platforms use large cards of a similar shape.
- Social networks can’t read relative paths like
/og.png, so always use a full URL. - Facebook, LinkedIn and others cache link previews. If an old card keeps showing up after you change the tags, refresh it with that platform’s sharing debugger.
Things to watch out for
- Every platform draws cards a little differently (how many lines show, how the image is cropped), so treat the preview as a close approximation.
- To see the share image in the preview, turn on “Load the share image”. Your browser will then request the image from the server that hosts it.
FAQ
Is anything I type saved?
No. The tags are built in your browser, and nothing you type is sent to a server. Quotes and characters like < are escaped automatically, so they won’t break your HTML.
Can I create a robots.txt too?
Use the robots.txt Generator to set crawler rules, including for AI bots. To count characters on their own, try the Character Counter.