Skip to content
migration.tools
URL list to sitemap.xml

XML sitemap generator from a URL list

After a migration, give search engines a fresh sitemap of the new URLs so they are discovered quickly. Paste the list and get a standards-compliant sitemap.xml, with duplicates removed and ampersands escaped.

Going the other way? sitemap.xml to URL list

Options
Leave empty to omit <lastmod>.

URLs

sitemap.xml

The result appears here as soon as there is input.

Processed on this device. Nothing you paste or drop is uploaded.

How to use it

  1. 1Paste your URL list or drop a file onto the input panel.
  2. 2Adjust the options — the result updates as you type.
  3. 3Copy the sitemap.xml or download it. Drop several files to convert a batch into one ZIP.

What makes a sitemap valid

URLs must be absolute, on one host, and XML-escaped — an & in a query string has to be written &amp;. A single file can hold at most 50,000 URLs; longer lists are split into numbered files with a sitemap index that points at them.

Google ignores changefreq and priority, and uses lastmod only when it is consistently accurate. Leaving all three out is fine. Only set lastmod if it reflects real content changes.

Questions

Where does the sitemap go?

Upload it to the root of your site (https://example.com/sitemap.xml), reference it from robots.txt with a Sitemap: line, and submit it in Google Search Console and Bing Webmaster Tools.

Guides that use this tool