✨ 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 |
⚠️ 使用說明與注意事項
- 單 sitemap 最多 50000 條 URL 且檔案不超過 50MB;超限需用 sitemap 索引檔案拆分。
- URL 必須是絕對地址且可被爬蟲訪問;含非 ASCII 需做百分號編碼。
- 生成後放到站點根目錄並在 robots.txt 宣告 Sitemap 路徑,再到搜尋引擎後臺提交。
📋 結構
<urlset xmlns=".../0.9"> <url><loc>https://x/</loc></url> </urlset>