Technical SEO

Sitemap lastmod in 2026: How Google Uses It and How to Set It

How Google uses the sitemap lastmod date in 2026, what counts as a real update, why fake dates get ignored, and how to set lastmod correctly on any platform.

10 min read

Sitemap lastmod: dated entries in an XML sitemap guiding recrawls

Quick answer

The lastmod element in an XML sitemap tells search engines when a page last changed meaningfully. Google uses it to schedule recrawls, but only if the dates prove consistently accurate. Update lastmod when the main content, structured data or important links change, not for copyright years or sidebar tweaks. Google ignores changefreq and priority.

Key takeaways

  • Google uses lastmod when it is consistently and verifiably accurate.
  • Change lastmod only for significant content changes.
  • Fake or always-current dates teach Google to ignore them.
  • Use W3C Datetime format, such as 2026-11-22 or a full timestamp.
  • Google ignores changefreq and priority values.

What is lastmod?

lastmod is an optional element in an XML sitemap entry that records when the page at that URL was last modified. It sits alongside the loc element, which holds the URL. Search engines can use the date to decide which pages have changed since their last crawl and should be recrawled first. On a site with thousands of pages, that helps updated content get refreshed in the index sooner instead of waiting its turn among unchanged pages.

Google's documentation states that it uses the lastmod value if it is consistently and verifiably accurate, for example by comparing it with the last modification it sees when it crawls the page. Bing has also said that accurate lastmod values are important for its crawling. In other words, lastmod is a trust signal: honest dates make it useful, and dishonest ones make it worthless for your whole site.

Comparison of changes that should and should not update the sitemap lastmod date. View full size
If a reader would not notice the change, it probably should not move lastmod.

How does Google use lastmod?

Google discovers URLs from sitemaps and decides when to recrawl them. When lastmod is trustworthy, a newer date than Google's last crawl is a reason to recrawl that URL sooner. It is a scheduling hint, not a command: Google may still decide not to recrawl a page immediately, and lastmod has no effect on ranking. Google has explained that it evaluates trust per site, so if your dates turn out to be unreliable, it may ignore lastmod across your sitemaps.

Google retired the old sitemap ping endpoint, partly because accurate lastmod values in sitemaps it already reads made pings unnecessary. The current recommendation is simple: keep your sitemap up to date, set lastmod honestly, and let Google read the sitemap on its own schedule.

Sitemap fields and how Google treats them
FieldPurposeGoogle's use
<loc>The page URLRequired; used for discovery
<lastmod>Last significant changeUsed if consistently accurate
<changefreq>Expected change frequencyIgnored
<priority>Relative importanceIgnored

What counts as a significant change?

Google describes significant changes as updates to the main content, the structured data or the links on a page. For an article, that means rewriting sections, adding new information or correcting facts. For a product page, it means changes to price, availability, specifications or images. For a category page, it means products added or removed. Changes that do not affect what the page is about or what it offers, such as a new copyright year, a rotated ad or an updated 'popular posts' widget, are not significant.

  • Article: new sections, updated facts, corrected errors, refreshed examples.
  • Product: price, stock, specifications, images or reviews changed.
  • Category or listing: items added or removed.
  • Any page: structured data or important internal links changed.
  • Not significant: footer years, ads, widgets, counters or cosmetic CSS changes.

What format should lastmod use?

Use the W3C Datetime format. A date alone, such as 2026-11-22, is valid. A full timestamp with a timezone, such as 2026-11-22T09:30:00+00:00, is also valid and more precise, which helps on sites that update the same page more than once a day. Avoid local formats like 22/11/2026, dates in the future and empty lastmod elements, all of which are either invalid or misleading.

lastmod formats
ValueValid?Note
2026-11-22YesDate only; fine for most sites
2026-11-22T09:30:00+00:00YesFull timestamp with timezone
2026-11-22T09:30ZYesUTC shorthand
22/11/2026NoNot W3C Datetime
A future dateMisleadingUndermines trust in your dates

Why do fake lastmod dates backfire?

