Different Sitemap Examples: How to Create an Effective Sitemap for Your Website (2026 Guide)
Last updated: September 2026
A sitemap is a file that lists the URLs on your website so search engines and AI crawlers can discover and prioritize them for indexing, instead of relying only on internal links to find every page. Below are different sitemap examples for the situations you'll actually run into, along with how to create an effective sitemap for your website and the technical details that most beginner guides on this topic tend to skip.
What a Sitemap Actually Does (and Doesn't Do)
A sitemap doesn't guarantee indexing and it doesn't directly boost rankings. What it does is give crawlers a direct list of URLs to check, along with signals like when a page last changed, which is especially useful for large sites, new sites with few internal links pointing to deep pages, and sites that publish content frequently. Google has been explicit that a sitemap doesn't replace good internal linking, it supplements it.
1. Basic XML Sitemap Example
This is the standard format nearly every CMS and sitemap generator produces:
<?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-09-01</lastmod>
</url>
<url>
<loc>https://example.com/blog/example-post</loc>
<lastmod>2026-08-15</lastmod>
</url>
</urlset>
A note most guides get wrong: Google's own sitemap documentation states plainly that it ignores the priority and changefreq tags that older sitemap examples still include. Bing confirmed the same position in 2025. lastmod is the one field worth keeping accurate, since Google does use it, but only when the date is "consistently and verifiably accurate" and reflects an actual meaningful content change, not a bot-generated timestamp that updates on every server rebuild.
2. Sitemap Index File Example
If your site has more than 50,000 URLs, or your sitemap file would exceed 50MB uncompressed, you need a sitemap index that points to multiple smaller sitemap files rather than one giant 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-09-01</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-products.xml</loc>
<lastmod>2026-08-28</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-categories.xml</loc>
<lastmod>2026-08-20</lastmod>
</sitemap>
</sitemapindex>
Splitting by content type (posts, products, categories) rather than arbitrary chunks also makes it far easier to spot indexing problems later, since you can check each segment's coverage separately in Search Console.
3. Image Sitemap Example
Useful for image-heavy sites (photography, ecommerce, recipe blogs) that want images discovered independently of the page they sit on:
<?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/product/blue-ceramic-mug</loc>
<image:image>
<image:loc>https://example.com/images/blue-mug-front.jpg</image:loc>
<image:title>Blue ceramic mug, front view</image:title>
</image:image>
<image:image>
<image:loc>https://example.com/images/blue-mug-side.jpg</image:loc>
<image:title>Blue ceramic mug, side view</image:title>
</image:image>
</url>
</urlset>
4. Video Sitemap Example
Required if you want video content eligible for video-specific search features:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>https://example.com/tutorials/how-to-repot-a-plant</loc>
<video:video>
<video:thumbnail_loc>https://example.com/thumbs/repot.jpg</video:thumbnail_loc>
<video:title>How to Repot a Plant Without Killing It</video:title>
<video:description>A step-by-step guide to repotting houseplants safely.</video:description>
<video:content_loc>https://example.com/videos/repot.mp4</video:content_loc>
<video:duration>240</video:duration>
</video:video>
</url>
</urlset>
5. News Sitemap Example
For publishers wanting fast discovery in Google News, news sitemaps only include articles published in the last 48 hours:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
<url>
<loc>https://example.com/news/local-election-results</loc>
<news:news>
<news:publication>
<news:name>Example Daily</news:name>
<news:language>en</news:language>
</news:publication>
<news:publication_date>2026-09-10T08:00:00Z</news:publication_date>
<news:title>Local Election Results Announced</news:title>
</news:news>
</url>
</urlset>
6. HTML Sitemap Example (for Human Visitors)
Unlike the XML formats above, an HTML sitemap is a normal webpage built for people, usually linked in the footer. It's a plain nested list of links grouped by section:
<nav aria-label="Sitemap">
<h2>Site Map</h2>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/blog">Blog</a>
<ul>
<li><a href="/blog/seo-guide">SEO Guide</a></li>
<li><a href="/blog/content-marketing">Content Marketing</a></li>
</ul>
</li>
<li><a href="/products">Products</a></li>
<li><a href="/contact">Contact</a></li>
</ul>
</nav>
This format helps human navigation and accessibility, and it can support internal linking, but it does nothing for crawler discovery on its own since it's just a regular page, not a machine-readable feed.
7. robots.txt Sitemap Declaration Example
Beyond submitting your sitemap in Search Console, declare its location in your robots.txt file so any crawler, including AI crawlers, can find it automatically:
User-agent: *
Allow: /
Sitemap: https://example.com/sitemap-index.xml
The GEO Consideration Most Sitemap Guides Miss
Sitemaps aren't just for Google anymore. AI crawlers from OpenAI, Anthropic, Perplexity, and others also use sitemap and robots.txt signals to find and evaluate content for citation in AI-generated answers. Two practical steps for 2026:
- Confirm AI crawlers aren't blocked in robots.txt if you want your content eligible for citation in AI answers. Check for user-agent blocks on crawlers like GPTBot, ClaudeBot, and PerplexityBot specifically, since some default CMS configurations block them without the site owner realizing it.
- Consider an llms.txt file alongside your sitemap. It's an emerging, not yet universally adopted, standard that gives AI systems a curated summary of your site's most important content, functioning as a lightweight companion to your XML sitemap rather than a replacement for it.
How to Create and Submit a Sitemap
- Most CMS platforms generate one automatically. WordPress (via Yoast or Rank Math), Shopify, Webflow, and Wix all create and update a sitemap without manual work.
- For custom or static sites, use a generator like XML-Sitemaps.com for small sites, or generate it programmatically from your database for larger ones so it updates automatically as pages are added or removed.
- Submit it in Google Search Console under Sitemaps, and in Bing Webmaster Tools separately, since each search engine needs its own submission even though both read the same file format.
- Declare it in robots.txt as shown above so crawlers that don't rely on manual submission can still find it.
- Recheck coverage periodically. Search Console will flag URLs it couldn't index from your sitemap, which often reveals broken pages, redirect chains, or accidentally noindexed URLs worth fixing.
Sitemap Best Practices Checklist
- Keep each sitemap file under 50,000 URLs and 50MB uncompressed, splitting into an index file if you exceed either limit.
- Only include canonical, indexable URLs. Pages marked
noindexor blocked in robots.txt shouldn't appear in your sitemap, since that sends crawlers a contradictory signal. - Keep
lastmodaccurate and meaningful. An inflated or auto-updated timestamp that doesn't reflect real content changes can reduce Google's trust in the field over time. - Remove broken and redirected URLs promptly rather than letting them accumulate in the file.
- Regenerate and resubmit after major site restructuring, not just once at launch.
Add FAQ Schema to This Kind of Content
If you're publishing a sitemap FAQ section like the one below on your own site, mark it up with FAQPage structured data. It won't guarantee a rich result, but it gives search engines and AI answer engines a clean, unambiguous question-and-answer pairing to pull from, which is exactly the kind of machine-readable signal this article's GEO section talks about.
FAQ
What is a sitemap and why do I need one? A sitemap is a file listing your site's URLs that helps search engines and AI crawlers discover and prioritize pages for indexing, and it's especially useful for large sites, new sites, or sites where important pages have few internal links pointing to them.
What's the difference between an XML sitemap and an HTML sitemap? An XML sitemap is a machine-readable file built for search engine and AI crawlers, while an HTML sitemap is a normal webpage built for human visitors and typically linked in the site footer.
Do I still need to set priority and changefreq in my sitemap? No. Google has confirmed it largely ignores these fields, so focus your effort on accurate URLs and a meaningful lastmod date instead.
How many URLs can one sitemap file contain? Up to 50,000 URLs or 50MB uncompressed, whichever comes first. Larger sites should use a sitemap index file that points to multiple smaller sitemap files.
Does having a sitemap help with AI search visibility? It helps indirectly, since AI crawlers use similar discovery signals to search engines. Making sure your sitemap is current and that AI crawlers aren't accidentally blocked in robots.txt matters more for AI visibility than the sitemap format itself.
Bottom Line
A sitemap is infrastructure, not a ranking trick. Get the technical basics right (accurate URLs, a meaningful lastmod, correct file size limits, and a robots.txt declaration), and it will quietly do its job of helping every crawler, from Googlebot to the newer AI crawlers, find and understand your site.