Help us fix this page
If you found a broken link, missing page, or incorrect redirect, please let us know. Your report helps us improve the website for everyone.
Help us fix this page
If you found a broken link, missing page, or incorrect redirect, please let us know. Your report helps us improve the website for everyone.
Let’s Build Something Great
Tell us about your goals and request a free project estimate.

A sitemap is an XML file that lists the URLs on your site and provides metadata about each URL—when it was last updated, how frequently it changes, and its relative importance. Search engines like Google read this file to crawl your site more efficiently.
While Google can usually discover most pages through proper internal linking, a sitemap improves crawling for larger or more complex sites, new sites with few external links, and sites with rich media content like video, images, or news articles.
This guide covers the types of sitemaps, why they matter for SEO, how to create and submit them, and best practices for keeping them effective.
changefreq and priority tags.A sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them. Search engines read this file to crawl your site more efficiently.
Sitemaps tell search engines which pages and files you consider important and provide valuable information about these files—for example, when the page was last updated and any alternate language versions.
| Benefit | Explanation |
|---|---|
| Improved indexing | Ensures Google can find and index all pages, especially for large or complex sites |
| Faster discovery | New or updated content is discovered more quickly |
| Rich media support | Provides additional information about video, image, and news content |
| Crawl efficiency | Helps bots prioritize important pages over less critical ones |
You might need a sitemap if:
You might not need a sitemap if:
Even if you don’t strictly need one, having a sitemap rarely hurts and provides a clear signal to search engines about your content priorities.
The most common and versatile format. XML sitemaps are extensible and can supply additional data about images, video, and news content.
Best for: All websites.
Pros:
Cons:
Helps Google index images on your website by providing the location of images included in a page.
Best for: Image-heavy websites, photography portfolios, e-commerce sites with product images.
How it works: Add image URLs to your XML sitemap using the image namespace, and Googlebot can index these images for Google Image Search.
Provides additional information about videos hosted on your pages, including running time, rating, and age-appropriateness rating.
Best for: Video-focused websites, online learning platforms, media publishers.
Key requirements:
Helps Google News discover and index your articles quickly.
Best for: News websites, blogs publishing daily updates.
Key requirements:
A file that lists multiple sitemap files. Required when you exceed the 50,000 URL or 50 MB size limit.
Best for: Large websites, e-commerce sites, or sites with multiple content types.
Limits: You can submit up to 500 sitemap index files per site, and each index file can reference up to 50,000 sitemaps.
All sitemap formats limit a single sitemap to:
| Limit | Value |
|---|---|
| URLs per sitemap | 50,000 |
| File size (uncompressed) | 50 MB |
If you exceed either limit, you must break your sitemap into multiple sitemaps and optionally create a sitemap index file.
Pro tip: For sites with 1,000–5,000 URLs, there’s no need to split. For larger sites, consider splitting by content type (e.g., posts, products, categories) for better tracking in Search Console.
Most CMS platforms generate sitemaps automatically:
| Platform | Sitemap Location |
|---|---|
| WordPress (Yoast SEO) | yourdomain.com/sitemap_index.xml—updates automatically when you publish, modify, or delete posts |
| WordPress (Rank Math) | yourdomain.com/sitemap_index.xml |
| Shopify | yourdomain.com/sitemap.xml |
For custom-built sites, you can generate a sitemap using:
XML sitemaps use the following structure:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/page1</loc>
<lastmod>2026-08-01</lastmod>
</url>
<url>
<loc>https://example.com/page2</loc>
<lastmod>2026-07-15</lastmod>
</url>
</urlset>Important notes:
changefreq and priority tags in 2026—focus on including the right URLs rather than worrying about these valuesGoogle deprecated the sitemap ping endpoint in 2023—HTTP “pings” to the old REST endpoint now return a 404 error. You must submit sitemaps through Search Console, robots.txt, or both.
Add a Sitemap directive to your robots.txt file:
User-agent: *
Allow: /
Sitemap: https://www.yourwebsite.com/sitemap.xmlThe Sitemap directive is independent of User-agent blocks and applies globally—it’s the most efficient way to communicate the sitemap’s existence to all crawlers simultaneously.
Best practice: Use both methods. Declaring the sitemap in robots.txt ensures all crawlers find it passively, and Search Console provides detailed indexing reports.
Your sitemap should only include:
noindexAvoid including:
noindex tagsIf you exceed 50,000 URLs or 50 MB, split your sitemap and use a sitemap index file:
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-posts.xml</loc>
<lastmod>2026-08-01</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-products.xml</loc>
<lastmod>2026-07-15</lastmod>
</sitemap>
</sitemapindex>Requirements:
Ensure your sitemap doesn’t list URLs that are blocked in robots.txt—this sends mixed crawl signals. Googlebot won’t crawl URLs that are disallowed, even if they appear in the sitemap.
Don’t specify different URLs as canonical for the same page using different techniques. For example, don’t specify one URL in a sitemap but a different URL for that same page using rel=”canonical”. Consistency matters.
Use Google Search Console’s Sitemaps report to:
| Issue | Cause | Fix |
|---|---|---|
| Sitemap format errors | Invalid XML syntax | Validate with W3C validator or Search Console’s sitemap report |
| Too many URLs | Exceeds 50,000 URL or 50 MB limit | Split into multiple sitemaps and use a sitemap index file |
| Broken links | URLs in sitemap return 404 or 5xx | Remove or update broken URLs |
| Excluded pages | Pages in sitemap have noindex or are blocked by robots.txt | Remove excluded pages from sitemap |
| Empty sitemap warning | No recent articles in news sitemap | Normal for news sitemaps during low publication periods—won’t cause issues |
changefreq and priority tags in 2026—focus on including the right URLs.Sitemaps remain a vital tool for helping search engines discover, crawl, and index your content efficiently. While they’re not required for every site, they provide clear benefits for larger sites, new sites, and sites with rich media content.
The fundamentals haven’t changed dramatically: XML sitemaps are the most versatile format, size limits are 50,000 URLs and 50 MB, and you should only include canonical, indexable URLs. Google Search Console provides the most detailed sitemap reporting, and referencing sitemaps in robots.txt ensures all crawlers can find them.
What has changed is the deprecation of the sitemap ping endpoint in 2023—you must now submit through Search Console or robots.txt. And in 2026, Google ignores changefreq and priority tags, so focus on getting the right URLs into your sitemap rather than worrying about metadata.
Need help with your technical SEO? Playful Sparkle has been engineering digital products since 2004, offering SEO & Digital Marketing, Web Development, and technical consulting services. Our team can help you audit and optimize your sitemaps, crawl budget, and overall technical SEO strategy. Contact us to discuss how we can help you improve your site’s search visibility.