XML Sitemap Generator
Turn a list of URLs into a valid XML sitemap.
<?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-07-24</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2026-07-24</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/blog</loc>
<lastmod>2026-07-24</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>Free XML sitemap generator. Paste your URLs and get a valid sitemap.xml with optional lastmod, changefreq and priority values, ready to submit to search engines. Runs in your browser — nothing uploaded.
What an XML sitemap is for
An XML sitemap is a machine-readable list of the URLs you want search engines to crawl, along with optional metadata like last-modified date. It doesn't guarantee indexing, but it helps crawlers discover pages — especially on large sites, new sites with few backlinks, or pages buried deep in the structure.
Submit it in Google Search Console and reference it from robots.txt with a Sitemap: line.
The format and limits
A sitemap follows the sitemaps.org schema:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/page</loc>
<lastmod>2026-07-01</lastmod>
</url>
</urlset>
Limits per file: 50,000 URLs and 50 MB uncompressed. Past that, split into multiple sitemaps and list them in a sitemap index file. Use fully-qualified, canonical URLs and consistent http/https and www usage.
Common mistakes
- Including non-canonical, redirected,
noindex, or 404 URLs — only list final, indexable pages. - Letting
lastmodlie; Google distrusts sitemaps where every date is "today". - Forgetting to update the sitemap when content changes.
- Over-weighting
<priority>and<changefreq>— Google largely ignores both, so don't obsess over them. - Not referencing the sitemap from robots.txt or Search Console.
How to use the XML Sitemap Generator
- 01Paste your page URLs, one per line.
- 02Choose changefreq and priority defaults.
- 03Toggle whether to include lastmod with today's date.
- 04Copy the sitemap.xml and upload it to your site root.
Frequently asked questions
Where do I put the sitemap?
Upload it to your site, commonly at https://example.com/sitemap.xml, then reference it in robots.txt and submit it in Google Search Console.
Are changefreq and priority required?
No. They are optional hints and search engines largely treat them as advisory. A clean list of valid <loc> URLs is the most important part.