Home » SEO Tools » XML Sitemap Generator
Turn a list of page URLs into a valid sitemap.xml file that you can upload to your site and submit to search engines.
Last updated 13 November 2026
Only URLs that start with http and contain no spaces are kept. Lines that fail validation are listed in the message above, so you can fix them and generate again.
A sitemap is a file that lists the pages of a site in a format search engines can read. It helps crawlers discover pages, especially new pages and pages that are hard to reach through links alone.
This tool turns a plain list of URLs into a valid sitemap.xml file. Add optional lastmod, changefreq and priority values if you want them, then download the file and upload it to your site root.
An XML sitemap is a file that lists the pages of a site in a format search engines can read. Search engines use it as a map of the site. It tells a crawler which pages exist, so it can find new pages and pages that are hard to reach through links alone. A sitemap does not make a page rank, and it does not promise that a listed page will be indexed. It is a hint that helps crawlers discover pages. Think of it as a list you hand to a search engine, not as a command.
Every entry in a sitemap is a url block with tags inside it. Only the loc tag is required. The other three are optional, and Google treats them very differently.
| Tag | What it means | What Google does with it |
|---|---|---|
| loc | The full address of the page. This tag is required for every entry. | Google reads the loc value to find the page. |
| lastmod | The date the page last changed, written as a date like 2026-11-13. | Google uses lastmod to decide when to crawl a page again. |
| changefreq | How often the page may change, such as daily, weekly or monthly. This tag is optional. | Google ignores changefreq. |
| priority | How important the page is compared with other pages on the same site, from 0.0 to 1.0. This tag is optional. | Google ignores priority. |
The key point is simple. Google ignores changefreq and priority, but it does use lastmod. So always set an honest lastmod date, and do not spend time tuning changefreq or priority values that search engines will not act on.
One sitemap file can hold at most 50,000 URLs, and the file must be no larger than 50 MB before compression. That limit comes from the sitemap format itself, and it applies to every site. If your site has more than 50,000 pages, or your file is larger than 50 MB, split the URLs across several sitemap files. Then list those files in a sitemap index file and submit the index file instead of a single sitemap. A sitemap index file is a small file that lists sitemap files the same way a sitemap lists pages. This tool creates one sitemap file from the URLs you paste. It does not create a sitemap index file, so for a very large site, generate one file per group of URLs and build the index file by hand from the file names.
Here is a complete sitemap for a small site with five pages. Each page is one url block inside the urlset. The home page changes most often, so it has a weekly changefreq and a priority of 1.0. The other pages change less often, so they use monthly and 0.8.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://botixtech.com/</loc>
<lastmod>2026-11-13</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://botixtech.com/words-counter</loc>
<lastmod>2026-11-10</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://botixtech.com/age-calculator</loc>
<lastmod>2026-11-10</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://botixtech.com/bmi-calculator</loc>
<lastmod>2026-11-10</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://botixtech.com/text-to-binary-converter</loc>
<lastmod>2026-11-10</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
Read the example from the top. The first line states the XML version and encoding. The urlset line names the sitemap format. Each url block then gives one page, starting with its loc address. The lastmod date tells Google when the page last changed. The changefreq and priority values are there because the format allows them, but Google ignores both, so they change nothing about how the page is treated. Paste these five URLs into the tool above, add the same lastmod, changefreq and priority values after commas, and you will get the same file back. Once you have the file, check your file with our XML Sitemap Validator to make sure the XML parses cleanly before you submit it.
Once the file is ready, put it where search engines can find it. Upload sitemap.xml to the root of your site, so it opens at an address like https://botixtech.com/sitemap.xml. Then tell search engines where it is. Add this line to your robots.txt file: Sitemap: https://botixtech.com/sitemap.xml. If you do not have a robots.txt file yet, use the Robots Txt Generator to create one. Then open Google Search Console, go to the Sitemaps report, and submit the same address. Search Console will show whether Google could read the file and how many URLs it found in it. If the report shows an error, fix the file, upload the new copy, and submit the same address again. You do not need to submit the sitemap again each time you update it. Google reads the file at the same address on its own schedule, so keep the file in place and keep it fresh.
A sitemap should list only pages you want search engines to find and index. Leave out everything else. Do not list pages that return an error, login pages, admin pages, or pages that only exist after a form is submitted. Do not list pages blocked by robots.txt or pages marked noindex, since those pages tell search engines not to index them. Do not list duplicate versions of the same page, such as a print version or a page with tracking parameters in the address. Do not list pages with no useful content, such as empty tag pages or thin search result pages on your own site. Every URL in the sitemap should be a real page that returns a 200 status and that you would be happy to see in search results.
A sitemap goes stale fast if no one updates it. Regenerate the file whenever you add an important page, remove a page, or change a page in a way that matters. Set the lastmod date to the day you made the change, so Google knows the page is new or updated. Then upload the new file to the same address, replacing the old one. A fresh sitemap with honest lastmod dates helps Google find new pages sooner and stop crawling pages that no longer exist. If your site changes every day, make updating the sitemap part of the same routine as publishing the change.
Upload it at the root of your site, so it opens at the address that ends with sitemap.xml, then submit that address in Search Console.
No. A sitemap helps crawlers discover pages, but indexing is still a search engine decision for each page.
They are hints about how often a page may change and how important it is relative to other pages on the same site. They are optional.
No. Everything runs in your browser on your own device, so your text never leaves your computer.
One sitemap file can hold at most 50,000 URLs and must be no larger than 50 MB before compression. If your site is larger than that, split the URLs across several sitemap files and list those files in a sitemap index file, then submit the index file instead of a single sitemap.
No. Google ignores the changefreq and priority tags. It does use lastmod, so keep the lastmod date accurate when a page changes. Changefreq and priority are still part of the sitemap format, and this tool lets you add them, but they do not change how Google treats your pages.
Regenerate it whenever you add or remove an important page, or when you change a page in a way that matters. Update the lastmod date for the pages you changed. You do not need to resubmit the sitemap in Search Console each time, since Google reads the file at the same address on its own schedule.
Leave out pages that return an error, login and admin pages, pages blocked by robots.txt, pages marked noindex, duplicate versions of the same page, and pages with no useful content. A sitemap should list only real pages you want search engines to find and index.