A common mistake is setting every URL's lastmod to the time the sitemap was generated, so the whole site appears to change every day. Some plugins and frameworks do this by default. Others deliberately bump dates in the hope of more frequent crawling. Google compares the dates with what it actually finds when it crawls. When most 'updated' pages turn out to be unchanged, it learns your dates are noise and stops using them, which removes a useful signal for the pages that really did change.

The same applies to changing the visible 'updated on' date on articles without changing the content. Google has warned against superficial date changes made only to look fresh. A page that claims to be updated but is not gains nothing and can lose trust.

Five-step process for setting sitemap lastmod dates correctly from real content changes. View full size
The rules for what counts as a significant change matter more than the sitemap generator.

How do you set lastmod on common platforms?

Most CMSs and frameworks can generate sitemaps with lastmod, but the default source of the date varies. WordPress SEO plugins generally use the post's modified date, which changes whenever the post is saved, including for trivial edits. That is usually acceptable, but avoid re-saving large numbers of posts for cosmetic reasons. Shopify and other hosted platforms set lastmod from the product or page update time. Static site generators and custom frameworks often use the file's modification time or the build time, which can reset every date on every deploy.

  1. Check what your sitemap generator uses as the lastmod source.
  2. If it uses build or generation time, switch to a content-modified field or the last commit date of the content file.
  3. Exclude template-only changes from updating the content date.
  4. Make visible 'last updated' dates and structured data dateModified use the same source.
  5. Regenerate the sitemap and compare a few dates with real edit history.

Should lastmod match the date shown on the page?

Ideally, yes. If an article shows 'Updated 22 November 2026', the sitemap lastmod and the dateModified in its structured data should agree. Consistent dates across the sitemap, the visible page and structured data make it easier for search engines to trust all three. Mismatches, such as a sitemap claiming yesterday while the page says last year, are a common sign of an automated lastmod that is not tied to content.

Does lastmod matter for small sites?

Less than for large ones. On a site with a few dozen pages, Google can recrawl everything regularly, and lastmod makes little difference. It becomes valuable on sites with thousands of pages, frequent updates or limited crawl capacity, such as news sites, e-commerce catalogues, marketplaces and large blogs. Even on small sites, though, accurate dates cost nothing and avoid the trust problem if the site grows.

You may also read

How do you request a recrawl after updating a page?

For a handful of important pages, update lastmod and use URL Inspection's Request indexing to ask Google to recrawl them. For many pages, rely on the sitemap: once Google reads it and sees newer lastmod values, it can prioritise those URLs. Resubmitting an unchanged sitemap does not help. Our guide on request indexing limits explains the daily quota for individual requests.

A worked example: an e-commerce catalogue

A retailer with 60,000 products notices that price changes take a week or more to show in Google's snippets. Its sitemap sets every product's lastmod to the time the sitemap is generated each night. Google appears to ignore the dates entirely.

The team changes the sitemap to use each product's last price, stock or content update, splits products into sitemaps by category, and stops regenerating unchanged files. Over the next few weeks, Google's crawl activity in Crawl stats shifts toward products whose dates changed, and updated prices start appearing within a day or two for most products.

How should large sites organise sitemaps around lastmod?

On large sites, how you split sitemaps affects how useful lastmod is. If a single sitemap file changes whenever any of its 50,000 URLs changes, Google has to download the whole file to find the few updates. Splitting by section or by content type keeps most files stable, so only the files with real changes need to be fetched. A sitemap index file can carry a lastmod for each child sitemap, which should reflect the latest change to any URL inside that file.

Some publishers add a dedicated sitemap of recently changed URLs, covering the last day or week, alongside the full sitemaps. News publishers use a Google News sitemap for articles from the last two days. Both approaches give search engines a small, fast-changing file to check frequently while the large files stay mostly unchanged.

Sitemap organisation for large sites
ApproachBenefitNote
Split by section or typeOnly changed files need fetchingAlso improves reporting by section
Sitemap index with lastmodShows which child files changedIndex lastmod = latest child change
Recent-changes sitemapSmall file for frequent checksKeep the full sitemaps too
News sitemapFresh articles for Google NewsArticles from the last two days only

How do you audit your lastmod values?

