Meta Tag Generator
Generate HTML meta tags, Open Graph tags, and Twitter Card tags. Real-time output.
Real-time GenerationRelated Tools
What are Meta Tags?
Meta tags are HTML elements in the <head> that describe a page to bots, crawlers, and social media — never visible to users directly. They control: how Google shows your page in search results (title, description), how Facebook and LinkedIn render shared links (Open Graph), how Twitter/X shows shared cards (Twitter Cards), and how browsers handle the page (viewport, theme color, charset).
Three meta tag families
- HTML standard meta —
title,description,charset,viewport,robots - Open Graph (OG) — Facebook's protocol from 2010, now used by LinkedIn, Slack, Discord, Telegram, and many others (
og:title,og:image,og:type) - Twitter Cards — Twitter/X-specific card formats (
twitter:card,twitter:image,twitter:creator)
Why OG image matters most
An eye-catching Open Graph image can 2–5× your click-through rate on social shares. Twitter and Slack auto-render large image cards; LinkedIn shows a thumbnail. Without an OG image, your link looks like a sad URL with no preview. Recommended size: 1200 × 630 pixels (1.91:1 ratio), max 8 MB, JPEG/PNG/WebP.
How to Use
- Fill in the Basic SEO fields first —
titleanddescriptionare the most critical (used by Google in SERP listings). - Add an OG Image URL (1200×630px) for better social sharing previews. Use OG Preview tool to verify how it renders before publishing.
- Optional: fill Twitter Card fields for custom Twitter previews.
summary_large_imageis the most common card type. - The generated HTML updates in real time. Character counters show optimal length ranges.
- Click Copy All and paste into your HTML
<head>section, or pass to your framework's metadata API (Next.jsgenerateMetadata, Astro<SEO>, etc.).
Essential Meta Tags Every Page Needs
1. Required (every page)
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Page Title — Site Name</title> <meta name="description" content="One-sentence summary in 150–160 chars.">
2. Open Graph (social sharing)
<meta property="og:title" content="Page Title"> <meta property="og:description" content="One-sentence summary"> <meta property="og:image" content="https://example.com/og-image.png"> <meta property="og:url" content="https://example.com/page"> <meta property="og:type" content="website"> <meta property="og:site_name" content="Site Name"> <meta property="og:locale" content="en_US">
3. Twitter Cards
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Page Title"> <meta name="twitter:description" content="One-sentence summary"> <meta name="twitter:image" content="https://example.com/og-image.png"> <meta name="twitter:site" content="@yoursite"> <meta name="twitter:creator" content="@yourhandle">
4. SEO controls
<link rel="canonical" href="https://example.com/page"> <meta name="robots" content="index, follow"> <meta name="googlebot" content="index, follow, max-snippet:-1, max-image-preview:large"> <!-- For staging/preview --> <meta name="robots" content="noindex, nofollow">
5. Optional but useful
<meta name="theme-color" content="#0d0d0d"> <link rel="icon" type="image/svg+xml" href="/icon.svg"> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> <meta name="application-name" content="Site Name"> <meta name="format-detection" content="telephone=no"> <link rel="manifest" href="/site.webmanifest">
Length recommendations (2026)
- Title: 50–60 chars (Google truncates around 580 pixels)
- Description: 150–160 chars (Google sometimes shows up to 320 in featured snippets)
- OG Image: 1200 × 630px (1.91:1)
- Twitter Card: 1200 × 628px (similar ratio)
Common Pitfalls
1. Same title and description on every page
Each page needs unique title and description. Google penalizes (or ignores) pages with duplicate metadata. Use template-based generation in your framework — Next.js generateMetadata, Astro frontmatter, etc.
2. OG image with relative URLs
og:image requires absolute URLs (https://...). Relative paths break crawlers. Always include the full domain. Set metadataBase in Next.js to handle this automatically.
3. Missing canonical URL
If your page is accessible at multiple URLs (with/without trailing slash, with query params, http vs https), Google may treat them as duplicate content. Set <link rel="canonical" href="..."> on every page to point to the canonical version.
4. Forgetting noindex on staging
Staging environments accidentally indexed by Google = SEO disaster. Always include <meta name="robots" content="noindex"> on staging/preview deployments. Conditionally based on NODE_ENV or hostname.
5. Twitter Cards bug — caching
Twitter caches OG/Twitter Card data aggressively. After changing meta tags, use Twitter Card Validator (cards-dev.twitter.com) to force a re-fetch. Same for Facebook (developers.facebook.com/tools/debug/) and LinkedIn (linkedin.com/post-inspector/).
FAQ
What is the ideal description length?
150–160 characters. Google truncates meta descriptions around 158 chars in desktop SERPs and ~120 chars on mobile. Keep your most compelling sentence in the first 100 chars in case of mobile truncation.
Do keywords still matter for SEO?
The <meta name="keywords"> tag is completely ignored by Google, Bing, and all major search engines since at least 2009. Don't waste time on it. Focus on title, description, content quality, and structured data (JSON-LD).
Does the order of meta tags matter?
Mostly no — search engines parse the entire <head>. Two exceptions: <meta charset> must be in the first 1024 bytes, and <title> conventionally comes before description. Otherwise, group logically: charset → viewport → title → description → canonical → OG → Twitter → links/icons.
Should I use Open Graph or Twitter Cards?
Both. Twitter Cards fall back to Open Graph if Twitter- specific tags aren't found, but Twitter-specific tags can customize the experience. Major platforms read OG by default. Discord, Slack, Telegram, LinkedIn, Facebook all use OG; only Twitter/X uses its own format.
What's the difference between og:image and twitter:image?
Same purpose, different platforms. If both are present, each platform uses its own. If only one is present, Twitter falls back to og:image. Most sites use the same image for both — set og:image and skip twitter:image unless you want a different Twitter-specific version.
Are these tags enough for SEO?
Meta tags are necessary but not sufficient. Modern SEO also requires: structured data (JSON-LD with Schema.org), fast page load (Core Web Vitals), quality content (E-E-A-T signals), internal linking, and backlinks. Meta tags handle the "presentation" layer; the rest is content + performance.