Leave a cell empty to use the defaults below. Scanning fetches each page (4 at a time, 500 per run) to read its images, hreflang links, robots meta, canonical and modified date.
| URL | lastmod | changefreq | priority | Scan | Remove |
|---|---|---|---|---|---|
| https://example.com/ | not yet | ||||
| https://example.com/about | not yet | ||||
| https://example.com/blog | not yet |
Google uses lastmod when it is accurate.
Google ignores it; Bing and others may read it.
Google ignores it. By depth: home 1.0, then 0.8, 0.64 and down.
Plain text or * wildcards, for example /tag/ or *?page=*
The protocol allows 50,000. Larger lists become a sitemap index plus files.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-09-30</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2026-09-30</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/blog</loc>
<lastmod>2026-09-30</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
Upload the file to your site root, add a Sitemap: line to robots.txt and submit the URL in Google Search Console. Check a live file with the XML Sitemap Validator.
How to use
Add your URLs
Crawl your homepage in Crawl from URL, pull an existing file in Import a sitemap, or paste full URLs in Paste URLs. Every source adds to one list, and duplicates are skipped.
Scan and set the tags
Press Scan pages to read images, hreflang, noindex and canonicals. Choose defaults for lastmod, changefreq and priority, edit single rows in the table, and add exclude patterns.
Download and submit
Download sitemap.xml, a gzipped copy or a text sitemap. Large lists download as a ZIP with an index. Upload to your site root and submit the URL in Google Search Console.
Why XML Sitemap Generator
- Three sources in one list: crawl, import an existing sitemap, or paste.
- Per-URL lastmod, changefreq and priority, with priority by depth as an option.
- Adds image and hreflang entries and drops noindex or canonicalised pages after a scan.
- Splits lists over 50,000 URLs into files plus a sitemap index.
An example sitemap.xml, tag by tag
A sitemap is a urlset element holding one url element per page. The smallest useful entry looks like this: <url><loc>https://example.com/blog/cold-brew</loc><lastmod>2025-06-01</lastmod></url>. Each URL must be absolute, on the same host as the sitemap, and have characters such as & escaped, which this tool does for you.
After you upload the file, add one line to robots.txt, Sitemap: https://example.com/sitemap.xml, and submit the same URL in Search Console. The Sitemaps report there shows how many URLs Google read and any errors it found.
| Tag | Required | What it holds |
|---|---|---|
| urlset | Yes | The wrapper for the whole file, with the sitemaps.org namespace. |
| url | Yes | One entry per page. |
| loc | Yes | The full page URL, including https://. |
| lastmod | No | Date the page last changed, in YYYY-MM-DD format. Google uses it when it is accurate. |
| changefreq | No | A hint such as weekly. Google ignores it. |
| priority | No | A value from 0.0 to 1.0 relative to your other pages. Google ignores it. |
| image:image | No | An image on the page, with image:loc holding its URL. Needs the image namespace. |
| xhtml:link | No | A language version of the page with its hreflang code. Needs the xhtml namespace. |
Sitemap index files for large sites
One sitemap file may list 50,000 URLs. A larger site uses several files and a sitemap index, a small XML file whose sitemap entries point at each file. You submit only the index to Search Console, and Google reads the files it lists.
When your list passes the limit, or the number you set under URLs per sitemap file, the generator writes sitemap-1.xml, sitemap-2.xml and so on, plus sitemap.xml as the index. Enter the address where the files will live so the index points at the right URLs, then upload all of them to that folder.