XML sitemap generator
What is an Xml Sitemap Generator?
An XML sitemap lists the pages you want search engines to crawl and index. It helps Google and Bing discover pages that are new, deep in the site or poorly linked. This generator turns a plain list of URLs into a sitemap file that follows the sitemaps.org protocol.
How to use it
- Paste your URLs, one per line, using full absolute URLs with https.
- Optionally set a last modified date.
- Download or copy the
sitemap.xmland upload it to the root of your site. - Submit it in Google Search Console and Bing Webmaster Tools, and reference it in robots.txt.
Example output
<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>
<url>
<loc>https://www.example.com/</loc>
<lastmod>2026-10-27</lastmod>
</url>
<url>
<loc>https://www.example.com/pricing</loc>
</url>
</urlset>Sitemap rules
- Maximum 50,000 URLs and 50 MB uncompressed per file; use a sitemap index for more.
- URLs must be absolute and on the same host as the sitemap.
- Escape special characters:
&must be written as&.
What Google actually uses
- loc: required.
- lastmod: used if it is consistently accurate. Do not set every page to today's date on each build.
- changefreq and priority: ignored by Google, so you can leave them out.
Only list good URLs
Include only canonical, indexable pages that return HTTP 200. Leave out redirects, 404s, noindex pages, duplicate parameter URLs and pages blocked by robots.txt. A clean sitemap helps search engines trust it.
Frequently Asked Questions
Do I need an XML sitemap?
Small, well-linked sites can be crawled without one, but a sitemap helps search engines find new and deep pages faster.
Does Google use priority and changefreq?
No. Google ignores both. It does use lastmod if the dates are consistently accurate.
How many URLs can a sitemap contain?
Up to 50,000 URLs and 50 MB uncompressed. Larger sites use a sitemap index that lists several sitemaps.
Should redirecting URLs be in my sitemap?
No. List only the final canonical URLs that return a 200 status.