Sitemap Generator
Generate an XML sitemap to help search engines discover your pages.
<?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-06-25</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2026-06-25</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/contact</loc>
<lastmod>2026-06-25</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/blog</loc>
<lastmod>2026-06-25</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/blog/post-1</loc>
<lastmod>2026-06-25</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/blog/post-2</loc>
<lastmod>2026-06-25</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>What is an XML sitemap?
An XML sitemap is a file that lists all the important URLs on a website, helping search engines discover and prioritise content for crawling. Submitted to Google Search Console and Bing Webmaster Tools, sitemaps are particularly valuable for large websites, new sites with few inbound links, sites with deep URL structures, or pages with rich media content that benefits from additional metadata.
XML sitemap structure
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc> β required: the URL
<lastmod>2025-03-15</lastmod> β optional: last modified date
<changefreq>weekly</changefreq> β optional: how often it changes
<priority>1.0</priority> β optional: 0.0β1.0 (default 0.5)
</url>
</urlset>Priority and changefreq: do they matter?
Google has stated publicly that it largely ignores the changefreq and priority fields in sitemaps, preferring to determine crawl frequency based on its own signals (PageRank, link velocity, content freshness). Despite this, setting sensible values is still good practice: priority 1.0 for your homepage, 0.8 for core pages, 0.5 for regular content, and 0.3 for archive or tag pages. Use changefreq as documentation for your team rather than an instruction to Google.
Sitemap best practices
Frequently asked questions
What is an XML sitemap?
An XML sitemap is a file listing the URLs of your site, optionally with metadata like last-modified date and priority. It helps search engines discover and crawl your pages.
Do I need a sitemap for SEO?
It is strongly recommended, especially for new or large sites. A sitemap helps Google and Bing find pages that internal links alone might not surface quickly.
Where do I submit my sitemap?
Submit it in Google Search Console and Bing Webmaster Tools, and reference it in your robots.txt with a Sitemap: line.
How often should I update my sitemap?
Whenever you add or remove pages. Many frameworks regenerate the sitemap automatically on each build so it always reflects your current pages.