Skip to content
M2TOOLKIT

SEO · free tool

XML Sitemap Generator

Turn a list of page URLs into a valid XML sitemap for search engines.

Use it as often as you like — it's free, with no sign-up and no limits.

  • SEO
  • Free
  • No sign-up
  • Runs in your browser
  • Updated
3 valid

Only include canonical, indexable pages that return a 200 status. A sitemap can list up to 50,000 URLs. Submit it in Google Search Console and reference it in robots.txt. Google ignores changefreq and priority, but uses an accurate lastmod.

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the XML Sitemap Generator

  1. Paste your page URLs, one per line.
  2. Optionally add a last-modified date.
  3. Download sitemap.xml, upload it, and submit it in Google Search Console.

What does this tool do?

A sitemap helps search engines discover your pages, especially new or deep pages with few links. URLs are validated and de-duplicated, and special characters are escaped as the sitemap protocol requires.

What the generated sitemap contains

Each valid line becomes a <url> entry with a <loc>. Only full http:// or https:// URLs are accepted; anything else is skipped, and a warning shows the first few skipped lines. Duplicates are removed, and characters such as & are escaped as the sitemap protocol requires, so the file validates.

You can add one last-modified date and one change frequency, applied to every URL. Google ignores changefreq and priority, but it does use lastmod when it's accurate. So only set a date if every page on the list really changed on that day; otherwise leave it out. The file is UTF-8 and can be downloaded as sitemap.xml.

After you download it

Upload sitemap.xml to the root of your site (https://example.com/sitemap.xml), add a line Sitemap: https://example.com/sitemap.xml to robots.txt, and submit it under Sitemaps in Google Search Console and Bing Webmaster Tools. One sitemap can hold up to 50,000 URLs (and 50 MB uncompressed); larger sites split their URLs across several sitemaps and list them in a sitemap index.

A sitemap helps discovery, but it doesn't force indexing. Pages still need to be useful, return a 200 status and not be blocked by robots.txt or a noindex tag.

Why use it?

  • Help new sites get crawled.
  • Make sure every important page is discoverable.
  • Valid XML with no errors.

Use cases

  • Small static sites without a CMS plugin.
  • Landing pages or microsites built by hand.
  • A quick sitemap for a new section while the main one is fixed.

What to include

Only canonical pages that return a 200 status and that you want in search results — no redirects, no noindex pages, no URLs with tracking parameters.

Common mistakes

  • Listing redirected, 404 or noindex URLs, which wastes crawl attention and raises warnings in Search Console.
  • Mixing http and https, or www and non-www, versions of the same page.
  • Setting today's lastmod on every page when most haven't changed.

Accuracy and limits

  • The generator doesn't crawl your site or check status codes. It formats the list you give it, so check the URLs first.

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Frequently asked questions

Does a sitemap guarantee indexing?

No. It helps discovery, but Google decides what to index based on quality and usefulness.

How many URLs can one sitemap hold?

Up to 50,000 URLs or 50 MB uncompressed. Larger sites split their URLs across several sitemaps and list them in a sitemap index file.

Content last updated . See how M2Toolkit works.

Other tools people use alongside the xml sitemap generator.