"How often should I update my sitemap?" sounds like it should have a calendar answer: weekly, monthly, every time you post. It does not. A sitemap is a list, and a list needs updating when the things it lists change. A site that publishes nothing for a month has a sitemap that is still current. A site that launches fifty pages in a morning has one that is stale before lunch.

This guide explains the rule behind the timing, the one field that tempts people into updating too eagerly, and how to refresh the file with the free XML Sitemap Generator on Ovatly when a real change happens.

Contents

  • Quick answer
  • The trigger is change, not the calendar
  • What counts as a change worth an update
  • The lastmod rule: accurate or absent
  • The changefreq field is not a schedule
  • How to refresh your sitemap, step by step
  • Worked example: growing a two-page sitemap
  • Limitations and alternatives
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Update your sitemap whenever the set of canonical, indexable pages on your site changes: you publish a page, remove a page, or move a URL. There is no benefit in rebuilding it on a schedule while nothing has changed. When you do rebuild, keep lastmod dates honest, because Google uses lastmod only when it is consistently accurate, and do not expect the changefreq field to drive anything; Google largely ignores it. The XML Sitemap Generator makes the rebuild itself a few minutes of work.

The trigger is change, not the calendar

The sitemap's job is discovery: it hands search engines the list of pages you want found. That list is accurate exactly as long as the site stands still. Publishing schedules vary wildly between sites, so any fixed interval would be wrong in both directions: too slow for a busy site, pointless churn for a quiet one.

The practical habit is to tie the update to the publishing workflow. The moment a change goes live, the sitemap joins the checklist for that change, the same way you would check the page itself. Sites that generate their sitemap automatically get this for free; if you build yours by hand, the trigger rule is what keeps the file trustworthy.

What counts as a change worth an update

Three events change the list, and each has a matching edit:

  • A page is published. Add its URL. A new page is exactly what the sitemap exists to surface, especially before other pages link to it.
  • A page is removed. Delete its line. Leaving it in place advertises a URL that now returns an error.
  • A URL moves. Replace the old address with the new canonical one. Redirects should be left out of the sitemap; the file lists destinations, not forwarding addresses.

Two related edits follow the same logic. If a page is set to noindex, it no longer belongs in a list of indexable pages, so take it out. If duplicate URLs are consolidated into one canonical page, the list should hold the canonical one only.

The lastmod rule: accurate or absent

The lastmod field is where update discipline is tested. It is meant to say when a page last changed, and Google uses it only when it is consistently accurate. That condition is easy to break: rebuild the file, stamp every entry with today's date, and the field now claims that unchanged pages changed. Do that routinely and the dates stop meaning anything.

The generator applies an optional last-modified date across the whole list, which suits a rebuild where the listed pages genuinely share a change, such as a site-wide relaunch. For ordinary updates, the honest approach is to date the pages that actually changed and resist freshening the rest. If you cannot keep the dates accurate, leaving lastmod out is better than publishing dates that are wrong.

The changefreq field is not a schedule

The name invites confusion. changefreq is an optional hint about how often a page tends to change, applied across the list when you generate the file. It is not an instruction that makes anything happen, and it is not your update timetable: Google largely ignores changefreq values, just as it largely ignores priority. Setting every page to daily does not get pages crawled daily, and it does not substitute for rebuilding the file when the URL list itself changes. Your real schedule is the trigger rule above.

How to refresh your sitemap, step by step

  1. Open the XML Sitemap Generator and paste your current URLs, one full URL per line, including https://, with the additions, removals and moves from your latest changes applied.
  2. Optionally choose a change frequency, a priority and a last-modified date to apply to every URL, keeping the date honest as described above.
  3. Check the skipped-lines report if any URL was rejected. Entries must be complete absolute URLs; a bare domain without the protocol is reported and excluded.
  4. Copy or download the generated sitemap.xml and upload it to your site root, replacing the old file. It stays referenced in robots.txt with a Sitemap line and in your search console accounts, so nothing else needs to change.

Worked example: growing a two-page sitemap

Start with the generator's own example: the lines https://example.com/ and https://example.com/about, with change frequency weekly and priority 0.8 selected. The output is a urlset where each page appears as a <url> block with its <loc> plus the chosen <changefreq> and <priority> values.

Now the site publishes a guide. That is a change, so the file is rebuilt with a third line, https://example.com/guide, added to the paste. Nothing about the two existing pages needs touching, and their dates should not be refreshed just because the file was regenerated. If the new line were typed as example.com/guide without the protocol, it would be reported and skipped, and the one page the update existed for would be missing from the file.

Limitations and alternatives

The generator caps a build at 2,000 URLs and tells you when it trims the list; the sitemap protocol itself allows up to 50,000 URLs and 50 MB uncompressed per file, and larger sites should be split into several files joined by a sitemap index. Special characters in URLs are XML-escaped automatically (for example & becomes &amp;). The tool also cannot watch your site for you: it rebuilds the file when you bring it a new list, and a sitemap, however current, is a discovery hint rather than a guarantee of indexing. If your platform generates and updates its sitemap automatically on every change, that automation already follows the trigger rule, and a hand-built file adds nothing.

Common mistakes

  • Updating on a schedule while changes wait. A monthly rebuild means new pages spend weeks undiscovered and removed pages stay listed.
  • Stamping every lastmod with today's date. Inaccurate dates get the field ignored.
  • Forgetting removals. Additions are memorable; deletions are the edit that gets skipped.
  • Leaving the old URL after a move. The file should list the new canonical address, not the redirect.
  • Treating changefreq as a promise. It is a hint Google largely ignores, not a crawling timetable.

FAQs

Is there a fixed schedule for updating a sitemap? No. A sitemap is a list of your canonical, indexable pages, so it needs updating when that list changes: a page published, a page removed, or a URL moved. If the list has not changed, the file is already current.

Should I refresh the lastmod date every time I rebuild the file? Only if the dates stay consistently accurate. Google uses lastmod only on that condition, so stamping today's date on pages that have not changed works against you.

Where do I put the sitemap file? At the root of the domain it describes, for example https://example.com/sitemap.xml, and reference it in robots.txt with a Sitemap line and in your search console accounts.

Why was one of my URLs skipped? Entries must be complete absolute URLs starting with http:// or https://. Relative paths and bare domains without a protocol are reported and excluded so the file stays valid.

Does updating my sitemap more often improve rankings? No. A sitemap helps discovery and crawling of new or deep pages; rankings depend on the pages themselves. Updating the file only matters because it keeps the discovery list accurate.

Conclusion

The right update interval for a sitemap is "whenever the site changes", and no interval at all when it does not. Tie the rebuild to publishing, keep the dates honest, and the file stays a list search engines can trust. The XML Sitemap Generator keeps the rebuild quick when a change does happen. For what goes wrong when the file is left to drift instead, see the companion guide, Sitemap Mistakes That Waste Your Crawl Budget, and for more in this series browse the SEO Tools category.