How to use the xml sitemap generator
- Paste your URLs one per line, or upload a .txt or .csv file. Add ",YYYY-MM-DD" after a URL to set its lastmod date.
- Optionally set a default lastmod for URLs without their own date.
- Review duplicates removed, invalid lines and any warning about mixed hosts.
- Download sitemap.xml, or a ZIP with numbered sitemaps and sitemap-index.xml for large lists.
Worked example
120,000 URLs
A list of 120,000 unique URLs exceeds the 50,000 URL limit per file, so the generator creates sitemap-1.xml and sitemap-2.xml with 50,000 URLs each, sitemap-3.xml with 20,000, and a sitemap-index.xml that references all three.
How it works
Each line is parsed as an absolute http(s) URL (fragments removed, duplicates dropped). An optional trailing date must be a valid W3C date. URLs and dates are XML-escaped into a sitemaps.org urlset. Files are split whenever the next URL would exceed 50,000 URLs or 50 MB (uncompressed), and a sitemapindex is generated for multiple files. The ZIP is built in your browser.
Assumptions
- Dates are used exactly as entered; set lastmod only when content really changed.
- changefreq and priority are off by default because Google ignores them.
Frequently asked questions
Do I need changefreq and priority?
Google ignores both. Bing and others may read them, so you can turn them on, but an accurate lastmod is more useful.
Can a sitemap include URLs from another domain?
Normally a sitemap should only list URLs on the host where it is served. Cross-host sitemaps need verification in Search Console, so the tool warns when hosts differ.
Is my URL list uploaded?
No. Pasted text and uploaded files are processed in your browser.
Limitations
- Does not crawl your site to discover URLs; you provide the list.
- Does not create image, video or news sitemap extensions.