Looking for a reliable sitemap example you can use right away? This page gives practical XML templates you can copy, customize, and validate. We will keep it simple and focus on real use cases.
If you are new to sitemap basics, start with What Is a Sitemap? and then come back here for examples. If you want a longer SEO walkthrough, this XML Sitemap Guide covers strategy, submission, and troubleshooting.
All examples below follow the official sitemap protocol and are written in easy-to-edit format.
1. Basic XML Sitemap Example
Use this for a small business website or portfolio with a few core 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-03-05</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2026-02-20</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/contact</loc>
<lastmod>2026-02-15</lastmod>
<changefreq>yearly</changefreq>
<priority>0.6</priority>
</url>
</urlset>Keep the URLs canonical, indexable, and returning 200 status codes.
2. Blog Sitemap Example
If you publish articles often, this format helps search engines discover fresh content faster.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/blog</loc>
<lastmod>2026-03-05</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://example.com/blog/sitemap-example</loc>
<lastmod>2026-03-05</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/blog/xml-sitemap-guide</loc>
<lastmod>2026-02-28</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>Update `lastmod` only when content actually changes. Avoid fake daily updates.
3. Ecommerce Sitemap Example
For stores, prioritize category pages and in-stock product URLs.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/shop</loc>
<lastmod>2026-03-04</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://example.com/shop/laptops</loc>
<lastmod>2026-03-04</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://example.com/product/ultrabook-pro-14</loc>
<lastmod>2026-03-03</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
</urlset>Exclude duplicate parameter URLs like sort and filter combinations unless they are index-worthy.
4. Sitemap Index Example (For Larger Sites)
If your site is large, split URLs into separate files and reference them from a sitemap index.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemaps/pages.xml</loc>
<lastmod>2026-03-05</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemaps/blog.xml</loc>
<lastmod>2026-03-05</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemaps/products.xml</loc>
<lastmod>2026-03-04</lastmod>
</sitemap>
</sitemapindex>This approach is easier to maintain and troubleshoot in Search Console.
5. Image Sitemap Example
Use image extension tags when image search visibility matters for your project.
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://example.com/blog/sitemap-example</loc>
<image:image>
<image:loc>https://example.com/images/sitemap-cover.jpg</image:loc>
<image:title>Sitemap Example Guide</image:title>
</image:image>
</url>
</urlset>Keep image URLs crawlable and avoid blocked assets.
Common Mistakes When Using Templates
- -Including URLs blocked by `robots.txt` or marked `noindex`.
- -Adding redirect URLs instead of final destination URLs.
- -Using invalid XML syntax or wrong namespaces.
- -Leaving old or deleted pages in the sitemap after migrations.
How to Test Your Sitemap Example
1. Open the sitemap URL in a browser
Confirm it loads and returns HTTP 200.
2. Validate XML syntax
Use XML Validator before submission.
3. Submit to search engines
Submit in Google Search Console and Bing Webmaster Tools.
Related Tools and Guides
External References
- Sitemaps Protocol - Official XML sitemap format specification.
- Google Sitemaps Overview - How Google uses sitemap data.
- Build and Submit a Sitemap - Google implementation guide.
- Manage Large Sitemaps - Handling big websites with sitemap indexes.
- Google Image Sitemaps - Image-specific sitemap extension guidance.
- Google Search Console - Submit and monitor sitemap status.
- Bing Webmaster Sitemaps - Bing sitemap submission and rules.
- W3C XML Specification - XML syntax reference.