A sitemap from a list
Paste the URLs you want indexed, one per line, with a last-modified date after each if you know it. You get a valid sitemap.xml: duplicates removed, other domains flagged, special characters escaped, and no priority or changefreq tags Google ignores anyway.
Build your sitemap
Go further
Add a Sitemap: line to your robots.txt and check it with the robots.txt tester.
Old URLs belong in redirects, not the sitemap. Build a redirect map →
Related free tools
Questions I get.
Every page you want in search results, as its canonical URL: one version of each page (https, with or without www, with or without the trailing slash, whichever your site uses). Leave out redirects, error pages, noindex pages and duplicates.
Add lastmod only if it’s true: the date the page’s content last really changed. Google uses lastmod when it’s consistently accurate and ignores it otherwise. Google ignores priority and changefreq entirely, so this generator leaves them out.
Up to 50,000 URLs or 50 MB uncompressed. Bigger sites split into several sitemaps listed in a sitemap index. If you have that many pages, your site should be generating its sitemap automatically.
At your site’s root (yoursite.com/sitemap.xml). Add a Sitemap: line to robots.txt and submit it in Google Search Console and Bing Webmaster Tools.
Want a sitemap that never goes stale?
Sites I build generate the sitemap on every build, with lastmod dates taken from real content changes.