Skip to content
Seed Lighthome

XML Sitemap: What It Does and How to Submit One to Google

An XML sitemap is a file listing the pages you want in Google Search. Google calls it "merely a hint" and caps each file at 50,000 URLs or 50MB uncompressed. It helps discovery on a big or poorly linked site. Seed Light submits one with every build.

A sitemap file beside a Search Console submission screen.

Somebody has told you your site needs an XML sitemap, and probably that submitting one will fix your rankings.

The first half is often right. The second half is not, and Google's own documentation says so in plain words.

This guide covers what the file actually does, whether your site needs one, how to create and submit it, and the four mistakes that make a sitemap worse than having none.

Key Takeaways

  • Google calls a sitemap "merely a hint". It does not promise to fetch the file or to crawl what it lists.
  • Submitting is not indexing. Indexing stays a separate decision Google makes about each page.
  • The limits are 50,000 URLs or 50MB uncompressed per file, whichever comes first.
  • Two tags do nothing. Google ignores changefreq and priority, and reads lastmod only when it is consistently accurate.
  • List canonical URLs only. A sitemap full of redirects and noindexed pages sends a worse signal than no sitemap.

What Is an XML Sitemap?

It is a file, usually at the root of your domain, listing the pages you want to appear in Google Search.

Each entry carries the page address and optionally the date it last changed. That is nearly all there is to it.

There is no description, no keyword and no ranking instruction anywhere in the format. People expect more from the file because of how it is sold, not because of what it contains.

The XML sitemap does one job well. That job is discovery, and it gives a crawler a list of addresses without relying on it finding every link.

What it does not do is argue for your pages. Google describes a sitemap as merely a hint, and says it does not guarantee the file will be fetched or the URLs crawled.

A two panel graphic showing a sitemap helps discovery but does not force indexing
Discovery on the left. The thing people expect on the right, which it does not do.

Why Most Small Sites Need One Less Than They Think

If every page on your site is reachable from the menu in a click or two, a crawler will find them without help.

The XML sitemap starts to matter in three situations. A site with hundreds of pages. A site where pages are not linked to each other. A new site that nothing links to yet.

The second one catches more small businesses than the first. A service page reachable only from a dropdown, or a location page nothing else points at, is exactly the kind of thing that sits unfound.

Most small business sites are none of those, and the file is still worth having, because it costs nothing and it gives you a reporting surface in Search Console.

What it will not do is rescue a page nobody links to and nobody wants. Sitemap SEO advice that promises otherwise is selling the hint as a guarantee.

A flowchart showing when a small, well linked site may not need a sitemap
Three situations where it earns its place, and the common one where it does not.

How to Create and Submit an XML Sitemap

Five steps, and on most platforms the first two are already done for you.

Work through them in order. Checking what you already have before you install anything saves the most common wasted afternoon here, which is adding a second sitemap plugin to a site that was already publishing one.

1. Check whether you already have one

Try the usual addresses in a browser before you create anything. Most platforms generate a sitemap automatically and never mention it.

If one loads, you are looking at a list of your own URLs. Read a few and see whether they are the pages you would have chosen.

On WordPress an SEO plugin usually owns the file. On Shopify, Wix and Squarespace the platform generates it and gives you no setting at all. That is fine until you want something left out.

A browser address bar with the three common sitemap paths listed below it
Try these three before you install anything.

2. How to create a sitemap if nothing loads

There are three routes, and the right one depends on how your site was built rather than on your budget.

A platform setting, an SEO plugin, or a generated file you upload yourself. The first two keep the file current on their own, and the third does not.

That difference decides it. A file you generated by hand is accurate on the day you made it and quietly wrong a month later, after you have published three pages and deleted one.

Three icon tiles showing the ways to get a sitemap, with the size limit below
Three routes. Two of them stay current without you.

3. Decide what belongs in it

List the canonical version of each page you want in Search. Google asks for the canonical URL rather than every address that serves the same content.

Leave out anything you have noindexed, anything that redirects, tag archives nobody reads, and thank you pages.

A sitemap listing pages you have told Google to ignore is contradicting itself, and that is worse than submitting nothing.

The test is simple. For every address in the file, ask whether you would be pleased to see it as a search result. If the answer is no, it does not belong in the XML sitemap.

A two column checklist of what to include in a sitemap and what to leave out
The left column is the whole rule. The right column is where sitemaps go wrong.

4. Open the file before you submit it

Load the address and read it. You are checking that it returns the file rather than an error page, and that the addresses use your live domain.

A sitemap left over from a staging site, still listing a temporary domain, is a surprisingly common find. So is one that returns a styled error page while looking fine in a browser tab.

A browser window showing a sitemap file loading with a list of page addresses
Read it once. It takes a minute and it catches the staging domain.

5. Submit it in Search Console

Open the Sitemaps report, enter the path, and submit. The Google Search Console sitemap report then tells you when it was last read and how many URLs it found.

That count is the useful part. If it is far below your page count, the file is incomplete, and if it is far above, you are listing pages you did not mean to.

Submit the sitemap to Google once, then leave it. Resubmitting the same unchanged file does nothing, and there is no queue you move up by asking twice.

A four step flow for submitting a sitemap, from checking it loads to Search Console
Submitting takes a minute. Reading the result afterwards is the part that pays.

Sitemap SEO Ideas That Work Right Now

  • Compare the URL count to your page count. The gap between them is the fastest audit of your own site you will ever run.
  • Make lastmod honest. Google uses it only when it is consistently accurate, and says a copyright year change does not count as an update.
  • Delete changefreq and priority. Google ignores both. They make the file longer and tell nobody anything.
  • Split a large list. Past 50,000 URLs or 50MB uncompressed you need several files and a sitemap index tying them together.
  • Submit the sitemap to Google once, not monthly. Resubmitting an unchanged file changes nothing and there is no queue you move up.
  • Add the path to robots.txt. One line, and any crawler that reads the file finds the list without being told.
  • Re-read it after a migration. This is when the old domain survives inside the file and nobody notices for months.
A Search Console style report row showing a sitemap path and a discovered URL label
The count is the audit. Compare it with what you think you published.

Sitemap, robots.txt and noindex Compared

Three files get confused with each other constantly, and they do different jobs. Knowing which one you actually need is most of sitemap SEO.

ToolWhat it saysWhat it cannot do
XML sitemapThese pages exist and are worth a lookForce anything to be indexed
robots.txtDo not crawl these pathsRemove a page already in the results
noindexDo not show this page in resultsWork at all if the page is blocked in robots.txt

That last row is the trap. Block a page in robots.txt and the crawler never reads the noindex on it.

The page can then stay in the results indefinitely, usually with no description under it, because Google knows the address exists and has never been allowed to look at what is on it.

Three icon tiles comparing a sitemap, robots.txt and noindex with a labelled pill on each
Three files, three jobs, and one combination that cancels itself out.

Common XML Sitemap Mistakes

  • Treating submission as indexing. Submitting tells Google the file exists. Each page is still judged on its own.
  • Listing noindexed or redirecting pages. The file then contradicts the rest of your site. That is the one way a sitemap actively hurts.
  • Letting a plugin list everything. Author archives, tag pages and attachment pages get swept in by default on most installs.
  • Faking lastmod. A file that claims every page changed today teaches Google to ignore the field.
  • Submitting and never looking again. The Google Search Console sitemap report shows errors for months if nobody opens it.
  • Keeping a staging domain in the file. It survives migrations quietly and sends every crawler to the wrong host.
Four plain colour panels naming common sitemap mistakes, one outlined in red
The second one is the only way a sitemap makes things worse.

FAQs

What is an XML sitemap?

A file listing the pages you want to appear in Google Search, with the canonical address of each one. It is a discovery aid, not an instruction. Google describes a sitemap as merely a hint and does not promise to fetch the file or crawl what it lists.

Do I need a sitemap?

Not always. A small site where every page is linked from the menu is usually found without one. It earns its place when the site is large, when pages are poorly linked to each other, or when the site is new and has few links pointing at it from elsewhere.

How big can an XML sitemap be?

Google caps each file at 50,000 URLs or 50MB uncompressed, whichever comes first. Past that you split the list across several files and tie them together with a sitemap index file. Most small business sites never come close to either limit.

Do changefreq and priority do anything?

No. Google ignores both values entirely. They survive in generated sitemaps because the format still allows them, and most plugins write them out of habit rather than for any reason. The one value Google does read is lastmod, and only when it is consistently and verifiably accurate across your site.

Does submitting a sitemap get my pages indexed?

No, and this is the most common misunderstanding about the file. Submitting tells Google the sitemap exists and nothing more. Indexing stays a separate decision Google makes about each page on its own merits, so a page listed in your sitemap can still be left out of the results entirely.

Conclusion

An XML sitemap is a useful, boring file. Have one, keep it honest, and read the count in Search Console once a month.

Most of the value is in that last habit rather than in the file itself. The count is a free weekly audit of what your site is actually publishing, and almost nobody opens it.

What it will never be is the reason a page ranks. If someone sells you a sitemap as a ranking fix, they are selling you a hint.

If you would rather have the technical side handled alongside the site itself, see how we approach SEO work.

Gregory Yeoh

About the author:

Founder of Seed Light

Gregory Yeoh founded Seed Light in 2017 and works across web design, SEO, paid advertising and automation for small businesses.

Follow the expert:LinkedIn

Let’s talk

Ready to get more
customers?

Tell us what you want to grow or improve. We’ll reply within one working day with honest advice, even if we do not work together.

Prefer email or a call? hello@seed-light.com · +60 16-411 9138

Results so far

Results from real clients

100+

Brands worked with

28,441+

Leads generated

$4.1M+

Sales generated for clients

Up to 13x

Return on Meta ad spend

Tallied from client ad accounts and store reports.

Monthly leads

We reply in one working day