Meta Tag Generator - OG & Twitter Card Builder
SEO & Marketing
Generate complete HTML <head> meta tags: title, description, canonical, Open Graph, and Twitter Card. Preview and copy the ready-to-paste code block. All processing is local.
<meta name="robots" content="index, follow" /> <!-- Open Graph --> <meta property="og:type" content="website" />
What are HTML meta tags?
Meta tags are HTML elements placed inside the <head> section that pass structured
metadata to browsers, search engines, and social platforms. Unlike visible page content, they are
not displayed to users but directly influence how your page is indexed and shared.
Open Graph tags explained
The Open Graph protocol (developed by Facebook, now an open standard) lets you control the title, description, image, and URL that appear when someone shares a link on social media. Every major platform - Facebook, LinkedIn, Slack, Discord - reads OG tags when generating link previews.
-
og:title- The title shown in the card (can differ from your page <title>). -
og:description- A short description; aim for 100–200 characters. -
og:image- The preview image. Minimum 1200 × 630 px recommended. -
og:url- The canonical URL of the resource being shared. -
og:type- Content type:website,article,product, etc.
Twitter Card tags
Twitter reads OG tags as a fallback, but its own twitter: meta properties let you choose
between card styles. summary_large_image shows a prominent banner image and is
the most engaging format for articles and blog posts. summary shows a small square
thumbnail beside the text.
Tips for better click-through rates
-
Keep
og:titleunder 60 characters to prevent truncation in most previews. -
Write
og:descriptionas an action-oriented sentence, not just a synopsis. -
Always provide a unique
og:imageper page - generic images perform poorly. -
Set
rel="canonical"to prevent duplicate content issues when the same content is accessible at multiple URLs.
Character limit reference
| Tag | Recommended limit | Notes |
|---|---|---|
<title> | 50–60 chars | Google truncates at ~55–60 in SERPs |
meta description | 150–160 chars | Google may rewrite; aim for natural sentences |
og:title | 40–60 chars | Facebook truncates around 60 |
og:description | 100–200 chars | LinkedIn shows ~160, Facebook ~120 |
twitter:title | 70 chars | Truncated with ellipsis beyond 70 |
twitter:description | 200 chars | Truncated in most card types |
Meta tag validation tools
- Facebook Sharing Debugger (
developers.facebook.com/tools/debug/): shows exactly how Facebook reads your OG tags and lets you force a cache refresh. - Twitter Card Validator (
cards-dev.twitter.com/validator): previews how your page looks when shared as a tweet. - LinkedIn Post Inspector (
linkedin.com/post-inspector/): shows the LinkedIn card preview and clears the LinkedIn cache for your URL.
Canonical URL
The canonical tag tells search engines which version of a page is the "master" when the same content is accessible at multiple URLs (e.g., with/without trailing slash, HTTP vs HTTPS, www vs non-www, or paginated versions). Without it, search engines may split link equity across duplicates or choose the wrong version to rank.
<link rel="canonical" href="https://example.com/my-page" /> More seo & marketing
- Heading AnalyzerPaste any HTML to extract and visualize the H1–H6 heading outline. Flags multiple H1s, skipped levels, and empty headings for SEO review.
- Keyword DensityAnalyze any body of text for word frequency, keyword density %, and n-gram patterns. Toggle stop-word filtering, pin target keywords, and see a visual bar chart.
- OG PreviewPreview how your page looks when shared on Facebook, X (Twitter), LinkedIn, Discord, and Slack. Paste your page HTML or fill in the fields manually. No network requests.
- Schema MarkupGenerate valid JSON-LD schema markup for FAQPage, HowTo, Article, Product, LocalBusiness, BreadcrumbList, and more. Form-driven, inline validation, pretty/minified toggle.
- SERP PreviewPreview how your page will look in Google search results. See real pixel-width title and description limits for desktop and mobile. Instantly check truncation.
- Title Tag CheckerPaste multiple page titles (one per line) to instantly see their pixel widths, pass/fail against Google thresholds, and optionally append a brand suffix.