NathanTools
NathanTools
Text Tools 13
SEO Tools 7
Image Tools 19
YouTube Tools 38
Device Tests 4
PDF Tools 10
Calculators 52
Electrical Calculators 10
Time Tools 7
Random Tools 9
Converters 14
Developer Tools 11
Hash Generators 5
Password & Security 2
Network & DNS 3
Website Tools 9

XML Sitemap Generator

Enter your website address to crawl up to 500 pages and download a ready-to-submit sitemap.xml. Noindex, duplicate and broken pages are left out automatically.

100% free No sign-up Works on any device

Updated November 2026 · Follows Google's and sitemaps.org's sitemap rules

How to create an XML sitemap

  1. Enter your home page address and press Generate sitemap. The crawler follows the links on your site, up to 500 pages, and skips anything robots.txt blocks.
  2. Check the Pages list. Pages marked noindex, pages whose canonical points elsewhere and broken pages are left out automatically. Tick or untick any row to change that.
  3. Choose whether to add <lastmod>. Leave changefreq and priority out unless another search engine you care about needs them.
  4. Press Download to save sitemap.xml, then follow the steps below to publish and submit it.

Already have a list of addresses, for example exported from your CMS or analytics? Use Paste URLs instead.

After you download: publish and submit your sitemap

  1. Upload the file to your site's root folder so it opens at https://yourdomain.com/sitemap.xml.
  2. Add it to robots.txt with a line such as Sitemap: https://yourdomain.com/sitemap.xml. Our robots.txt generator can write the file for you.
  3. Submit it in Google Search Console under Indexing → Sitemaps, and in Bing Webmaster Tools under Sitemaps. Google retired its old "ping" URL in 2023, so submitting in Search Console or listing the file in robots.txt is now the way to tell Google about it.
  4. Regenerate it when you add or remove pages. A sitemap that lists deleted pages wastes crawl time and shows up as errors in Search Console.

What each sitemap tag means

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/pricing</loc>
    <lastmod>2026-11-10</lastmod>
  </url>
</urlset>
TagRequired?What it doesUsed by Google?
<urlset>YesWraps the whole file and declares the sitemaps.org namespaceYes
<loc>YesThe full page address, including https://Yes
<lastmod>NoDate the page content last changed (YYYY-MM-DD)Yes, if the dates are consistently accurate
<changefreq>NoHow often the page tends to changeNo, ignored
<priority>NoImportance from 0.0 to 1.0 relative to your other pagesNo, ignored

Sitemap rules and limits

  • 50,000 URLs or 50 MB (uncompressed) per file, whichever comes first. Larger sites use several sitemaps listed in a sitemap index; the Paste URLs tab builds one for you when needed.
  • Absolute URLs only, on the same host and protocol as the sitemap. https://example.com/a and https://www.example.com/a are different hosts.
  • UTF-8 encoding, with &, <, > and quotes escaped. The generator escapes them for you.
  • List canonical, indexable pages only. Leave out redirects, 404s, noindex pages, duplicates and URLs blocked in robots.txt.
  • A sitemap is a suggestion, not a command. It helps search engines discover pages; whether they are indexed depends on quality and internal links.

XML sitemap vs HTML sitemap

An XML sitemap is written for search engines and isn't meant to be read by people. An HTML sitemap is an ordinary page of links that helps visitors find content and gives crawlers another path to deep pages. Most sites only need the XML file. If you want a visitor sitemap too, switch the output to HTML and paste the list into a page. Blogger users can use our Blogger sitemap generator, which uses the feed Blogger already publishes.

Frequently asked questions

Up to 500 pages per crawl, found by following links from the address you enter. Larger sites usually have a CMS or plugin that builds the sitemap automatically. If you already have a list of URLs, paste it in the Paste URLs tab: there is no limit there, and lists over 50,000 URLs are split into several files with a sitemap index.

Pages are left out when they carry a noindex robots tag, when their canonical tag points to a different URL, or when they return an error such as 404. A sitemap should only list the URLs you want to appear in search results, so these would send mixed signals. You can still tick an excluded page to add it.

No. Google's documentation says it ignores <priority> and <changefreq>. It does use <lastmod> when the dates are consistently accurate, so only include lastmod if it reflects real content changes. Bing treats all three as hints.

Upload it to the root of your website so it opens at https://yourdomain.com/sitemap.xml. A sitemap can only list URLs in its own folder and below, so the root covers the whole site. Then add a Sitemap: line to robots.txt and submit the URL in Google Search Console and Bing Webmaster Tools.

Not always. Google says a site of about 500 pages or fewer that is well linked internally may not need one. A sitemap still helps new sites with few backlinks, sites with pages that aren't linked from navigation, and sites that change often.

Yes. It reads your robots.txt and skips any path disallowed for all crawlers (User-agent: *). It also ignores links marked rel="nofollow". It identifies itself as NathanToolsBot and fetches at most four pages at a time.

XML is the standard and supports lastmod. A text sitemap (one URL per line, UTF-8) is also accepted by Google and Bing and is handy for quick lists. The HTML version is for visitors: a page of links, not something you submit.
Esc
↑ ↓ to moveEnter to open