Nightcrop
LoginGet started

Do You Need an XML Sitemap? When It Helps and When Not

Nightcrop · October 24, 2026

Probably, but not always. Google says most sites benefit from a sitemap, and that a small site of about 500 pages or fewer may not need one if every important page is reachable through internal links. A sitemap helps Google find pages. It does not make Google index them.

What an XML sitemap does

An XML sitemap is a file that lists the URLs you want search engines to know about. Google mainly discovers pages by following links from pages it already crawled, so the sitemap is a second route to the same pages. Google's sitemap overview is blunt about the limit: a sitemap helps discovery, but it does not ensure that every listed item will be crawled or indexed.

When a sitemap helps

Google lists the cases where it matters most:

A new blog is the common case for a small team. The site is new, few other sites link to it, and each post is a page Google has no other reason to look for yet.

When you can skip it

Google says you might not need one if all of these are true:

Even then, the file costs little. If your CMS can generate one, the practical question is usually whether to leave it on, and the answer is yes.

Sitemap rules that trip people up

These come from Google's guide to building a sitemap.

RuleWhat to do
Size limitOne sitemap holds at most 50MB uncompressed or 50,000 URLs. Split larger sets and use a sitemap index file.
URLsUse full, absolute URLs. Google crawls them exactly as listed.
lastmodGoogle uses it if it is consistently and verifiably accurate. Change it only for significant edits, not for a copyright date.
priority and changefreqGoogle ignores both, so do not spend time tuning them.
EncodingUTF-8, with tag values entity-escaped.

The lastmod rule matters if you refresh posts. Setting every page to today's date on each deploy teaches Google that your dates are noise.

A worked example

Say you launch a company blog with 40 posts. Your home page links to the blog index, and the index links to every post. Googlebot can reach all 40 by following links, and you are well under the 500-page mark, so the sitemap is optional on paper. But the site is new and few other sites link to it. That is one of the cases Google names as a reason to have one, so you add it. Now picture the same blog at 3,000 posts with older articles buried five clicks deep. Here the sitemap is no longer a nicety, because pages without a strong link path are the ones Google may not find.

What to put in it

List the pages you want in search: posts, product pages, guides. Leave out pages you have blocked, noindexed, redirected or that return errors. A sitemap that mixes in URLs you told Google to ignore sends two conflicting signals.

How to tell if yours is working

After you submit, open the Sitemaps report in Search Console. It shows whether Google could read the file and lists any processing errors. A "Success" status only means the file was parsed. The real test is whether the URLs in it end up indexed, so spot-check a few new posts a week later. If a listed page is missing from the index, the reason is in the page itself, not in the sitemap, and you should fix it there.

How to submit it

Google gives three ways. Submit it in the Sitemaps report in Search Console, which also shows processing errors. Use the Search Console API if you want to do it from code. Or add a Sitemap: line to your robots.txt file, and Google finds it on its next robots.txt crawl. Google calls submission a hint, so it does not promise to download or use the file.

After you submit, use the steps in how to check if a page is indexed by Google to see which URLs actually made it in.

Does a sitemap help AI search?

The sitemap is a Google Search tool. Google says you do not need special files to appear in its AI features, as covered in the llms.txt guide. If your pages are in Google's index, they are available to those features, so the sitemap helps indirectly by getting pages indexed.

Frequently Asked Questions

Will a sitemap make my pages rank higher?

No. It helps Google discover URLs. Ranking depends on the page itself.

Is a sitemap the same as an HTML sitemap page?

No. The XML file is written for crawlers. An HTML sitemap is a page for visitors, and Google does not require it.

How often should I update my sitemap?

Whenever you add or remove pages. Most CMS plugins do this automatically, which is the safest setup.

Should I add priority and changefreq tags?

You can, but Google ignores both. Spend the time on accurate lastmod values instead.

My page is in the sitemap but not indexed. Why?

A sitemap does not guarantee indexing. Check the reason in the Page indexing report, often a duplicate, a noindex tag or a page Google judged not worth keeping.