Sitemap Generator

Create an XML sitemap from a list of URLs with priorities and dates.

  • Runs in your browser
  • Free, no sign-up
Add some pages to start

About the Sitemap Generator

The Sitemap Generator turns a list of pages into a sitemap.xml file in the format defined at sitemaps.org, the protocol Google, Bing and other search engines share. Paste full URLs or paths like /about, set your website address, and copy or download the finished XML.

A sitemap helps search engines find your pages, especially on new sites with few links pointing to them, large sites, and pages that are hard to reach through your menus. It is a list of suggestions, not an order: search engines still decide what to crawl and index, and a sitemap does not improve rankings by itself.

The tool removes duplicates, drops # fragments, encodes spaces and accented letters, escapes characters such as &, and skips lines that belong to another domain. It warns when a file goes over the protocol's limits. Nothing leaves your browser.

How to use it

  1. Enter your website addressType the address exactly as your pages use it, such as https://example.com. Paths are added to it.
  2. Paste your pagesOne URL or path per line, or drop a text file onto the box. Sample fills in a small site to try.
  3. Choose the last modified dateToday, a date you pick, or Leave out. Use a real date only if it is true for every page in the list.
  4. Decide on changefreq and priorityBoth are left out by default, because Google ignores them. Add them if another search engine you care about uses them.
  5. Copy or downloadSave sitemap.xml to the root of your site, then submit it in Google Search Console and Bing Webmaster Tools, or list it in robots.txt.

Key features

Paths or full URLs

Mix /about, about and https://example.com/about in one list. Each becomes a full address on your site.

Clean, escaped XML

A UTF-8 file with the sitemaps.org namespace. & becomes &, and spaces and accented letters are percent-encoded.

Duplicates and strays removed

The same page listed twice appears once, #fragments are dropped, and URLs on another host or protocol are skipped and counted.

Limit checks

The status line turns red above 50,000 URLs or 50 MB, and for any URL of 2,048 characters or more.

Optional tags

lastmod as a W3C date, changefreq from daily to yearly, and priority either 0.5 for all or by page depth.

Private by design

No crawling and no upload. The file is built from the list you paste.

Examples

A small site

Sample fills in seven paths. With the address https://example.com and Last modified set to Today (October 10, 2026 in this example), the first entries are:

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-10-10</lastmod>
  </url>
  <url>
    <loc>https://example.com/about</loc>
    <lastmod>2026-10-10</lastmod>
  </url>

The status line reads 7 URLs and 778 B. The file starts with the usual XML declaration line, which the download includes.

What happens to messy input

You pasteIn the sitemap
/about#team after /aboutLeft out, same page
/s?q=mugs&page=2Kept, with & written as &amp;
/café menuEncoded as /caf%C3%A9%20menu
An http:// addressSkipped, other protocol
A www. addressSkipped, other host

The status line counts the skipped lines, here "2 lines skipped (other site or invalid)". The www and http versions count as different sites, which is why the website address must match the URLs your pages really use.

Priority by page depth

PagePriority
/1.0
/about0.8
/services/web-design0.6
/a/b/c0.4
/a/b/c/d and deeper0.3

Large sites

A list of 50,001 paths builds in under a second, but the status turns red: "over 50,000 URLs: split into several sitemaps". The protocol allows at most 50,000 URLs and 50 MB (52,428,800 bytes, uncompressed) per file. For more, make several sitemaps and list them in a sitemap index file.

Tips

  • List only pages you want in search results: the canonical version of each page, returning status 200, not blocked by robots.txt and not marked noindex.
  • Add a Sitemap: line with the full URL to your robots.txt, so every search engine can find the file without a manual submission.
  • Use lastmod only when it is accurate. Google uses it when it is consistently correct, and ignores it when every page claims to have changed today.
  • Regenerate the sitemap when you add or remove pages. A sitemap full of 404s and redirects wastes crawling and hides real problems.
  • Most CMS platforms and frameworks can build a sitemap automatically. Use this tool for static sites, small sites and one-off lists.

Common mistakes and limits

  • Mixing www and non-www, or http and httpsA sitemap should list URLs on the same host and protocol as the sitemap itself. The tool skips the others, so pick the address your site really uses.
  • Expecting priority to change rankingsPriority only compares pages within your own site, and Google ignores both priority and changefreq. Well-linked, useful pages do far more.
  • Setting every lastmod to todayIf every page always claims to be new, search engines learn to ignore the date. Use real modification dates, or leave the tag out.
  • Listing redirected or noindex pagesThey send mixed signals. Put the final URL of each page in the sitemap, and leave out pages you have hidden from search.
  • Thinking a sitemap gets pages indexedIt helps discovery. Whether a page is indexed still depends on its quality, duplicates and the other signals search engines use.

Frequently asked questions

What is an XML sitemap?
A file that lists the pages of a site, with optional details like the last modified date, in the format published at sitemaps.org. Search engines read it to discover pages.
How many URLs can a sitemap have?
Up to 50,000 URLs and 50 MB uncompressed per file. Larger sites split their pages over several sitemaps and list those in a sitemap index.
Where should I put sitemap.xml?
Usually in the root of the site, such as https://example.com/sitemap.xml, which lets it cover every page on that host. Then submit it or add it to robots.txt.
Does Google use changefreq and priority?
No. Google's documentation says it ignores both. It does use lastmod when the dates are consistently accurate.
How do I submit a sitemap?
Add it in Google Search Console under Sitemaps and in Bing Webmaster Tools, or add a Sitemap: line to robots.txt. Google retired its old sitemap ping URL in 2023.
Can a sitemap include images or videos?
The sitemap protocol has extensions for images, video and news. This tool writes the standard page sitemap only.
Can I compress the sitemap?
Yes. A gzip file such as sitemap.xml.gz is allowed, but the 50 MB limit applies to the uncompressed size.
Is my list sent anywhere?
No. The sitemap is built in your browser, and the tool does not crawl or contact your site.