Look at the source of a typical web page and you might find dozens of <meta> tags, many copied from old templates and never questioned. Some of them shape how the page appears in Google and on LinkedIn or WhatsApp. Others do nothing at all. When you launch a new page, move to a new CMS or wonder why a shared link shows the wrong image, it helps to know which is which.
This guide goes through the tags that genuinely matter, explains what each one controls, and shows how to generate a clean set with previews. It also covers the mistakes that most often lead to ugly search snippets and broken social cards.
Tags that affect search
The title tag
Strictly speaking <title> is not a meta tag, but it is the most important line in the <head>. It is usually the clickable headline in search results and the text in the browser tab. Aim for a unique, descriptive title of roughly 30 to 60 characters, with the main topic near the start. Search engines truncate by pixel width rather than character count, so wide letters may cut off earlier.
Meta description
<meta name="description" content="A clear summary of the page.">
The description does not directly affect rankings, but it is often shown as the snippet under the title, and a good one improves the chance of a click. Around 120 to 160 characters is a common target. Google may rewrite it with text from the page when it thinks that better matches the search.
Robots
<meta name="robots" content="index, follow">
This tells search engines whether to index the page and follow its links. index, follow is the default, so you only strictly need the tag when you want noindex or nofollow, for example on thank-you pages or internal search results. For whole sections, a robots.txt file controls crawling, but only a noindex tag reliably keeps a crawled page out of results.
Canonical URL
<link rel="canonical" href="https://www.example.com/page">
When the same content is reachable at several URLs (with tracking parameters, with and without a trailing slash, or printer versions), the canonical tag tells search engines which one is the main version.
Meta keywords
Google has said publicly that it does not use the keywords meta tag for ranking. It does no harm, but it will not help either, and it shows competitors your target terms.
Tags that affect every visitor
<meta charset="utf-8">makes sure accented letters, currency symbols and emoji display correctly.<meta name="viewport" content="width=device-width, initial-scale=1">is essential for mobile. Without it, phones show a shrunken desktop layout.<meta name="theme-color">tints the browser interface on some mobile browsers to match your brand.
Tags that affect social sharing
When someone shares your link, platforms like Facebook, LinkedIn, WhatsApp and Slack read Open Graph tags to build the preview card:
<meta property="og:title" content="…">
<meta property="og:description" content="…">
<meta property="og:image" content="https://www.example.com/share.jpg">
<meta property="og:url" content="https://www.example.com/page">
<meta property="og:type" content="website">
X (formerly Twitter) reads its own twitter: tags, such as twitter:card, and falls back to Open Graph for title, description and image. The card type summary_large_image gives the wide image layout; summary gives a small thumbnail.
For images, 1200 × 630 pixels is a widely used size that works across most platforms. Use an absolute URL starting with https://.
Generate a complete set with previews
The Meta Tag Generator builds the HTML and shows how the page may look in search and when shared.
- Open the Meta Tag Generator. It loads with an example page so you can see every field filled in.
- On the Basic SEO tab, fill in Page title and Meta description. Each has a live counter showing the length and the ideal range (30-60 characters for titles, 120-160 for descriptions).
- Optionally add Keywords, Author, Theme colour and a Canonical URL, then choose the switches: Allow indexing (index), Follow links (follow), Include viewport tag and Include UTF-8 charset.
- On the Open Graph tab, add og:title and og:description if they should differ from the SEO versions (leave them empty to reuse them), plus the og:image URL, og:type, og:site_name and og:locale.
- On the Twitter / X tab, choose the Card type and add your site and creator handles. Title, description and image reuse the Open Graph values.
- Check the Google search preview and the Social share preview. The share image only loads if you switch on Load image; nothing else leaves your browser.
- Copy the output under Generated HTML (paste inside ) and add it to your page template. Clear all fields starts over.
Other ways to manage meta tags
CMS and SEO plugins
WordPress SEO plugins, Shopify, Wix and most other platforms provide fields for title, description and social image on each page. If your site uses one, fill those fields rather than pasting raw HTML, or you may end up with duplicate tags.
Frameworks
Next.js, Nuxt and similar frameworks have metadata APIs that generate these tags per route. A generator is still useful for drafting the values and previewing length.
Checking a live page
After publishing, test the page as the platforms see it. The meta tag analyzer reads the tags from a page's HTML, and the Open Graph preview shows the resulting card. Social platforms cache previews, so after fixing a tag you may need their own debugging tools to refresh it.
Common mistakes
The same title and description on every page
Templates often repeat the site name and tagline everywhere. Unique titles and descriptions help both search engines and people choose the right page.
Relative image URLs
og:image must be a full URL. /images/share.jpg usually fails.
Duplicate or conflicting tags
Two description tags, or a plugin and a theme both adding Open Graph tags, can confuse crawlers. View the page source and search for og: and description to check.
Forgetting the snippet preview
Titles that look fine in a CMS field can be cut mid-word in search results. Preview them with the SERP preview tool before publishing.
Frequently asked questions
Do meta tags help SEO?
The title tag strongly influences how pages appear and are understood in search. The meta description affects clicks rather than rankings, and meta keywords are ignored by Google.
Where do meta tags go?
Inside the <head> section of the HTML, before the closing </head> tag. Most CMS platforms insert them for you from page settings.
Why is the wrong image showing when I share my link?
The platform may be reading an old cached version, or the og:image is missing, too small or given as a relative URL. Fix the tag, then use the platform's sharing debugger to refresh the cache.
What size should an Open Graph image be?
1200 × 630 pixels is a widely used size that displays well on most platforms. Keep important text away from the edges, as some apps crop the image.
Do I need both Open Graph and Twitter tags?
X falls back to Open Graph for most values, so you mainly need twitter:card to choose the layout, plus handles if you want them attributed.