Sitemap index
<lastmod>
When a child sitemap last changed — the element that lets a crawler skip a file it has already seen.
An index <lastmod> describes the sitemap file, not the pages listed in it. Kept accurate, it is the cheapest optimisation in the whole protocol: a crawler comparing it against its last visit can skip an entire 50,000-URL file in one request.
The format is the same W3C Datetime as everywhere else, and the same discipline applies. An index whose children all carry today's date tells a crawler to refetch everything, every time.
- Format
- Sitemap index
- Namespace
- Sitemap protocol 0.9
- Parent
- <sitemap>
- How many
- At most one per <sitemap>.
What our validator does
Coverage is reported as a warning: the validator says how many child sitemaps carry a lastmod and how many do not.
Broken and fixed
Both documents below are well-formed XML — that is the point of this corpus — and both are run through the validator on every test run. The verdicts here are what it returned, not what we expect it to.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-1.xml</loc>
</sitemap>
</sitemapindex>1 child sitemap(s) have no <lastmod>.<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-1.xml</loc>
<lastmod>2026-08-10</lastmod>
</sitemap>
</sitemapindex>Where it reaches
- Datatypesxs:dateThe lexical rules the value follows.
- ToolsSitemap validatorReports lastmod coverage across the index.
Related elements
- <sitemap>One child sitemap in an index: a required <loc> pointing at the sitemap file, and an optional <lastmod> for it.
- <lastmod>When the page last changed. The one piece of sitemap metadata search engines still act on — and only if you keep it honest.
- <loc>The URL of a child sitemap. Same element name as in a sitemap, different meaning: it points at a file, not at a page.
Get started
Bring order to the XML your team can't afford to ignore.
Create a free account and get a private workspace to search, validate, diff, and monitor your XML feeds, sitemaps, schemas, and vendor integrations.