Sitemap XML Generator

Paste a list of URLs and get a valid sitemap.xml — optional lastmod, changefreq, and priority — ready to submit. Free.

Paste a list of URLs and get a valid sitemap.xml — defaults apply to every URL, per-URL lastmod, changefreq, and priority override them with a simple pipe syntax, and bad lines are skipped with an explanation instead of breaking the whole file.

How to use Sitemap XML Generator

  1. Paste your URLs, one per line.
  2. Set the defaults, or add per-line overrides after a |.
  3. Copy or download sitemap.xml and submit it.

Who it is for

Site owners without a CMS sitemap, developers shipping static sites, SEO auditors assembling a clean list from a crawl, and anyone moving to a new host who needs a fresh sitemap fast.

How it works

  • Output follows the sitemaps.org 0.9 schema exactly, with XML-escaping on every value.
  • Per-URL overrides use "url | lastmod | changefreq | priority" on one line — plain URLs take the defaults.
  • Priority is clamped to the valid 0.0–1.0 range, and non-URL lines report their line number.

What it cannot do

  • The sitemap protocol caps a file at 50,000 URLs and 50 MB — split bigger sites into an index.
  • It writes the file; submitting it to Search Console is still your step.

Sample input & output

You give

https://example.com/ https://example.com/pricing | 2026-11-20 | monthly | 0.8

Sitemap XML Generator returns

Valid sitemaps.org 0.9 XML with <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">, XML-escaped <loc> tags, ISO-8601 <lastmod>, and clamped <priority>.

Frequently asked questions

What does changefreq actually do?

Very little these days — crawlers mostly ignore it in favor of lastmod and their own schedules. Keep it honest anyway.

Should priority be 1.0 for everything?

No — priority is relative within YOUR site. Homepage high, supporting pages lower; an all-1.0 sitemap says nothing.

Why was one of my lines skipped?

It was not an absolute URL. The error names the line number so you can fix it and regenerate.

Which sitemap XML tags does Google actually use versus ignore today?

Google's crawling documentation states plainly that Googlebot ignores <priority> and <changefreq> altogether because site owners historically set every page to daily and 1.0. Google DOES read <loc> and honors <lastmod> when its ISO-8601 date (such as 2026-11-20) reflects genuine, verifiable content modifications rather than resetting to today's timestamp on every automated build.

Why must query-string ampersands and non-ASCII URLs be escaped inside <loc> elements?

Because a sitemap is strict XML 1.0 under the http://www.sitemaps.org/schemas/sitemap/0.9 namespace, any raw ampersand in a URL like https://example.com/items?cat=books&page=2 triggers an XML fatal entity-reference parse error in Google Search Console and Bing Webmaster Tools. Every <loc> must both percent-encode non-ASCII path characters per RFC 3986 and XML-escape the five XML special characters (&amp;, &apos;, &quot;, &lt;, &gt;).

What should I exclude from sitemap.xml to avoid Search Console indexing warnings?

Include only canonical, HTTP 200, indexable URLs. Listing URLs that return 301/302 redirects, 404 errors, pages carrying <meta name="robots" content="noindex">, non-canonical parameter variants, or paths blocked by robots.txt generates "Submitted URL marked 'noindex'" or "Blocked by robots.txt" errors in Google Search Console and wastes crawl budget on contradictory signals.

How do sitemap index files work when a site grows past 50,000 URLs or 50 MB?

The Sitemaps protocol caps any single sitemap XML file at 50,000 <url> entries and 50 MB (52,428,800 bytes) uncompressed, even if served gzip-compressed (.xml.gz). Larger catalogs split URLs across numbered files (such as sitemap-products-1.xml and sitemap-products-2.xml) and reference them inside a parent <sitemapindex> file submitted once in robots.txt and Search Console.