XML Sitemap Generator
Turn a list of URLs into a valid sitemap, with the escaping done properly.
About this tool
Paste your URLs, one per line, and get a valid XML sitemap.
The escaping is the reason to use a tool rather than a template. An unescaped `&` in a query string makes the entire file fail to parse, and a malformed sitemap is discarded rather than read up to the error — so one bad URL costs you all of them. Ampersands, angle brackets and quotes are all escaped here.
It also refuses to pad the file with invented lastmod dates. A sitemap where every page claims to have changed today is ignored as a signal.
Common questions
Which URLs belong in a sitemap?
The ones you want indexed, and nothing else. Including redirects, noindexed pages or 404s sends contradictory signals — you are asking a crawler to fetch pages you have told it to ignore.
Should I set priority and changefreq?
They are ignored. Google has said so explicitly, and this tool omits them rather than writing fields that do nothing. lastmod is read, but only when it looks honest.
What if I have more than 50,000 URLs?
Split them across several sitemaps and list those in a sitemap index. A file over the limit is rejected outright, not truncated.
Where do I put the file?
Anywhere on the same host, conventionally /sitemap.xml. Then reference it from robots.txt with a Sitemap: line and submit it in Search Console.