My Tool Studio
SEO

XML Sitemap Generator

This XML sitemap generator builds a sitemap.xml from a crawl of your site, an existing sitemap or a list of URLs you paste. Crawl up to 200 pages, or import up to 5,000 URLs from a sitemap you already have, then edit lastmod, changefreq and priority for any URL in the table. Priority can step down by page depth, the way crawler-based generators set it. A page scan reads each URL's images, hreflang links, robots meta and canonical, so the file can carry image entries and language alternates and leave out noindex pages. Lists over 50,000 URLs are split into a sitemap index. Site owners use it before a launch, and SEOs use it to rebuild a messy sitemap that lists redirects and noindex pages.

Always freeNo sign upRuns in your browser
Crawl your site (up to 200 pages)
·Same-origin, respects robots.txt, ~10s per page
URLs in the list (3)

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.

URLlastmodchangefreqpriorityScanRemove
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.

3 URLs0.6 KB
sitemap.xml
<?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

01

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.

02

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.

03

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

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.

TagRequiredWhat it holds
urlsetYesThe wrapper for the whole file, with the sitemaps.org namespace.
urlYesOne entry per page.
locYesThe full page URL, including https://.
lastmodNoDate the page last changed, in YYYY-MM-DD format. Google uses it when it is accurate.
changefreqNoA hint such as weekly. Google ignores it.
priorityNoA value from 0.0 to 1.0 relative to your other pages. Google ignores it.
image:imageNoAn image on the page, with image:loc holding its URL. Needs the image namespace.
xhtml:linkNoA 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.

Common questions

Can the Crawl from URL tab collect my sitemap entries automatically?
Yes. It follows internal links from the address you enter, seeds the crawl from your existing sitemap when it finds one, and skips paths that robots.txt blocks for all crawlers. You then tick the pages you want and click Add to sitemap. One crawl covers up to 200 pages; import a sitemap to work with more.
What do changefreq and priority actually do in the sitemap file?
Google has said it ignores both and relies on lastmod when that date is consistently accurate. Other search engines may still read them. Set either one to Leave out for a leaner file, or keep priority on Automatic by page depth if another tool you use expects it.
How does the sitemap generator set priority by page depth?
It counts the folders in each path. The homepage gets 1.0, a page one level down such as /about gets 0.8, two levels down 0.64, then 0.51, 0.41 and 0.33 for anything deeper. Type a value in a row's priority cell to override it for that URL.
How many URLs can one sitemap.xml hold?
The protocol allows up to 50,000 URLs and 50 MB uncompressed per file. Past that, the tool splits the list into sitemap-1.xml, sitemap-2.xml and so on, writes a sitemap index that lists them, and downloads everything as a ZIP. You can also set a smaller number of URLs per file.
Why is my page still not indexed after I submit my XML sitemap?
A sitemap helps Google find pages; it does not force indexing. Google still decides based on quality, duplication and internal links. Check the page in Search Console's URL Inspection tool to see the reason it gives.
Can the XML sitemap generator add image and hreflang tags?
Yes, after a scan. Press Scan pages and the tool reads each page's img tags, og:image and link rel=alternate hreflang tags. With the two options ticked, the file gets image:image entries and xhtml:link alternates, and the matching namespaces are added for you.
Where do I put sitemap.xml and how do I tell Google about it?
Upload it to your site root so it loads at https://yoursite.com/sitemap.xml. Submit that URL in Google Search Console under Sitemaps, and add a line such as Sitemap: https://yoursite.com/sitemap.xml to robots.txt so other crawlers find it too.
Which lastmod date does the sitemap generator use?
By default it uses a date found on the page: the article:modified_time, og:updated_time or published time meta tag, read during a crawl or a scan. Pages without one get today's date. You can also use today for every URL, set one date, leave lastmod out, or type a date in any row.
Does the sitemap generator skip noindex or redirected pages?
After a scan it does. Pages with a noindex robots tag and pages whose canonical points to another URL are left out while those two options are ticked. Redirects are not detected, so check the finished file with the XML Sitemap Validator, which flags URLs that redirect or return errors.
Can I download a gzipped or plain text sitemap?
Yes. Download .xml.gz saves a compressed copy that search engines accept, made in your browser. Text sitemap saves one URL per line, a format Google also reads. Both hold the same URLs as the XML file.

More SEO tools

View all