XML sitemaps that crawlers can trust
What belongs in a sitemap, the protocol's limits, and how to tell crawlers where it is.
Reviewed against official sources on · 4 min read
The essentials
- List only canonical URLs that return 200 and are indexable. Leave out redirects, errors and noindexed pages.
- Use the same protocol and host as the live site.
- Keep each file to no more than 50,000 URLs and 50 MB uncompressed. Split larger sites using a sitemap index.
- Add a "Sitemap:" line to robots.txt. It can appear anywhere in the file.
- lastmod is optional. Only include it if it reflects real content changes.
Sitemap: https://www.example.com.au/sitemap.xmlDo you need one?
Small, well-linked sites can be fully discovered without a sitemap. A sitemap still helps crawlers find new and deep pages faster, and gives you a single list to check.
Sources
See how your site handles this
Free, no account needed: which search and AI crawlers your robots.txt allows, and how a few of your pages respond.
Want every page checked, with the fixes written out?
The Technical Audit crawls up to 150 pages, checks the documented search and AI crawlers, renders JavaScript and gives you a prioritised fix list for your developer. A$79 one-off, not a subscription.