XML Sitemap
A file listing all important URLs on your website for search engines.
What is XML Sitemap?
An XML sitemap is a file that lists the URLs of important pages on your website that you want search engines to crawl and index. It helps search engines discover your content more efficiently, especially for large sites or pages with few internal links.
Sitemaps can include additional information like last modification date, change frequency, and priority level. They should be submitted to Google Search Console and Bing Webmaster Tools.
Why XML Sitemap matters
Sitemaps help search engines discover pages that might be hard to find through normal crawling. They're especially important for new sites, large sites, or pages deep in the site structure. A proper sitemap ensures important content doesn't get missed.
How to implement
Generate a sitemap including all important URLs
Exclude pages you don't want indexed
Submit sitemap to Search Console
Reference sitemap in robots.txt
Keep sitemap updated automatically
Use sitemap index files for large sites
Code example
<?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-01-15</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
</urlset>Common mistakes to avoid
- Including noindex pages in sitemap
- Not updating sitemap when content changes
- Exceeding 50,000 URL limit without index
- Including non-200 status URLs
Examples
sitemap.xml at site root
Sitemap index for sites with 50,000+ URLs
Separate sitemaps for different content types
Frequently asked questions
No, sitemaps help discovery but don't guarantee indexing. Google decides whether to index pages based on quality and other factors.
50,000 URLs or 50MB uncompressed. For larger sites, use a sitemap index that references multiple sitemaps.