We will tell you the truth.
Even when it costs us the account.
← Home / / 3 min read / Glossary

What Is an XML Sitemap?

An XML sitemap lists a site's important URLs to help search engines crawl it efficiently. Best practices, and a real example.

An XML sitemap is a file listing all the important URLs on a website, submitted to search engines to help them discover and crawl pages more efficiently. It acts as a map pointing search engines toward the content that matters, rather than relying purely on link discovery.

Why XML sitemaps matter

Sitemaps help search engines find pages that might otherwise be missed through normal link crawling, especially valuable on new sites with few external backlinks or sites with a large, sparsely-linked archive. Submitting a sitemap through Google Search Console speeds up discovery of new or updated pages, though it doesn’t guarantee indexing, a sitemap is a discovery aid, not an indexing guarantee. A sitemap listing broken, redirected, or noindexed URLs actively works against you, sending mixed signals about which pages actually matter.

How XML sitemaps work

  1. The file is generated, either automatically by a CMS plugin or manually, listing every important, indexable URL on the site.
  2. Each entry can include metadata like last-modified date, helping search engines prioritize what’s new or changed.
  3. The sitemap is submitted via Google Search Console and Bing Webmaster Tools, or referenced in robots.txt for automatic discovery.
  4. Search engines use it as a discovery aid, crawling the listed URLs more efficiently, though inclusion in the sitemap doesn’t force indexing on its own.

Sitemap best practices

  • Only include indexable, canonical URLs. Don’t list pages with noindex tags, redirects, or non-canonical duplicates.
  • Keep it updated automatically. Most modern CMS platforms regenerate the sitemap as content is published or removed, avoid manually maintained sitemaps that go stale.
  • Split large sitemaps into multiple files if you exceed 50,000 URLs or 50MB, using a sitemap index file to reference them.
  • Submit it through Search Console rather than assuming search engines will find it unprompted.
  • Reference it in robots.txt so any crawler, not just ones you’ve manually submitted to, can discover it automatically.

XML sitemap vs. HTML sitemap

FactorXML sitemapHTML sitemap
AudienceSearch engines and crawlersHuman visitors
FormatMachine-readable XMLStandard, browsable webpage
Typical location/sitemap.xmlA linked page like /sitemap
PurposeCrawl efficiency and discoveryNavigation and usability

Real example

For example, a typical sitemap lives at a URL like example.com/sitemap.xml and lists entries for every important page, along with metadata like when each page was last modified, so search engines know what’s new or updated without having to re-crawl the entire site to find out.

XML sitemaps and AI search

A clean, accurate sitemap supports AI crawlers in the same way it supports traditional search crawlers, giving them an efficient path to a site’s genuinely important content rather than requiring a slower, purely link-based discovery process. Some AI systems and answer engines rely on their own separate crawling infrastructure, but a well-maintained sitemap remains a low-cost, universally useful signal regardless of which crawler is reading it.

FAQ

Does submitting a sitemap guarantee my pages get indexed?

No. A sitemap aids discovery and crawling, but indexing still depends on content quality and Google’s own evaluation of each page’s value.

Do I need a sitemap if my site is small?

It’s still good practice even for small sites, since it costs almost nothing to maintain via a CMS plugin and gives search engines a clean, explicit reference regardless of site size.

Should noindexed pages be included in the sitemap?

No. Including noindexed pages sends a contradictory signal, the sitemap says “this matters” while the noindex tag says “don’t index this,” keep them consistent.

How do I check if my sitemap has errors?

Google Search Console’s Sitemaps report under Indexing shows submission status and flags specific errors, like unreachable URLs or formatting issues, directly.

Related terms

A sitemap gets Google to your door, it doesn’t get you invited in. Content quality still decides whether a page actually gets indexed.

Still here

Want this run on your actual traffic drop?

Send the domain and what you have been told. You get a straight answer. Including the one where we say do not hire us.