✨ Meta Tags Generator
Meta Tags Generator - Generate SEO and social share (Open Graph / Twitter Card) meta tags from title, description, URL and image. Free, browser-only.
📐 工作原理与说明
读取标题、描述、网址、图片地址四项输入。按固定顺序拼装标签:页面标题标签、页面描述元信息,以及开放图谱协议的标题、描述、类型(固定为 website)、网址、图片,再拼装推特卡片类型(固定为大图摘要)、推特标题、推特描述与推特图片。输出时对整段 HTML 做转义后在代码块中展示
生成页面头部 meta 与社交分享标签。
- 基础:title、description、keywords、viewport、robots、charset。
- 社交:Open Graph 的 og:title/og:description/og:image/og:url,以及 Twitter Card 的 twitter:card 等。
- 建议:description 控制在 150–160 字符,过长会被搜索结果截断。
- 必需:viewport 是移动端正确适配的前提,缺失会触发桌面版缩放。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Basic tags | title, description, keywords, canonical, robots | WHATWG HTML Standard |
| Social preview | Open Graph og:title / og:image; Twitter card tags | Open Graph protocol / Twitter Cards |
| Description length | search snippets show roughly 150-160 characters | SEO practice (non-normative) |
⚠️ 使用说明与注意事项
- OG 图片建议 1200×630 像素、小于 1MB,过小的图在部分平台不展示大卡。
- og:type 文章用 article、视频用 video.other;本工具默认 website。
- 改完可用社交平台调试器(如 Facebook Sharing Debugger)预览卡片抓取效果。
📋 关键字段
| 字段 | 用途 |
|---|---|
| og:title | 分享标题 |
| og:image | 分享图 |
| twitter:card | 大图卡 |