XML Sitemap Generator

Turn a list of URLs into a valid XML sitemap with changefreq, priority and lastmod.

The XML Sitemap Generator turns a plain list of page URLs into a valid sitemap.xml file that follows the official sitemaps protocol. A sitemap helps search engines discover and understand the pages you want crawled, which is especially valuable for new sites, large sites, and pages that are not well linked internally. You paste your URLs, choose a few optional settings, and copy the finished XML.

Each URL becomes a url entry containing a loc element, and you can optionally attach a shared changefreq hint, a priority value, and a lastmod date to every entry. These fields give crawlers extra context about how often pages change and their relative importance, though search engines treat them as hints rather than guarantees. The generator wraps everything in the correct urlset element with the required namespace.

The whole process happens in your browser, so your URLs are never uploaded. Duplicate URLs are removed automatically, a missing protocol is added so bare domains still produce valid loc values, and special characters are safely escaped. The result is clean, standards-compliant XML that you can save as sitemap.xml and upload to your site root or submit in search console tools.

Features

  • Converts a list of URLs into a valid urlset sitemap with the correct XML namespace.
  • Optionally applies a shared changefreq value such as daily or weekly to every URL.
  • Optionally adds a priority value and a lastmod date, or stamps today's date automatically.
  • Deduplicates URLs and adds https to any line missing a protocol so entries stay valid.
  • Escapes ampersands and other special characters so query-string URLs never break the XML.
  • Reports the number of URLs included and how many duplicates were skipped.
  • Runs locally with copy and text export so you can save the output as sitemap.xml.

How to use XML Sitemap Generator

  1. Paste your page URLs into the input box, one URL per line.
  2. Optionally choose a changefreq value that describes how often the pages typically change.
  3. Optionally set a priority and a lastmod date, or enable the option to use today's date.
  4. Review the generated XML to confirm each URL appears inside its own url entry.
  5. Check the stats for the number of URLs included and any duplicates that were removed.
  6. Copy the XML, save it as sitemap.xml, upload it to your site, and submit it to search engines.

Benefits

  • Site owners help search engines discover every important page, including poorly linked ones.
  • Developers generate a compliant sitemap without installing plugins or writing scripts.
  • SEO teams add lastmod dates so crawlers can prioritise recently updated content.
  • Migration projects rebuild a sitemap quickly after a batch of URLs changes.
  • Small sites without a CMS sitemap feature get a valid file in seconds.
  • Local processing keeps unpublished URLs private and off any third-party server.

The sitemaps protocol defines a urlset root element containing one url block per page, each with a required loc element holding the absolute URL. Optional children include lastmod for the last modification date, changefreq for how often the page changes, and priority from zero to one for relative importance. This tool applies the optional values uniformly, which suits sitemaps where most pages share similar characteristics.

A single sitemap file can contain up to fifty thousand URLs and should stay under the uncompressed size limit defined by the protocol. If your site is larger, split the URLs into multiple sitemaps and reference them from a sitemap index file. For dates, the lastmod value should reflect genuine content changes, since inaccurate dates can reduce how much crawlers trust the signal over time.

Because generation is local, your URL list never leaves the browser, which matters for staging sites and internal tools. After creating the file, place it at a stable location such as your site root, reference it in your robots file, and submit it through the relevant search console. Keep it updated as pages are added or removed so crawlers always see an accurate map of your site.

Frequently asked questions

Related tools