XML sitemap, n.

What is an XML sitemap?

A file in XML format that lists the URLs of a website you want search engines to discover, crawl and index.

Filed under crawling and indexing in the SEO glossary

Try the free xml sitemap checker

What an XML sitemap is

An XML sitemap is a machine-readable list of the URLs on your site that you want search engines to know about, usually served at /sitemap.xml. It helps crawlers discover pages that are new, deep in the site or poorly linked, and tells them when pages last changed.

It does not guarantee indexing. Google still decides which URLs to index based on quality and its own crawling.

Format and limits

Each URL sits in a <url> element with a required <loc> and an optional <lastmod>. A single file may hold up to 50,000 URLs and 50 MB uncompressed; larger sites split URLs across several files and list them in a sitemap index file.

Google ignores <priority> and <changefreq>, but it does use <lastmod> when the dates are consistently accurate, so update it only when the content really changes.

Best practices

List only canonical, indexable URLs that return 200: no redirects, 404s, noindex pages or parameter duplicates. Use absolute URLs on the same host and protocol, generate the file automatically so it stays current, and reference it in robots.txt with a Sitemap: line. Submit it in Google Search Console and Bing Webmaster Tools and watch the indexed count.

Example

A minimal sitemap:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-10-01</lastmod>
  </url>
  <url>
    <loc>https://example.com/pricing</loc>
  </url>
</urlset>
Check it on your site: XML sitemap checkerValidate your sitemap and spot redirected or broken URLs inside it. Free, no signup.
Questions

Frequently asked questions

Do small sites need an XML sitemap?

A small, well-linked site can be crawled without one, but a sitemap is easy to add and helps new pages get discovered faster.

How many URLs can a sitemap contain?

Up to 50,000 URLs or 50 MB uncompressed per file. Use a sitemap index to combine several files.

Should I include noindex pages in my sitemap?

No. Include only canonical URLs you want indexed, otherwise you send search engines conflicting signals.

Related terms

Keep learning

Full SEO glossary

More free tools

Check the rest of your SEO

All free SEO tools

Find every issue like this across your site

Fix it automatically, then see what the fix earned.

  • The AI drafts the fix for every issue like this across your site, ranked by impact
  • Approve it and the free WordPress plugin publishes it, with one-click undo
  • 28 days later, the clicks each fix earned, from your own Search Console
Fix my site free Free plan, no card · not on WordPress? Copy each fix in