API & Web

XML Sitemap Generator

Turns a list of URLs into a valid sitemap.xml, resolving relative paths and catching duplicates.

Loading the tool…

Processing happens locally in your browser. What you paste or load is processed by this page and is not uploaded to a server. Nothing is stored unless you use a control that says it stores something, and you can clear anything this site has kept from the privacy page.

How to use this tool

  1. Paste your URLs or paths, one per line.
  2. If you pasted paths rather than full URLs, put your site origin in the second box so they can be resolved.
  3. Add a lastmod date after any URL, separated by a comma, where you know when that page last genuinely changed.
  4. Select Generate sitemap, put the file at the root of your site, and add a Sitemap: line to robots.txt pointing at it.

What sitemap generator does

Paste one URL per line and you get a sitemap that validates against the sitemaps.org schema, with ampersands and angle brackets escaped properly — which is the detail that most hand-written sitemaps get wrong, because an unescaped & in a query string makes the whole file unparseable. Duplicate URLs are caught rather than emitted twice.

Optional lastmod, changefreq and priority can follow the URL on the same line, separated by commas or tabs, so a spreadsheet export goes straight in. They are written only when you supply them rather than invented: Google has said publicly that it ignores changefreq and priority entirely, and a file full of fabricated daily/1.0 values is noise. Give a base URL in the second box and relative paths are resolved against it.

Frequently asked questions

Very little. Both are in the sitemaps.org protocol, and Google has said publicly that it ignores them; Bing treats them as weak hints at best. They are written here only when you supply them, because a file where every page claims to change daily at priority 1.0 tells a crawler nothing it can act on.

No. It helps pages get discovered, which matters most on a large site, a new site, or for pages that little else links to. Discovery is not ranking, and a page that is crawled and judged thin will not do better for being listed. A sitemap also does not override robots.txt: a URL that is both listed and disallowed stays uncrawled.

Add a Sitemap: line to robots.txt giving the full absolute URL. That is the only place a crawler looks without being told, and it works for every engine at once. Submitting it in Search Console or Bing Webmaster Tools as well gives you the error reporting, which is worth having.

Fifty thousand URLs and 50 MB uncompressed per file. Past either, split the list across several sitemaps and publish a sitemap index that points at them. Both limits are checked here and reported in the summary if you cross them.