XML Sitemap Generator

Turn a list of page URLs into a standards-compliant sitemap.xml with changefreq, priority, and optional lastmod, then download it.

Loading tool…

XML Sitemap GeneratorPaste your page URLs one per line (or as the first column of a CSV) and get a ready-to-submit sitemap.xml that follows the sitemaps.org 0.9 schema. Set a default changefreq and priority, optionally add a lastmod date, then copy the XML or download the file. Everything is built in your browser — your URL list is never uploaded or crawled.

What is XML Sitemap Generator?

XML Sitemap Generator is a free in-browser tool that converts a plain list of URLs into a valid urlset sitemap.xml document. It wraps each valid http or https URL in a url entry with a loc tag and the changefreq and priority values you choose, and can include a shared lastmod date when you turn that option on. SEO specialists, webmasters, and developers use it to create the sitemap that search engines like Google and Bing read to discover pages, especially when launching a site or migrating one without a CMS plugin to generate the file. It does not crawl, fetch, or visit any URL — it only formats the addresses you provide, skipping anything that is not a valid http/https link and showing how many entries were included versus skipped.

How to use XML Sitemap Generator

  1. Paste your page URLs into the box, one URL per line; pasted CSV rows work too — the first column is used as the URL.
  2. Open Settings and pick a default changefreq (for example weekly) and priority (for example 0.5) to apply to every URL.
  3. Optionally turn on lastmod and choose a date to add a shared <lastmod> tag to each entry.
  4. Check the included and skipped counts to confirm every URL was recognized as a valid http/https link.
  5. Copy the generated sitemap.xml from the output box, or click Download to save the file.
  6. Upload sitemap.xml to your site root and submit its URL in Google Search Console or Bing Webmaster Tools.

Examples

Two pages, weekly

Input

https://example.com/
https://example.com/about

Output

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://example.com/about</loc>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
</urlset>

CSV paste uses the first column

Input

https://example.com/blog,2024-01-01
https://example.com/contact,2024-02-01

Output

<loc>https://example.com/blog</loc>
<loc>https://example.com/contact</loc>

Ampersands in the URL are escaped

Input

https://example.com/search?q=a&p=2

Output

<loc>https://example.com/search?q=a&amp;p=2</loc>

Frequently asked questions

How should I enter my URLs?
Put one absolute URL per line, each starting with http:// or https://. You can also paste CSV-style rows — only the first column is read as the URL, so an exported list like "url,date" works without cleanup. Lines that are not valid http/https links are skipped and counted separately.
What do changefreq and priority do?
They are hints in the sitemaps.org format. changefreq (always, hourly, daily, weekly, monthly, yearly, never) suggests how often a page changes, and priority (1.0 down to 0.0) suggests its relative importance on your site. This tool applies one default value of each to every URL; search engines treat both as advisory, not commands.
What is lastmod and is it required?
lastmod is the date a page last changed. It is optional, so it is off by default. Turn it on and pick a date to add the same <lastmod> tag to every entry. Leaving it off simply omits the tag, which is perfectly valid.
Does this tool crawl my website?
No. It never fetches, visits, or crawls any URL. It only formats the exact addresses you paste into sitemap XML, so it cannot discover pages for you — you supply the full list of URLs yourself.
Is my URL list sent to a server?
No. The sitemap is generated entirely in your browser with JavaScript. Nothing you paste — including private or unpublished URLs — is uploaded, stored, or sent anywhere, and the download is produced locally from the text on the page.

Related tools