跳转到正文
SM

站点地图生成器

将 URL 列表转为有效的 sitemap.xml(urlset)。

4 URLs
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-11-05</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://example.com/about</loc>
    <lastmod>2026-11-05</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://example.com/blog?q=a&amp;b=1</loc>
    <lastmod>2026-11-05</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://example.com/products/%3Cid%3E</loc>
    <lastmod>2026-11-05</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
</urlset>

Generates a urlset sitemap.xml entirely in your browser. No crawl and nothing is sent externally. Optional lastmod / changefreq / priority apply as defaults to every URL.

关于站点地图生成器

An XML sitemap (urlset) tells search engines which URLs you want indexed. Even without a CMS, a pasteable list of public URLs is enough to produce one. toco.tools’s Sitemap Generator turns one URL per line into a `<?xml …?><urlset>…</urlset>` document. Optional default lastmod, changefreq, and priority apply to every entry, and characters like `&` and `<` are XML-escaped. Nothing is crawled or fetched remotely. Per-file URL limits (50k) and sitemapindex files are out of scope—split large sites or generate at build time. Your list never leaves the browser.

使用方法

  1. Paste public URLs one per line (or load the sample)
  2. Optionally set default lastmod / changefreq / priority
  3. Copy or download the generated sitemap.xml

常见问题

Does this crawl my site for URLs?

No. It only builds XML from the URL list you paste. Nothing is fetched or uploaded.

Are changefreq and priority required?

No. Leave them blank for loc-only entries. When set, the same defaults apply to every URL.

Are query ampersands safe?

Yes. Characters like `&`, `<`, and `>` inside loc are XML-escaped.