All Tools

XML Sitemap Generator

Create an XML sitemap

URLs (one per line)

sitemap.xml

Advertisement Space
Sitemap Generator: A sitemap generator builds an XML sitemap listing your site's URLs so search engines can discover and index every page. Enter your URLs with optional priority and change frequency, and copy a valid sitemap.xml.

Frequently Asked Questions

What is an XML sitemap?
An XML sitemap is a file that lists a website's important URLs along with metadata like last-modified date and priority. It helps search engines find and crawl pages efficiently, especially on large or new sites.
Do I need a sitemap for SEO?
A sitemap isn't mandatory but strongly recommended, particularly for new sites, large sites, or pages that aren't well linked internally. It speeds up discovery and indexing.
Where do I submit my sitemap?
Submit your sitemap URL in Google Search Console and Bing Webmaster Tools, and reference it in robots.txt with a Sitemap: line so all crawlers can find it.
How many URLs can a sitemap contain?
A single sitemap can hold up to 50,000 URLs and must be under 50 MB uncompressed. For larger sites, split URLs across multiple sitemaps and list them in a sitemap index.
📤 Share This Tool
Found this useful? Share with friends!

XML sitemaps: the rules, the limits and what Google ignores

A sitemap file may contain at most 50,000 URLs and must not exceed 50 MB uncompressed. Beyond that you split it and list the parts in a sitemap index. Google reads <loc> and <lastmod>; it has publicly stated that it ignores <changefreq> and <priority> entirely.

The tags, and whether they matter

TagRequired?Does Google use it?
<urlset>Yes, as the rootStructural
<url>Yes, one per entryStructural
<loc>YesYes — must be a full absolute URL
<lastmod>NoYes, if it is accurate and consistent
<changefreq>NoNo — ignored
<priority>NoNo — ignored
<xhtml:link rel="alternate">NoYes, for hreflang
<image:image>NoYes, for image discovery
<video:video>NoYes, for video indexing

Hard limits

LimitValue
URLs per sitemap file50,000
Uncompressed file size50 MB
Sitemaps per index file50,000
Nesting depth of sitemap indexesOne level — an index may not point at another index
EncodingUTF-8, with URLs entity-escaped
Compressiongzip permitted; the 50 MB limit applies to the uncompressed size

A minimal valid sitemap

Every URL must be absolute, on the same host as the sitemap, and entity-escaped — an ampersand in a query string becomes &amp;. The lastmod value must be a W3C datetime, so 2026-09-10 or 2026-09-10T14:30:00+05:30.

Structure of a two-URL sitemap

Root element <urlset> with the namespace http://www.sitemaps.org/schemas/sitemap/0.9

One <url> block per page

Inside each: <loc> with the full URL and optionally <lastmod>

That is the whole protocol. Anything more elaborate is optional and mostly ignored.

What belongs in a sitemap — and what does not

Getting it discovered

  1. Add a Sitemap: line to robots.txt pointing at the absolute URL. Every major crawler reads it, and it requires no account anywhere.
  2. Submit it in Google Search Console under Sitemaps, and in Bing Webmaster Tools.
  3. Ping IndexNow when a page changes — Bing, Yandex, Seznam and Naver consume it, and it is a single HTTP request with a key file on your host.
  4. Keep the URL stable. Moving your sitemap resets its crawl history.
  5. Google retired the old anonymous sitemap ping endpoint in 2023; robots.txt and Search Console are the supported routes now.

Reading the Search Console report

"Discovered" in the Sitemaps report means Google has read the file and found that many URLs — it is not a count of indexed pages. The gap between discovered and indexed is the number that matters, and a large gap almost always points at content quality or crawl budget rather than at a sitemap defect. If URLs land in "Discovered — currently not indexed" and stay there with no crawl date, Google has decided they are not worth fetching yet, and submitting the sitemap again will not change that.

More questions people ask

How many URLs can a sitemap have?

A single sitemap file is capped at 50,000 URLs and 50 MB uncompressed. Larger sites split into multiple files and list them in a sitemap index, which itself may reference up to 50,000 sitemaps.

Does Google use the priority and changefreq tags?

No. Google has stated publicly that it ignores both. Only loc and lastmod carry weight, and lastmod only when it is consistently accurate.

Where should I put my sitemap file?

At the root of the domain, typically /sitemap.xml, and reference it with a Sitemap: line in robots.txt. A sitemap can only contain URLs at or below its own directory level, so a root location keeps things simple.

Do I still need to ping Google when my sitemap changes?

No. Google retired the anonymous sitemap ping endpoint in 2023. Listing the sitemap in robots.txt and submitting it once in Search Console is enough; Google recrawls the file on its own schedule. For Bing and Yandex, IndexNow gives faster notification.

Will adding a page to my sitemap get it indexed?

Not by itself. A sitemap helps discovery, but indexing is a separate quality decision. If pages sit in "Discovered — currently not indexed", the sitemap is working and the content or the crawl budget is the constraint.

Everything on this page runs in your browser — nothing you type is uploaded or stored.

Answers, not just a number

Short, exact answers to the questions people ask alongside this tool — the number first, then the working.

For teams, not just visitors

Want this calculator on your own site?

We build the calculators on SnoopTool as embeddable widgets in your branding, wired to your own lead form — the same maths, your colours, your domain, your leads. Tell us which one and we will send back a working demo you can put in front of your team.

One reply from a person, within one business day. No newsletter, no sequence. See our privacy policy.