✨ Sitemap Generator

Sitemap Generator - Paste one URL per line to build a standard sitemap.xml with lastmod for search engines. Free, browser-only.

📐 工作原理与说明
按换行切分输入,逐行去首尾空白后只保留以 http 或 https 协议开头的行;一条都没有时提示请每行粘贴一个以协议开头的网址。不自动虚构 lastmod:日期留空时省略该字段,填写时校验 YYYY-MM-DD 的真实日期;逐行用 URL 解析校验 http/https,列出无效行并去重,再生成 url 节点,再拼上 XML 声明与站点地图命名空间声明的根节点。输出网址总数,并对整段 XML 做转义后在代码块中展示
生成供搜索引擎抓取的 XML Sitemap。
  • 字段:每个 URL 输出 loc(地址);可选填 lastmod(最后修改日期),留空则省略。当前版本不提供 changefreq(更新频率)与 priority(优先级)的设置项。
  • 限制:单个 sitemap 最多 5 万条 URL、未压缩不超过 50MB;超出需用 sitemap index 分片。
  • 提交:在 robots.txt 中声明 Sitemap 地址,或通过搜索引擎站长平台提交。
  • 说明:sitemap 只是抓取线索,不保证收录;changefreq 与 priority 仅为可选提示字段,本工具暂不输出。

Formula & Standard References

Item Formula / Note Source / Standard
Protocol fields each url entry has loc and an optional lastmod; this version does not output changefreq or priority sitemaps.org protocol
Limits at most 50000 URLs and 50 MB uncompressed per file sitemaps.org protocol
Index files split into multiple maps linked by a sitemapindex sitemaps.org protocol
⚠️ 使用说明与注意事项

📋 结构

<urlset xmlns=".../0.9">
  <url><loc>https://x/</loc></url>
</urlset>