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
| Tag | Purpose | Guidance |
|---|---|---|
| title | The clickable headline in search results | 50-60 characters; unique per page |
| meta description | The snippet beneath the title | 150-160 characters; write it as ad copy |
| link canonical | Names the preferred URL for this content | Essential when duplicates exist |
| meta robots | Controls indexing and following | Only needed to deviate from the default |
| meta viewport | Mobile rendering | Required on every page |
| html lang | Declares the language | Helps 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.
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.
| Property | Required? | Notes |
|---|---|---|
| og:title | Yes | Can differ from the SEO title |
| og:description | Yes | Two to four lines is usually shown |
| og:image | Yes | Absolute URL; 1200×630 is the safe size |
| og:url | Yes | The canonical absolute URL |
| og:type | Yes | website, article, product and others |
| og:site_name | Recommended | Your site or brand name |
| og:locale | Optional | For example en_GB |
| article:published_time | For articles | ISO 8601 format |
Twitter Card tags
| Tag | Purpose |
|---|---|
| twitter:card | summary or summary_large_image |
| twitter:title | Falls back to og:title if omitted |
| twitter:description | Falls back to og:description |
| twitter:image | Falls back to og:image |
| twitter:site | The publisher account handle |
| twitter:creator | The 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
| Platform | Recommended size | Aspect ratio |
|---|---|---|
| Open Graph (general) | 1200 × 630 | 1.91:1 |
| Twitter large image | 1200 × 628 | 1.91:1 |
| Twitter summary | 600 × 600 | 1:1 |
| 1200 × 627 | 1.91:1 | |
| 400 × 400 minimum | 1: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.
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.