Sitemap Generator

Turn a list of URLs or paths into a valid sitemap.xml, check it for mistakes, and split large sites into files with a sitemap index.

Full URLs or paths. After a space you can add a last-modified date (YYYY-MM-DD), a change frequency and a priority, in any order. A sitemap.xml pasted here or opened as a file is read back into a list.

For lines without their own value
7 URLs
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
  </url>
  <url>
    <loc>https://example.com/about</loc>
  </url>
  <url>
    <loc>https://example.com/pricing</loc>
  </url>
  <url>
    <loc>https://example.com/blog/</loc>
  </url>
  <url>
    <loc>https://example.com/blog/first-post</loc>
    <lastmod>2026-11-20</lastmod>
  </url>
  <url>
    <loc>https://example.com/blog/second-post</loc>
    <lastmod>2026-11-28</lastmod>
    <changefreq>weekly</changefreq>
  </url>
  <url>
    <loc>https://example.com/contact</loc>
  </url>
</urlset>
Next steps
  1. Upload the file to the root of your site.
  2. Add this line to robots.txt so every search engine can find it:Sitemap: https://example.com/sitemap.xml
  3. Submit it in Google Search Console and Bing Webmaster Tools under Sitemaps.

Advertisement

Guide

About the Sitemap Generator

A sitemap is an XML file that lists the pages on your site you want search engines to find. Each entry holds a <loc> with the page’s full URL and, optionally, when it last changed. Crawlers still follow links, but a sitemap helps them find new pages, pages with few internal links, and pages on large sites.

This generator takes the URLs you already have, from a CMS export, a spreadsheet column or a crawl, and turns them into a file that follows the sitemaps.org protocol. Nothing is uploaded.

Which fields matter

Google reads <loc> and uses <lastmod> when it is consistently accurate. It ignores <changefreq> and <priority>. Setting every lastmod to today is worse than leaving it out, because search engines learn to distrust it. Use the real date the page content last changed, or omit the field.

Large sites and sitemap indexes

One sitemap may hold at most 50,000 URLs and be at most 50 MB uncompressed. Past that, split the URLs into several files and list those files in a sitemap index, then submit only the index. The generator does this for you and names the files sitemap-1.xml, sitemap-2.xml and so on.

How to use it

  1. 1Enter your site URL.
  2. 2Paste your URLs or paths, one per line, or open an existing sitemap.
  3. 3Choose defaults for last modified, change frequency and priority, and fix anything flagged.
  4. 4Download sitemap.xml, upload it to your site root, and add it to robots.txt and Search Console.

Frequently asked questions

Where do I put sitemap.xml?

Usually at the site root, so it is served at https://yourdomain.com/sitemap.xml. A sitemap can only list URLs at or below its own folder, so the root covers the whole site.

Do I need to submit my sitemap to Google?

Adding a Sitemap: line to robots.txt lets every search engine find it. Submitting it in Google Search Console also shows you how many URLs were read and any errors.

Should every page be in the sitemap?

Only canonical pages you want in search results. Leave out redirects, error pages, noindex pages, duplicate URLs with tracking parameters, and pages blocked by robots.txt.

Does this crawl my website?

No. It works from the URLs you paste, which keeps it private and lets you choose exactly what is listed. Most CMSs, frameworks and crawlers can export a URL list.

What is a text sitemap?

A plain .txt file with one URL per line. Google and Bing accept it, but it cannot carry lastmod, so XML is usually the better choice.

Why does it escape & in my URLs?

XML reserves &, <, >, " and '. Inside <loc> they must be written as entities such as &amp;, or the sitemap will not parse.