Pick a sample of 20 to 30 URLs from your sitemaps and compare each lastmod with the page's real edit history in your CMS or version control. If most dates match the last meaningful change, your setup is sound. If they all show the same recent date, the generator is using build time. If they are years old for pages you know were updated, the content date is not being saved. Then compare against on-page dates and structured data. Repeat the audit after CMS upgrades, theme changes and migrations, which often reset how dates are generated. Fixing the source of the dates once is far more effective than correcting individual entries, because the next build would overwrite any manual changes anyway. Document the rule for your team so future changes keep it.

  • All dates identical and recent: the generator uses build or generation time.
  • Dates older than known edits: content changes are not updating the date.
  • Dates newer than any visible change: template or widget changes are bumping dates.
  • Sitemap and page dates disagree: different sources feed each one.

What about lastmod for deleted or redirected pages?

Sitemaps should list only canonical, indexable URLs that return 200. When a page is deleted or redirected, remove it from the sitemap rather than updating its lastmod. Listing redirected or 404 URLs sends mixed signals and shows up as errors and warnings in Search Console. If a page moves, list the new URL with its own accurate lastmod and let the redirect handle the old one. Our guide on Page with redirect explains why redirected URLs show as not indexed.

Does Bing treat lastmod differently?

Bing has been even more explicit than Google about lastmod, describing accurate dates as a key signal for its crawler to find updated content and recommending that sites set them carefully. Bing also supports IndexNow, which notifies participating search engines of changes directly when you publish. Using accurate lastmod for all search engines and IndexNow for Bing and others is a common, low-effort combination. Our guide on IndexNow explains how to set it up.

What are the myths about lastmod?

  • Myth: a newer lastmod improves rankings. It is a recrawl hint, not a ranking factor.
  • Myth: setting every date to today gets more crawling. It teaches Google to ignore your dates.
  • Myth: changefreq and priority help. Google ignores both.
  • Myth: you must ping Google after updating. Google retired the sitemap ping; accurate lastmod is enough.

Accurate lastmod is the right way to tell search engines about changes on your own site. Blink Index's free link checker helps you confirm updated pages are crawlable and indexable before you rely on lastmod, and the free index checker tracks whether they appear in Google and Bing. For pages you cannot put in your own sitemap, such as backlinks on other sites, Blink Index submissions help discovery at 1 credit per URL, without any promise of indexing.

Blink Index workflow alongside sitemap lastmod, with the check step highlighted. View full size
An accurate lastmod only helps if the page it points to can actually be indexed.
  1. Tie lastmod to real content changes in your CMS or build process.
  2. Check updated pages with the free link checker.
  3. Track indexing with the free index checker.

See the FAQ and the pricing page for more about Blink Index.

Summary: dates Google can trust

lastmod tells search engines when a page changed significantly. Google uses it when your dates prove accurate and ignores it when they do not. Update it only for real changes to content, structured data or links, use W3C Datetime format, keep it consistent with on-page dates, and drop changefreq and priority. For fixing sitemaps that Google cannot read at all, see Sitemap couldn't fetch, and for the role of sitemaps alongside links, sitemaps, internal links and crawl budget.

Frequently asked questions

Does Google use lastmod in sitemaps?

Yes, if the dates are consistently and verifiably accurate. Google compares lastmod with the changes it sees when crawling. If the dates prove unreliable, it may ignore lastmod for the site.

When should I update the lastmod date?

When the page changes significantly: main content, structured data or important links. Do not update it for footer years, widgets, ads or other changes that do not affect what the page offers.

Does Google use changefreq and priority?

No. Google has said it ignores changefreq and priority. You can leave them out of your sitemaps entirely and focus on accurate loc and lastmod values.

What format should lastmod use?

W3C Datetime. A date such as 2026-11-22 is fine for most sites, and a full timestamp with a timezone, such as 2026-11-22T09:30:00+00:00, is also valid. Avoid local date formats and future dates.

Does updating lastmod improve rankings?

No. lastmod is a hint for when to recrawl a page, not a ranking signal. Bumping dates without real changes can make Google ignore your dates altogether.

Keep reading

Sources and further reading

Facts about how Google crawls and indexes pages come from Google's own documentation: