A sitemap is a file that lists the pages of your website you want search engines to find and index. The kind that matters for SEO is the XML sitemap, a machine-readable list of URLs with their last-modified dates that you submit to Google directly. There is also the HTML kind, a regular page of links built for human visitors. One tells crawlers where everything is, the other tells people, and a site can sensibly have both.
The short version
- An XML sitemap lists the URLs you want indexed, with last-modified dates.
- Limits are 50,000 URLs and 50MB per file; a sitemap index chains files together.
- Google ignores priority and changefreq, and trusts lastmod only when it is honest.
- Submit it in Search Console and reference it in robots.txt.
What an XML sitemap looks like
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/</loc>
<lastmod>2026-07-27</lastmod>
</url>
<url>
<loc>https://www.example.com/services/</loc>
<lastmod>2026-06-14</lastmod>
</url>
</urlset> That is the whole format. Each url entry holds the address and, ideally, an accurate lastmod date. Google has said it ignores the optional priority and changefreq fields entirely, and uses lastmod only when it turns out to be consistently truthful. An honest sitemap is a standing invitation for crawlers to revisit what actually changed.
Who actually needs one
Google discovers pages by following links, so a small site with clean internal linking gets found either way. The sitemap starts earning its keep when discovery gets hard: sites with thousands of pages, new sites that few people link to yet, deep archives that internal links barely reach, and pages rendered in ways crawlers struggle to follow. It also gives you the page indexing report in Search Console, which compares what you said matters against what Google chose to index. That report is where indexing problems surface first.
The special-purpose variants
- Sitemap index files bundle multiple sitemaps for sites past the 50,000 URL limit.
- Image sitemaps surface images that load through scripts and galleries.
- Video sitemaps carry duration and thumbnail data for video content.
- News sitemaps are required plumbing for Google News publishers and only cover recent articles.
Most sites need none of these. A single well-maintained sitemap.xml, regenerated automatically on every publish, covers the typical business site completely. WordPress generates one natively and every major SEO plugin refines it; so do Shopify, Wix, and Squarespace, and static generators like the one this site runs on build it at deploy time.
How to submit it and keep it healthy
-
Find your sitemap URL
Usually your-domain.com/sitemap.xml or sitemap_index.xml. If nothing loads there, your platform's SEO settings will say where it lives.
-
Submit it in Search Console
Sitemaps, paste the URL, submit. Google reports how many of the listed URLs it has indexed, and the gap between the two numbers is your work list.
-
Reference it in robots.txt
A single Sitemap line hands the list to Bing and every other crawler without a webmaster account, and it is standard practice in a clean robots.txt file.
-
Keep the list clean
Only canonical, indexable, 200-status URLs belong. Redirects, noindexed pages, and dead URLs in a sitemap are contradictions that erode Google's trust in the file.
Where the HTML sitemap still fits
The old-fashioned links page is not an SEO tool anymore, but on large sites it still helps visitors find deep pages, and it gives every page on the site one more internal link path. If you build one, build it for people, organized by topic, not as a URL dump. The XML file remains the one search engines care about, and keeping it accurate belongs to the same routine as your redirects and crawl rules, which is to say technical SEO.
Questions people ask about sitemaps
Does every website need a sitemap?
Strictly, no. Google can find a small, well-linked site without one. But a sitemap costs nothing, most platforms generate it automatically, and it becomes genuinely important for large sites, new sites with few backlinks, and pages that are weakly linked internally.
How big can an XML sitemap be?
Up to 50,000 URLs and 50MB uncompressed per file. Bigger sites split URLs across several sitemaps and list them in a sitemap index file, which is itself just a sitemap of sitemaps.
Do priority and changefreq matter?
No. Google has said publicly that it ignores both fields. The lastmod date is the one it uses, and only when it proves consistently accurate. Generators that fill every page with priority 0.8 are decorating, not helping.
How do I submit a sitemap to Google?
Open Search Console, choose Sitemaps in the left menu, enter the sitemap URL, and submit. Add a Sitemap line to robots.txt as well so every other crawler finds it without an account.
Should URLs I do not want indexed be in the sitemap?
No. The sitemap is your statement of which pages matter. Listing redirected, noindexed, or 404 URLs sends Google contradictory signals, and Search Console will report the mess back to you as errors.