Meta Tag Generator

Build SEO, Open Graph (Facebook/LinkedIn) and Twitter Card meta tags. Copy and paste into your <head>.

What meta tags do

Meta tags sit in the head of an HTML document and describe the page to machines rather than to visitors. Search engines use them to build result snippets; social platforms use them to build link previews; browsers use some of them to control rendering behavior.

They do not directly determine your ranking - content and links do that - but they heavily influence whether someone clicks your result once it appears, which is the part you actually control.

Key takeaways

  • Title and description shape the search snippet and drive click-through rate.
  • Open Graph tags control how links look on Facebook, LinkedIn, WhatsApp and Slack.
  • Twitter Card tags fall back to Open Graph if omitted.
  • A canonical URL is essential wherever the same content is reachable at more than one address.
  • The meta keywords tag has been ignored by search engines for many years.

Essential SEO tags

TagPurposeGuidance
titleThe clickable headline in search results50-60 characters; unique per page
meta descriptionThe snippet beneath the title150-160 characters; write it as ad copy
link canonicalNames the preferred URL for this contentEssential when duplicates exist
meta robotsControls indexing and followingOnly needed to deviate from the default
meta viewportMobile renderingRequired on every page
html langDeclares the languageHelps search engines and screen readers

The meta keywords tag is obsolete. Google confirmed it ignores the tag entirely, and it has no effect on ranking anywhere that matters.

The description is not a ranking factor, but it is a click factor. Google frequently rewrites descriptions to match the query, but a well-written one is used as-is more often than a poor one, and it is the only sales copy you get in the results page. Write it for a human deciding whether to click.

Open Graph tags

Open Graph was created by Facebook and is now the de facto standard used by LinkedIn, WhatsApp, Slack, Discord, Signal and most messaging apps.

PropertyRequired?Notes
og:titleYesCan differ from the SEO title
og:descriptionYesTwo to four lines is usually shown
og:imageYesAbsolute URL; 1200×630 is the safe size
og:urlYesThe canonical absolute URL
og:typeYeswebsite, article, product and others
og:site_nameRecommendedYour site or brand name
og:localeOptionalFor example en_GB
article:published_timeFor articlesISO 8601 format
og:image must be an absolute URL. A relative path such as /images/share.png will simply not work - crawlers fetch the image independently and have no page context to resolve it against. Always include the full scheme and domain. This is the single most common Open Graph mistake.

Twitter Card tags

TagPurpose
twitter:cardsummary or summary_large_image
twitter:titleFalls back to og:title if omitted
twitter:descriptionFalls back to og:description
twitter:imageFalls back to og:image
twitter:siteThe publisher account handle
twitter:creatorThe author account handle

Because Twitter falls back to Open Graph for title, description and image, the only tag you genuinely need to add is twitter:card to select the large image layout.

Image dimensions for social previews

PlatformRecommended sizeAspect ratio
Open Graph (general)1200 × 6301.91:1
Twitter large image1200 × 6281.91:1
Twitter summary600 × 6001:1
LinkedIn1200 × 6271.91:1
WhatsApp400 × 400 minimum1:1 preferred

One 1200×630 image serves every platform adequately. Keep any text well inside the center, since different platforms crop the edges differently.

Common mistakes

  • Relative image URLs in og:image - the most frequent failure by a wide margin.
  • The same title and description on every page, which wastes the snippet entirely.
  • Descriptions that are truncated because they run well past 160 characters.
  • Missing canonical tags on sites where the same content is reachable with and without trailing slashes or query parameters.
  • A stale cached preview. Platforms cache aggressively; use their debugging tools to force a refresh after changing tags.
  • Leaving a noindex tag in place after a staging site goes live - an error that can remove an entire site from search.
Always validate with the platform's own debugger after changing tags. Facebook, LinkedIn and Twitter all provide tools that show exactly what they see and let you clear their cache. Guessing whether a preview will render correctly is a poor use of time when checking takes thirty seconds.
Everything runs in your browser. Your code and files are processed entirely on your own device - nothing is uploaded, logged or stored.

Frequently Asked Questions

What meta tags do I actually need?

A unique title, a meta description, a viewport tag, a canonical link, and Open Graph tags for title, description, image, URL and type. Adding twitter:card gives you the large image layout on Twitter. Everything else is situational.

Does the meta keywords tag still matter?

No. Google confirmed years ago that it ignores the tag entirely, and no major search engine uses it for ranking. It is a relic of early search engines and can be safely omitted.

Do meta descriptions affect rankings?

Not directly. They influence click-through rate, which matters a great deal in practice. Google often rewrites descriptions to match the query, but a well-written one is used as-is more often, and it is the only sales copy you get on the results page.

What is Open Graph?

A protocol created by Facebook for controlling how a link looks when shared. It has become the de facto standard, used by LinkedIn, WhatsApp, Slack, Discord and most messaging apps, so a single set of og tags covers nearly every platform.

Why is my social preview image not showing?

Most often because og:image uses a relative path. Crawlers fetch the image independently with no page context, so it must be an absolute URL including scheme and domain. The other common cause is a cached preview from before you added the tag.

What size should my Open Graph image be?

1200 by 630 pixels, a 1.91:1 ratio, which works well across Facebook, LinkedIn and Twitter. Keep any text well inside the center, because different platforms crop the edges differently.

Do I need both Open Graph and Twitter Card tags?

Not really. Twitter falls back to Open Graph for title, description and image, so the only tag worth adding separately is twitter:card to choose the large image layout. Duplicating the rest achieves nothing.

What is a canonical tag and when do I need one?

It names the preferred URL for a piece of content, which matters whenever the same page is reachable at several addresses - with and without a trailing slash, with tracking parameters, or across http and https. Without it, search engines may split ranking signals across the duplicates.

How do I refresh a cached social preview?

Use the platform's own debugging tool. Facebook, LinkedIn and Twitter each provide one that shows exactly what they see and lets you force a re-scrape. Simply updating the tags is not enough, because previews are cached aggressively.

Related Calculators