XML Sitemap Generator

Paste or upload a URL list and get a valid XML sitemap, split into several files with an index when needed.

  • Runs in your browser
  • Free, no sign-up

Optional date per line: https://example.com/page,2026-09-01 (YYYY-MM-DD or W3C datetime).

The file is read in your browser and never uploaded. First column: URL; optional second column: date.

Used for URLs without their own date. Only set it to when the page content really changed.

Optional fields and index location

Only used in the sitemap index when the list is split into several files.

Sitemap

Valid URLs
4
Duplicates removed
0
Problems
0
Files
1
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
  </url>
  <url>
    <loc>https://www.example.com/services/roof-repair</loc>
    <lastmod>2026-09-01</lastmod>
  </url>
  <url>
    <loc>https://www.example.com/about</loc>
  </url>
  <url>
    <loc>https://www.example.com/contact</loc>
  </url>
</urlset>

Special characters are XML-escaped and URL fragments (#...) are removed. After uploading, reference the sitemap in robots.txt and submit it in Google Search Console and Bing Webmaster Tools.

How to use the xml sitemap generator

  1. Paste your URLs one per line, or upload a .txt or .csv file. Add ",YYYY-MM-DD" after a URL to set its lastmod date.
  2. Optionally set a default lastmod for URLs without their own date.
  3. Review duplicates removed, invalid lines and any warning about mixed hosts.
  4. Download sitemap.xml, or a ZIP with numbered sitemaps and sitemap-index.xml for large lists.

Worked example

120,000 URLs

A list of 120,000 unique URLs exceeds the 50,000 URL limit per file, so the generator creates sitemap-1.xml and sitemap-2.xml with 50,000 URLs each, sitemap-3.xml with 20,000, and a sitemap-index.xml that references all three.

How it works

Each line is parsed as an absolute http(s) URL (fragments removed, duplicates dropped). An optional trailing date must be a valid W3C date. URLs and dates are XML-escaped into a sitemaps.org urlset. Files are split whenever the next URL would exceed 50,000 URLs or 50 MB (uncompressed), and a sitemapindex is generated for multiple files. The ZIP is built in your browser.

Assumptions

  • Dates are used exactly as entered; set lastmod only when content really changed.
  • changefreq and priority are off by default because Google ignores them.

Frequently asked questions

Do I need changefreq and priority?

Google ignores both. Bing and others may read them, so you can turn them on, but an accurate lastmod is more useful.

Can a sitemap include URLs from another domain?

Normally a sitemap should only list URLs on the host where it is served. Cross-host sitemaps need verification in Search Console, so the tool warns when hosts differ.

Is my URL list uploaded?

No. Pasted text and uploaded files are processed in your browser.

Limitations

  • Does not crawl your site to discover URLs; you provide the list.
  • Does not create image, video or news sitemap extensions.