XML Sitemap Generator

Paste a list of URLs and get a valid sitemap.xml, with duplicates removed and invalid lines flagged.

Leave out
Today
Pick a date
Leave out
always
hourly
daily
weekly
monthly
yearly
never
Leave out
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
5
URLs
1
Duplicates removed
0
Invalid lines
0 B
File size

What an XML sitemap is for

An XML sitemap is a list of the URLs you want search engines to know about, in a format defined by the sitemaps.org protocol. Google, Bing and other engines that support the protocol read it to discover pages and to learn when they last changed.

A sitemap is a hint, not an instruction. Listing a URL does not guarantee it will be crawled or indexed, and leaving one out does not hide it. Sitemaps help most on large sites, new sites with few inbound links, and sites with pages that are hard to reach through internal links.

Think of the file as a list of the pages you would be happy to see in search results. Product pages, articles, category pages and key landing pages belong in it. Login pages, internal search results, thank-you pages, filtered duplicates and anything you have marked noindex do not, because listing them asks search engines to spend time on pages you do not want shown.

Key takeaways

  • One sitemap file may hold at most 50,000 URLs and be at most 50 MB uncompressed.
  • Every URL must be absolute and include the protocol: https://www.example.com/page, not /page.
  • Special characters such as & must be escaped as XML entities, which the tool does for you.
  • Google has said it ignores changefreq and priority, and uses lastmod only when it is consistently accurate.
  • List only canonical URLs that return a 200 status: no redirects, no error pages, no noindex pages.

A worked example

Here is a list pasted into the tool. It contains a duplicate and a line without a protocol:

https://www.example.com/
https://www.example.com/about
https://www.example.com/shop?color=red&size=10
https://www.example.com/about
www.example.com/contact

With the last-modified date set to 2026-11-30 and changefreq and priority left out, the output is:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
    <lastmod>2026-11-30</lastmod>
  </url>
  <url>
    <loc>https://www.example.com/about</loc>
    <lastmod>2026-11-30</lastmod>
  </url>
  <url>
    <loc>https://www.example.com/shop?color=red&amp;size=10</loc>
    <lastmod>2026-11-30</lastmod>
  </url>
</urlset>

Three URLs made it into the file, and the 414-byte result is ready to upload. The second /about was removed as a duplicate. Line 5 was left out and listed in a notice, because www.example.com/contact has no https:// and so is not an absolute URL. The & in the shop URL became &amp;, because a bare ampersand is not allowed in XML and would make the whole file fail to parse.

The tags in a sitemap

TagRequiredWhat it holdsHow Google treats it
<loc>YesThe full URL of the pageUsed to discover the page
<lastmod>NoDate the page content last changed, in W3C date format such as 2026-11-30Used if it is consistently and verifiably accurate
<changefreq>Noalways, hourly, daily, weekly, monthly, yearly or neverIgnored
<priority>No0.0 to 1.0, relative to your other pages; default 0.5Ignored

Other search engines may treat the optional tags differently. All four are part of the sitemaps.org protocol, so including them does no harm.

The tool offers changefreq and priority because some engines and tools still read them, but it leaves both out by default. If you set lastmod, set it honestly. Stamping today's date on every page every time you regenerate the file tells search engines nothing, and an engine that notices the dates are unreliable may stop trusting them.

How URLs are checked and cleaned

  • Blank lines are skipped and leading and trailing spaces are trimmed.
  • Each line must be an absolute http or https URL. Relative paths such as /about, bare domains such as example.com/page, other schemes such as ftp://, and lines containing spaces are rejected and listed with their line numbers.
  • URLs are normalized the way browsers do it. https://Example.com becomes https://example.com/, with the host lowercased and a slash added to a bare domain, and non-ASCII characters are percent-encoded, so /café becomes /caf%C3%A9, as the protocol requires.
  • Duplicates are removed after normalization, so https://Example.com and https://example.com/ count as one page.
  • XML entities are escaped: &, <, >, double quotes and apostrophes become &amp;, &lt;, &gt;, &quot; and &apos;.
The tool does not crawl your site or check that URLs work. It only formats the list you give it. Before uploading, make sure every URL returns a 200 status, is the canonical version of the page, and is not blocked by robots.txt or marked noindex. Sitemaps full of redirects and errors waste crawl attention.

Size limits and sitemap index files

The protocol caps a single sitemap at 50,000 URLs and 50 MB (52,428,800 bytes) uncompressed. The tool shows the URL count and file size as you paste, and warns if you go over either limit. A site with more pages splits them across several sitemap files and lists those files in a sitemap index, which may itself list up to 50,000 sitemaps.

Splitting by section, such as one sitemap for products, one for blog posts and one for static pages, also makes reporting easier: search engine webmaster tools show indexing figures per sitemap, so a problem in one section stands out. Sitemaps can be served gzip-compressed as sitemap.xml.gz; the 50 MB limit applies to the uncompressed size.

Getting search engines to read it

  1. Upload the file, usually to the root of your site as /sitemap.xml. A sitemap can only list URLs in its own folder and below, so the root is the safe place.
  2. Add a Sitemap line with its full URL to your robots.txt file, so any crawler that reads robots.txt can find it.
  3. Submit the sitemap URL in Google Search Console and Bing Webmaster Tools to see processing errors and indexing reports.
  4. Regenerate the file whenever you add, remove or substantially change pages.
Everything runs in your browser. Your URL list is processed on your device; nothing is uploaded, fetched or stored.

Frequently Asked Questions

How many URLs can one sitemap contain?

Up to 50,000 URLs, and the file must be no larger than 50 MB uncompressed. For more pages, split them across several sitemaps and list those in a sitemap index file. The tool warns you if your list goes over either limit.

Does a sitemap guarantee my pages get indexed?

No. It helps search engines discover URLs and notice changes, but each engine decides for itself what to crawl and index. Pages with thin or duplicate content may be skipped whether or not they are in a sitemap.

Should I include changefreq and priority?

They are optional. Google has said it ignores both. Other engines may read them, so they do no harm, but they will not make a page crawl faster or rank higher. The tool leaves them out unless you choose a value.

What date should I use for lastmod?

The date the page's main content last changed meaningfully. Do not update it for trivial changes such as a new copyright year, and do not set every page to today. Use the custom date option for a specific date, or leave lastmod out if you do not know.

Why was one of my lines rejected?

Each line must be a complete URL starting with http:// or https://, with no spaces. Relative paths like /about and bare domains like example.com/page are not valid in a sitemap. Rejected lines are listed with their line numbers.

Why does my URL look different in the output?

URLs are normalized the way browsers do it: the host is lowercased, a bare domain gains a trailing slash, non-ASCII characters are percent-encoded, and an ampersand is written as &amp; because XML requires it. The address itself is unchanged.

Where should I put sitemap.xml?

Usually in the root of your site, at /sitemap.xml. A sitemap can only list URLs in its own folder and below. Then add a Sitemap line to robots.txt and submit the URL in Google Search Console and Bing Webmaster Tools.

Can this tool crawl my site to find the URLs?

No. It never fetches anything. You paste the URLs, for example from your CMS, an export of your pages or a crawler you run yourself, and it formats them into a valid sitemap.

Should I include URLs that redirect or are set to noindex?

No. List only the final, canonical URL of each page that returns a 200 status and that you want indexed. Redirects, error pages and noindex pages in a sitemap send search engines mixed signals.

Related Calculators