Every sitemap is produced somehow, and the somehow decides how stale it can get. A static sitemap is a fixed file: generated once, uploaded, and unchanged until someone generates it again. A dynamic sitemap is regenerated by your site software as content changes, so the file on the server reflects the current pages. Neither is automatically better. The right choice depends on how often your pages change and who keeps the list accurate.

This guide explains the difference and where Ovatly's free XML Sitemap Generator fits. It produces a static file from a list you paste, in your browser. That is a deliberate, transparent way to work, with a clear limit: the file only knows what you put in it, when you built it.

Contents

  • Quick answer
  • What a static sitemap is
  • What a dynamic sitemap is
  • How to choose: change rate, size and maintenance
  • How to build a static sitemap, step by step
  • Worked example: a two-page sitemap, one month later
  • Limitations and honest boundaries
  • Common mistakes
  • Troubleshooting
  • FAQs
  • Conclusion
  • References

Quick answer

Choose a static sitemap when your site is small or changes rarely, and you are willing to regenerate the file when pages are added or removed. Choose a dynamic sitemap, generated by your CMS, when pages change often enough that a hand-maintained list would drift out of date. Either way the file obeys the same rules: absolute URLs for canonical, indexable pages, at the site root, within the protocol limits of 50,000 URLs and 50 MB per file. Ovatly's XML Sitemap Generator makes the static kind: paste a list, get a valid sitemap.xml.

What a static sitemap is

A static sitemap is a snapshot. You assemble a list of URLs, run it through a generator, and upload the resulting file to the root of your domain, for example https://example.com/sitemap.xml. From that moment the file is frozen. If you publish a new page next week, it is not in the sitemap until you rebuild and re-upload the file.

The generator's workflow shows the shape of it. You paste URLs, one full URL per line including https://. You can optionally apply one change frequency, priority and last-modified date across the whole list. Lines that are not complete absolute URLs are reported and skipped, special characters are XML-escaped automatically, and you copy or download the finished sitemap.xml. The tool enforces a practical cap of 2,000 URLs per build and tells you when it trims the list.

The strengths of static are control and simplicity: you see exactly what is submitted, and nothing appears that you did not list. The weakness is drift: the file ages silently, and nothing warns you it no longer matches the site.

What a dynamic sitemap is

A dynamic sitemap is produced by software that knows your content: typically the CMS or the site framework itself. When a page is published, the software adds its URL; when a page is removed or set to noindex, the URL drops out. The file search engines fetch is rebuilt from the site's current state rather than from a list someone typed.

That automation suits sites where content changes faster than anyone would rebuild a file manually: news sections, large catalogues, busy blogs. Its weakness is the mirror image of the static strength. You look at the output less often, so a misconfigured generator can quietly list pages you never meant to submit, or keep pages that should have been removed. Dynamic generation moves the maintenance from editing the file to checking the rules that build it.

How to choose: change rate, size and maintenance

Start with change rate. A five-page business site might change twice a year; a static file rebuilt on each change is accurate and takes minutes. A shop adding products daily would leave a static file permanently behind, and there a dynamic file earns its keep.

Then consider size. The protocol allows up to 50,000 URLs and 50 MB uncompressed per file. A static build with this generator holds up to 2,000 URLs, which covers most small and medium sites in one file. Beyond that, split the site into several files joined by a sitemap index, a structure both setups can use.

Finally, consider maintenance. A static file needs a human habit: regenerate on change. A dynamic file needs a different habit: audit the output now and then to confirm it still lists canonical, indexable pages and nothing else. Pick the habit you will actually keep.

How to build a static sitemap, step by step

  1. List the canonical, indexable pages you want search engines to find, one per line, including https://. Leave out redirects, noindexed pages and duplicates.
  2. Open the XML Sitemap Generator and paste the list.
  3. Optionally set a change frequency, priority and last-modified date for the list. Treat lastmod with respect: it counts only when consistently accurate.
  4. Read the skipped-lines report and fix any rejected line.
  5. Download the generated sitemap.xml, upload it to your site root, and reference it in robots.txt with a Sitemap: line and in your search console accounts.
  6. Add a note to your publishing routine: when pages are added, removed or renamed, rebuild and re-upload the file.

Worked example: a two-page sitemap, one month later

The tool's own example builds a sitemap from two 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. A line like example.com/about, without the protocol, is reported and skipped.

As a static file, that output is complete and correct on the day it is made. Its future is the point of this guide. If a third page, /contact, is published next month, the file still describes a two-page site until someone repeats the build with three lines. On a dynamic setup the third page would appear on its own. Neither behaviour is a defect; they are different maintenance contracts, and the example shows where the static contract asks for your attention.

Limitations and honest boundaries

  • The generator makes static files only, from the list you paste. It does not connect to your site, watch for changes or update a published file.
  • One build is capped at 2,000 URLs and tells you when it trims. The protocol ceiling is 50,000 URLs and 50 MB uncompressed per file, handled by splitting into several files joined by a sitemap index.
  • The optional values are blunt: one change frequency, priority and last-modified date applied across the whole list, not per page.
  • Google largely ignores priority and changefreq values, and uses lastmod only when it is consistently accurate, whichever kind you run.
  • Either kind is a discovery hint, not a guarantee of indexing, and neither improves rankings.

Common mistakes

  • Treating a static file as set and forget. Its accuracy ends at the last rebuild.
  • Trusting a dynamic file blindly. Automation can list redirects, duplicates or noindexed pages if its rules are wrong. Audit the output.
  • Listing pages that should not be indexed. Both kinds should name canonical, indexable pages only.
  • Guessing at lastmod. Dates copied forward without real changes make the field worthless.
  • Forgetting the references. A sitemap works best where search engines can find it: at the site root, named in robots.txt, and submitted in your search console accounts.

Troubleshooting

A URL was skipped. It lacked the protocol. Entries must start with http:// or https://.

My list was trimmed. You passed the 2,000 URL build cap. Split the list and join the files with a sitemap index.

New pages are missing. On a static setup, the file predates them. Rebuild it.

FAQs

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.

Should every page be in the sitemap? List the canonical, indexable pages you want search engines to find. Leave out redirects, noindexed pages and duplicates; the sitemap is a discovery hint, not a guarantee of indexing.

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 a sitemap improve rankings? No, it helps discovery and crawling of new or deep pages. Rankings depend on the pages themselves.

How many URLs can one sitemap file hold? The protocol allows up to 50,000 URLs and 50 MB uncompressed per file. This tool enforces a practical cap of 2,000 URLs per build and tells you when it trims the list; split larger sites into several files joined by a sitemap index.

Conclusion

Static and dynamic sitemaps are the same file with different maintenance contracts. If your site changes rarely and you will rebuild on change, the static route with the XML Sitemap Generator is simple and fully under your control. If your site changes constantly, let the CMS regenerate the file and spend your effort auditing its output. If your pages carry media that matters, the companion guide How to Create a Video or Image Sitemap (and When You Need One) covers the extension layer, and the SEO Tools guides collect the rest of the series.

References