首页Home › 开发工具Developer Tools

🗺️ XML 网站地图生成器XML Sitemap Generator

把网址列表生成符合 sitemaps.org 规范的 sitemap.xml:自动转义特殊字符、去重、校验网址,可设置 lastmod、changefreq 和 priority,提交给 Google / 百度。Turn a list of URLs into a sitemaps.org-compliant sitemap.xml — escaping, de-duplication and URL validation included — with optional lastmod, changefreq and priority, ready for Google or Baidu.

使用说明与常见问题How-to & FAQ

「XML 网站地图生成器」是什么?What is the XML Sitemap Generator tool?

把网址列表生成符合 sitemaps.org 规范的 sitemap.xml:自动转义特殊字符、去重、校验网址,可设置 lastmod、changefreq 和 priority,提交给 Google / 百度。Turn a list of URLs into a sitemaps.org-compliant sitemap.xml — escaping, de-duplication and URL validation included — with optional lastmod, changefreq and priority, ready for Google or Baidu.

如何使用「XML 网站地图生成器」?How do I use the XML Sitemap Generator tool?

在「XML 网站地图生成器」中,把内容粘贴或输入到上方输入框,按需设置「lastmod」、「changefreq」、「priority」,结果会实时显示在下方,点击「复制结果」即可复制。In the XML Sitemap Generator: Paste or type into the input box, adjust "lastmod", "changefreq", "priority"; the result appears below instantly — click "Copy result" to copy it.

网址会被怎样处理?How are URLs processed?

每行一个,空行和 # 开头的行会被忽略;不是完整 http(s) 网址的行会被跳过并在结果上方列出行号,其余网址照常生成;网址中的 #片段会被去掉(搜索引擎把它们视为同一页面);网址会规范化(中文域名转 Punycode、中文路径做百分号编码),重复的只保留一个,& 等字符按 XML 规则转义。One per line; blank lines and lines starting with # are ignored. Lines that are not full http(s) URLs are skipped and listed by line number above the result, while the rest are still generated; #fragments are removed (search engines treat them as the same page). URLs are normalised (IDN hosts to Punycode, non-ASCII paths percent-encoded), duplicates removed, and & and similar characters XML-escaped.

changefreq 和 priority 有用吗?Do changefreq and priority matter?

Google 已明确表示会忽略 changefreq 和 priority,只参考准确的 lastmod;必应等搜索引擎可能仍会参考,所以都设为可选。Google has said it ignores changefreq and priority and only uses an accurate lastmod; other engines such as Bing may still read them, so they are optional.

网址多了怎么办?What if I have lots of URLs?

单个 sitemap 最多 50,000 个网址、未压缩不超过 50 MB;超过时请拆成多个文件并用 sitemap 索引文件汇总。A single sitemap may contain up to 50,000 URLs and 50 MB uncompressed; beyond that, split it and use a sitemap index file.

代码或数据会被上传吗?Is my code or data uploaded?

不会。「XML 网站地图生成器」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The XML Sitemap Generator runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.

「XML 网站地图生成器」免费吗?需要注册吗?Is the XML Sitemap Generator free? Do I need an account?

「XML 网站地图生成器」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The XML Sitemap Generator is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

⚙️ 位运算计算器Bitwise Calculator🛡️ 隐私政策生成器Privacy Policy Generator🧾 JSON 格式化校验JSON Formatter & Validator🧪 正则表达式测试Regex Tester⏰ Cron 表达式解析Cron Expression Explainer🔀 YAML JSON 互转YAML to JSON Converter📊 CSV JSON 互转CSV to JSON ConverterⓂ️ Markdown 在线预览Markdown Live Preview🗄️ SQL 格式化/压缩SQL Formatter & Minifier🧵 字符串转义/反转义String Escape / Unescape📰 XML 格式化XML Formatter & Validator🔁 XML 转 JSONXML to JSON Converter

← 全部工具All tools