About this tool
HTML `<head>` Meta tags establish the communication protocol between your website and search engine crawlers (Googlebot, Bing), social platforms (Open Graph, Twitter Cards), and mobile browser viewports. Proper meta configuration dictates your SERP snippet title and description, social share preview card fidelity, and mobile responsiveness. This tool generates SEO and social metadata tags with instant syntax validation.
How to Use This Tool (Step-by-Step)
Enter Basic Page Metadata
Fill in your page title (50–60 chars recommended), meta description (under 160 chars), and canonical URL destination.
Configure Open Graph & Twitter Cards
Specify your social share image URL (1200x630px recommended) and select card format (`summary_large_image`).
Copy HTML Head Snippet
Review the production-ready `<head>` markup block generated in real time. Copy with one click into your Next.js layout or HTML template.
Full Open Graph & Twitter Suite
Fully integrates Open Graph and Twitter Card tags, ensuring rich media embeds across iMessage, Slack, Twitter, and Facebook.
Character & Pixel Bounds Guard
Monitors title and description lengths against Google truncation thresholds, preventing ellipsis cutoffs in search engine result pages.
100% Client-Side Privacy
Code assembly executes entirely inside local browser memory. Unreleased campaign launch tags remain completely confidential.
Meta Tag Best Practices & OG Image Gotchas
- •OG Images require ABSOLUTE URLs: Never use relative paths like `/og.png`. Crawlers demand fully qualified `https://` URLs, ideally sized at 1200x630px.
- •Front-load primary keywords in titles: Place high-intent search terms at the beginning of the title tag, appending your brand name at the end.
- •Preserve mobile viewport scalability: Avoid `user-scalable=no` which violates WCAG accessibility guidelines for visually impaired users.
Code & Transformation Examples
Standard Modern SEO & Social Media Head Block Benchmark
<!-- 基础 SEO 标签 -->
<title>页面标题 · 品牌名</title>
<meta name="description" content="精准的页面概述文案...">
<link rel="canonical" href="https://example.com/page/">
<meta name="viewport" content="width=device-width, initial-scale=1"><!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:title" content="页面标题">
<meta property="og:image" content="https://example.com/og-image.png">
<!-- Twitter / X -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://example.com/og-image.png">* A self-referencing canonical URL prevents duplicate content dilution caused by tracking parameters.
Next.js App Router Metadata Implementation
export const metadata: Metadata = {
title: '页面标题',
description: '页面描述...',
openGraph: {
title: '页面标题',
images: [{ url: '/og-image.png', width: 1200, height: 630 }]
},
twitter: { card: 'summary_large_image' }
};Next.js 会在服务端渲染(SSR)或静态导出(SSG)时,自动将该对象编译为标准合规的 HTML 头部标签。* Modern frameworks recommend centralized metadata objects for dynamic i18n routing.
Frequently Asked Questions
Q: Does the meta keywords tag still matter for Google SEO?
A: Zero impact. Google officially confirmed back in 2009 that `meta keywords` are entirely ignored for web ranking. Do not waste effort maintaining keywords tags.
Q: Why do social platforms still show my old share image after updates?
A: Social platforms cache link previews aggressively. Use developer scrape tools like Facebook Sharing Debugger or LinkedIn Post Inspector to purge stale caches.
Q: What do robots meta tags (noindex, nofollow) control?
A: `noindex` instructs crawlers to exclude the page from search indexes; `nofollow` tells bots not to follow outgoing hyperlinks on the page.