Toolerax logoToolerax
·6 min read

What Is an XML Sitemap?

An XML sitemap is a file that lists the URLs on your site so search engines can find and crawl them efficiently. Think of it as handing Google a table of contents rather than hoping it stumbles onto every page by following links.

What it looks like

It's XML with one <url> block per page, each containing a <loc> (the URL) and optionally a few hints:

  • lastmod — when the page last changed.
  • changefreq — how often it updates (daily, weekly…).
  • priority — relative importance from 0.0 to 1.0.

Which fields actually matter

Be honest about this: Google has said it largely ignores changefreq and priority and relies on its own crawling signals. The field that carries real weight is an accurate lastmod— it helps engines prioritise recrawling pages that genuinely changed. So don't agonise over priority values; keep lastmod truthful instead.

Do you even need one?

Sitemaps help most when:

  • Your site is large (thousands of pages).
  • It's new with few external links pointing in.
  • Pages are poorly interlinked or deep in the structure.
  • You have lots of media or news content.

A small, well-linked ten-page site technically doesn't need one — but a sitemap costs nothing and never hurts, so most sites should have one anyway.

Size limits

A single sitemap can hold up to 50,000 URLs and must stay under 50 MB uncompressed. Bigger sites split into multiple sitemaps tied together by a sitemap index file.

How to submit it

  1. Upload it to your site root, e.g. /sitemap.xml.
  2. Reference it in robots.txt with a Sitemap: line.
  3. Submit the URL in Google Search Console and Bing Webmaster Tools.

Generate one in seconds

Paste your URLs into the XML sitemap generator to produce a valid sitemap.xml with proper escaping and optional lastmod. Then make sure each of those pages has a well-sized title and description — preview them with the SERP snippet preview.

Tools mentioned in this article