Allio Tools Pro — No ads · Bulk processing · Save historyUpgrade $2.99/mo →
🚀Allio Tools Pro
  • No ads
  • Bulk tools
  • History
$2.99/mo

在线免费Sitemap验证器

Thanks for rating!

通过粘贴内容验证XML站点地图的结构和URL。

Paste your XML sitemap content below to validate its structure and check for errors.

🚀Allio Tools Pro
  • Zero ads everywhere
  • Bulk processing
  • Save history
Upgrade — $2.99/moNo signup required
Allio Tools Pro — No ads · Bulk processing · Save historyUpgrade $2.99/mo →

Who uses the Sitemap验证器?

  • 在提交到 Google Search Console 之前验证新站点地图文件结构的 SEO 专业人士。
  • 调试生成格式错误 XML 输出的站点地图生成脚本的开发者。
  • 在深入调查之前进行快速结构性检查——根元素、HTTPS 使用情况、重复项——的网站管理员。

How the Sitemap验证器 works

1

将您站点地图的 XML 内容粘贴到文本区域中——没有实时 URL 抓取功能,因此请先复制原始 XML。

2

点击 Validate Sitemap,按 5 项结构检查进行验证。

3

查看通过/未通过核对清单:有效的根元素、存在条目、所有 URL 均使用 HTTPS、无重复 URL,以及 <lastmod> 标签的数量。

4

向下滚动查看找到的前 10 个 URL,并显示剩余数量。

Tips & tricks

  • 没有实时 URL 抓取功能——请粘贴站点地图的实际 XML 内容,而不是它的 URL。
  • 该工具检查 标签是否存在,但不检查其日期格式——即使每个 中的日期格式都不正确,站点地图仍会通过该项检查。
  • 站点地图索引文件(包裹 )与常规 站点地图一样受支持——工具会自动检测您粘贴的类型。
  • 即使您的站点地图有数千个条目,结果中也只会列出前 10 个 URL——总数会单独显示在统计行中。

Frequently Asked Questions

我可以输入站点地图的网址而不是粘贴 XML 吗?

不可以——此工具只验证您直接粘贴的 XML。请先获取站点地图的原始内容(访问该网址并复制源代码,或使用 curl),然后粘贴到文本区域。

XML 站点地图必须遵循什么格式?

站点地图必须使用 Sitemap Protocol 0.9 格式:以 <?xml version="1.0" encoding="UTF-8"?> 开头,包裹在 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 中,并包含带有必需的 <loc> 子标签的 <url> 条目。

此工具是否验证 <lastmod> 的日期格式?

不会——它只检查 <lastmod> 标签是否存在,并统计有多少条目拥有该标签。它不会验证日期值是否符合有效的 ISO 8601 格式——格式错误的日期字符串仍会被计为“存在”。

站点地图中 URL 的最大数量是多少?

每个站点地图文件最多可包含 50,000 个 URL,且未压缩状态下必须小于 50 MB。对于更大的站点,请使用指向多个站点地图文件的站点地图索引文件。此工具本身不会强制执行或标记该限制——它只报告找到的总数。

我应该在站点地图中包含所有页面,还是只包含规范页面?

只包含规范的、可索引的页面。排除:noindex 页面、分页页面(第 1 页之外)、URL 参数重复项、私密页面,以及带有指向其他位置的 canonical 标签的页面。

Is my data safe when using the Sitemap验证器?

Completely safe. The Sitemap验证器 processes everything locally in your browser. No input data, results, or usage information is ever transmitted to or stored on any server.

How current is the data returned by the Sitemap验证器?

The Sitemap验证器 fetches live data in real time each time you run it. Results reflect the current state of the server or domain at the moment of the request.

Why does the Sitemap验证器 sometimes return different results than other tools?

Results depend on the real-time state of the target server and DNS propagation, which can vary by geographic region and caching TTL. If you see inconsistencies, wait a few minutes and re-test — DNS changes can take up to 48 hours to propagate fully worldwide.

💼 Reach 100K+ developers & creators — Advertise on Allio ToolsLearn More →