DataHub Tools Sitemap XML Generator

Sitemap XML Generator

Local-first

Generate sitemap XML from a list of URLs with changefreq and priority values.

How this tool actually works

Each line accepts an absolute HTTP or HTTPS URL and an optional W3C date after a pipe. The tool rejects malformed, duplicate, cross-origin, and over-limit input; it never invents lastmod, changefreq, or priority values.

  • Validate absolute same-origin URLs
  • Accept optional explicit lastmod dates
  • Enforce the 50,000 URL entry limit

How to use it

  1. Paste one absolute URL per line, optionally followed by | YYYY-MM-DD.
  2. Keep every entry on the same origin as the first URL.
  3. Provide lastmod only for a known significant modification date.
  4. Use a sitemap index and publishing pipeline when the site needs multiple files.

Quick example

Example input

https://example.com/ | 2026-07-20
https://example.com/docs/

Expected result

Two <url> entries; only the first contains the supplied lastmod date.

The generator validates entry count and basic URL/date rules, but it does not crawl pages, prove that a date is accurate, or enforce the uncompressed 50 MB byte limit.

Best use cases

  • Draft a very small same-site sitemap.
  • Inspect basic sitemap XML structure.
  • Prepare URL lines for a proper publishing pipeline.

References and scope

The sitemap protocol requires absolute URLs and sets size limits. Google treats sitemap data as hints and recommends accurate lastmod values for significant page changes.

Sources checked July 24, 2026. Specifications and platform behavior can change; verify the sources before formal use.

Known limitations

  • The tool enforces the 50,000 URL count limit but not the 50 MB uncompressed byte limit.
  • It does not create sitemap indexes.
  • changefreq and priority are intentionally omitted; accurate URLs and lastmod data matter more.

FAQ

Does it invent lastmod dates?

No. lastmod is emitted only when you provide a valid date after a pipe.

Does it validate one site?

Yes. Every URL must share the first URL's origin.

Are changefreq and priority included?

No. They are intentionally omitted.

Does it support large sites?

It allows up to 50,000 entries; larger sites still need multiple files and a sitemap index.