Do I Need an XML Sitemap? (The Honest Answer)

Probably yes β but it matters less than most guides imply. An XML sitemap is a list of URLs you want search engines to know about. It genuinely helps discovery on new, large, or poorly-linked sites. It does not improve rankings, and it will not get a page indexed that Google has already decided isn't worth storing.
What it actually is
A file, usually at /sitemap.xml, containing a plain list of your canonical URLs:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/resources/what-is-a-backlink</loc>
<lastmod>2026-07-14</lastmod>
</url>
</urlset>
That's the useful part of the spec. Two other optional fields β <priority> and <changefreq> β appear in almost every generated sitemap and are ignored by Google entirely. Setting every page to priority 1.0 achieves nothing; neither does setting them thoughtfully.
<lastmod> is used, but conditionally: Google takes it seriously only if it's consistently accurate. A CMS that stamps today's date on every URL on every build teaches Google to disregard the field across your whole site. If your sitemap can't report real modification dates, it's better to omit lastmod than to fake it.
Who actually needs one
| Situation | Does a sitemap help? |
|---|---|
| Brand-new site with few or no inbound links | Yes, materially. Google has almost no other discovery path. |
| Large site β thousands of URLs | Yes. Discovery via crawling alone is slow and incomplete. |
| Deep pages buried five clicks from the homepage | Yes. A sitemap short-circuits weak internal linking. |
| Site with lots of media, or news content | Yes β image, video and news sitemaps surface things HTML crawling misses. |
| Small, well-linked site (under ~500 pages) with a clean nav | Marginally. Google will find everything by following links anyway. |
| Any site at all | Costs nothing, so submit one regardless. |
Google's sitemap documentation is unusually candid on this: if your site is small and properly linked internally, you may not need one. It's a discovery aid, not a requirement.
What a sitemap does not do
Worth being blunt, because the expectations gap here is where the frustration comes from.
- It doesn't improve rankings. Inclusion in a sitemap is not a quality signal and carries no weight in how a page is ordered.
- It doesn't guarantee indexing. A sitemap is a suggestion. Google routinely crawls sitemap URLs and declines to index them β reported as "Discovered β currently not indexed" or "Crawled β currently not indexed." Both are quality judgements, not technical faults.
- It doesn't override a blocker. A URL in your sitemap that's also blocked in
robots.txtor carrying anoindextag stays out. The sitemap loses that argument every time. If pages aren't indexing, work through why your website isn't showing up on Google before assuming the sitemap is at fault. - It doesn't replace internal links. An orphan page listed in a sitemap may get crawled, but with nothing linking to it, it has no internal signal of importance and typically performs poorly.
What belongs in one
The rule that matters more than any other: a sitemap should contain only URLs you'd be happy for Google to index, exactly as they should be indexed.
That means every entry is:
- Canonical β the version your canonical tag actually names, not a parameter or trailing-slash variant. See what a canonical tag is if you're unsure which version that is.
- Returning HTTP 200 β no redirects, no 404s.
- Indexable β no
noindex, not blocked inrobots.txt. - Absolute and consistent β full URLs, one protocol and hostname throughout.
Sitemaps full of redirects, dead URLs, and non-canonical duplicates are extremely common on older sites, and they do measurable harm: Search Console reports the errors, and Google discounts the file as a signal. A short accurate sitemap beats a long sloppy one.
Leave out: tag and filter archives, internal search results, thin pagination, and anything you'd be embarrassed to see in a search result.
Size limits and sitemap index files
One sitemap file holds a maximum of 50,000 URLs and 50 MB uncompressed. Past either limit, split it and publish a sitemap index β a sitemap of sitemaps:
<?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></sitemap>
<sitemap><loc>https://example.com/sitemap-products.xml</loc></sitemap>
</sitemapindex>
Splitting by content type isn't only about limits β it's a free diagnostic. Search Console reports indexed counts per submitted sitemap, so separate files tell you which section of your site is being ignored. A site where products index at 95% and blog posts at 30% has a content problem in one place, not a sitewide one, and you'd never see that from a single combined file.
How to submit it
- Search Console β Sitemaps β enter the path β Submit. This is the one that gives you reporting back.
- Declare it in
robots.txtwith aSitemap: https://example.com/sitemap.xmlline. This is how engines that aren't Google find it β see what a robots.txt file is. - Bing Webmaster Tools has its own submission, and Bing's index feeds Microsoft Copilot.
Note that the old practice of pinging Google's sitemap endpoint after each update no longer does anything β Google retired it in 2023. Submit once, keep the file accurate, and Google will re-fetch it on its own schedule.
When the sitemap isn't the problem
Most people arrive at sitemaps because pages aren't getting indexed, and for most of them the sitemap is already fine.
Discovery has two channels: sitemaps tell Google a URL exists, and links tell Google a URL matters. Only the second one carries any weight. A new domain can submit a perfect sitemap and still wait weeks, because nothing external has ever pointed at it and Google has no reason to prioritise the visit. The same site with one real inbound link from a site Google already crawls daily typically gets discovered in days β which is also why crawl budget behaves so differently on new versus established domains.
If you've submitted a clean sitemap, cleared the blockers, and pages still sit unindexed, the next lever isn't another sitemap trick. It's the first external link. That's the hardest thing to get for a site with no audience yet, and it's what Backlinkster is built for β you're matched with a site owner in a related niche, each of you places the other's link inside real content, and both placements are verified live by code.
Common sitemap errors and what they mean
- "Couldn't fetch" β usually a 404, a 5xx, or a
robots.txtrule blocking the sitemap path itself. Load the URL in a browser first. - "URL blocked by robots.txt" β a direct contradiction: you've listed a page as important and forbidden the crawl.
- "Submitted URL marked 'noindex'" β same contradiction, different mechanism.
- "Submitted URL has redirect" β list the destination, not the old URL.
- Indexed count far below submitted count β normal to a degree; a large gap points at content quality rather than the sitemap.
Frequently asked questions
Do I need an XML sitemap for a small website? Not strictly. A site under a few hundred pages with clean internal linking will be discovered fine without one. It costs nothing to publish and gives you per-section indexing reporting in Search Console, so there's little reason to skip it.
Does an XML sitemap help SEO rankings? No. It affects discovery β whether Google finds a URL β not how that URL ranks once found. Any tool promising ranking gains from sitemap tweaks is selling something.
How often should I update my sitemap? Automatically, whenever content changes. Nearly every CMS and static site generator does this on build. Manual sitemaps go stale within weeks and become a liability.
Should I include noindex pages in my sitemap? No. It's a direct contradiction and Search Console flags it as an error. The sitemap is your list of pages you want indexed.
What's the difference between an XML sitemap and an HTML sitemap? An XML sitemap is a machine-readable file for crawlers. An HTML sitemap is a normal page linking to your content, aimed at users β and because it creates real internal links, it can help with orphan pages in a way an XML file can't.
Do I need separate sitemaps for images and videos?
Only if media discovery matters to you. You can add image and video tags inside your existing sitemap entries, or publish dedicated files. For most sites, standard image markup and alt text does the job.
The bottom line
Publish an XML sitemap, generate it automatically, keep it to canonical indexable URLs, drop priority and changefreq, and only include lastmod if it's genuinely accurate. Then stop thinking about it. A sitemap solves discovery, and discovery is rarely the reason a page isn't ranking β that's usually a content problem or a link problem, and neither is fixed by a better XML file.
Related: How to get your website indexed by Google Β· What is a robots.txt file? Β· What is crawl budget? Β· What is a canonical tag in SEO? Β· Why is my website not showing up on Google?
