Skip to content
CodeToShip

Can Google read your sitemap?

Enter an address to find your sitemap and check that search engines can read it.

  • Free
  • The answer in seconds
  • No signup, no email

What we check

  • A sitemap is found, and it is valid (XML or plain text)
  • It is within the limits: 50,000 addresses and 50 MB per file
  • Every address is a full address, on the same site, listed once
  • A sample of up to 10 addresses load, and are the final https ones
  • robots.txt does not block them, and the pages are not marked noindex
  • The dates are real, and the ignored priority and changefreq tags are gone

A sitemap is a file that lists the addresses of your pages so search engines can find them. This sitemap checker (also called a sitemap validator) finds yours, checks that the XML is valid, and tests a sample of the addresses it lists.

What this tool does not check
  • Whether Google has indexed the pages. The Pages report in Search Console shows that.
  • Every address. We test a sample of up to 10 and read 5 of those pages.
  • A sitemap index beyond its first sitemap, and RSS or Atom feeds, which Google also accepts as sitemaps.

What each check means

Found and valid
We look for a sitemap named in robots.txt, then at /sitemap.xml and /sitemap_index.xml. A sitemap is valid when it reads as XML with a urlset (or a sitemapindex that lists other sitemaps), or as a plain text file of addresses. A compressed .gz file is read too.
Limits
One sitemap file may hold at most 50,000 addresses and 50 MB. Search engines ignore what goes past that. A news sitemap is held to 1,000 articles. Past the limit, split the sitemap and list the pieces in a sitemap index.
Full addresses
Each address must be a full address that starts with http:// or https://, and be under 2,048 characters. Google says relative addresses are not acceptable.
One site
All addresses in a sitemap must share the sitemap's host and protocol. www.example.com and example.com count as different hosts. Addresses of another host are dropped unless that host proves it owns the sitemap.
Listed once
A repeated address adds weight to the file and no information.
Addresses work
We request up to 10 listed addresses and check that each answers 200 after redirects, and that each is the final https address of its page, not one that redirects. A sitemap should list the address visitors end up on.
Not blocked by robots.txt
A sitemap lists pages you want found, and robots.txt can tell Googlebot not to fetch them. Search Console reports this as "Submitted URL blocked by robots.txt". We check every listed address against your robots.txt rules for Googlebot.
Not noindex, and the preferred address
We read up to 5 listed pages. A page that says noindex, or names another address as its own, sends search engines two opposite messages.
The page you entered
We check that the page whose address you entered is in the sitemap.
Dates
A lastmod date must follow the W3C format, such as 2026-11-07, and should be the day the page last changed. Google uses lastmod only when it is consistently accurate, so a sitemap where every date is the same, probably the build date, is flagged.
Ignored tags
Google ignores priority and changefreq. They only add weight to the file.
In a folder
Google says a sitemap affects only the addresses in its own folder and below, unless it is submitted in Search Console. Keep the file in the top folder of your site.
Images, video and news
If the sitemap lists images, video or news articles, we check the entries against Google's rules for each, such as the limit of 1,000 images under one address.
Named in robots.txt
A Sitemap line in robots.txt lets search engines find the file without you submitting it. This is a note, not a fault: submitting the sitemap in a webmaster tool works too.

How to fix it

Pick what your site is built on. Have a developer? Send them our message in the guide.

WordPress 5.5 and later builds a sitemap itself: an index at /wp-sitemap.xml, which it also names in robots.txt when the site is public. SEO plugins such as Yoast SEO and Rank Math make their own, usually at /sitemap_index.xml. Use one, and switch the other off, so the site does not have two.

Check it by hand

Open your sitemap address in a browser: it should show XML, not a web page. To see the start of the file and the sitemap lines in robots.txt from a terminal, run:

curl -s https://example.com/sitemap.xml | head -20
curl -s https://example.com/robots.txt | grep -i "^sitemap"

Questions

What is a sitemap?

A file that lists the addresses of the pages on a site, so search engines can find them. Most sites have an XML sitemap, often at /sitemap.xml.

Do I need a sitemap?

Google says a small site with good links between its pages may not need one. A sitemap helps most on a big or new site, or one with pages that are hard to reach by links. It is a hint, not an instruction: Google decides what to crawl.

Does a sitemap help me rank?

Not directly. It helps search engines find your pages. Whether and where a page appears is a separate decision.

Why does the checker say all my dates are the same?

When every lastmod is one day, it usually shows when the sitemap was built, not when pages changed. Google ignores lastmod when it is not reliable. Set each date to the page's last real change, or leave lastmod out.

Does a pass mean my pages are indexed?

No. This tool checks the sitemap file and a sample of its addresses. The Pages report in Search Console shows which pages Google has indexed.

How big can a sitemap be?

One sitemap file may hold at most 50,000 addresses and 50 MB uncompressed. For more, split it into several files and list them in a sitemap index, which may itself list up to 50,000 sitemaps.

How do I submit a sitemap to Google?

Use the Sitemaps report in Google Search Console, or add a Sitemap line with the full address to robots.txt. Submitting is a hint: Google does not promise to download or use the file.

Where should the sitemap file be?

Google says it can be anywhere on the site, but unless you submit it in Search Console it affects only the addresses in its own folder and below. The top folder, at /sitemap.xml, is the safe choice.

What does "Couldn't fetch" in Search Console mean?

Search Console can show this for a new sitemap while Google processes it, for 24 to 48 hours according to Squarespace's help page, and it does not always mean a problem. If it stays, open the sitemap address in a browser and run it through this checker.

Should I use priority and changefreq?

No. Google ignores both tags. Leave them out, and keep lastmod only if each date is the real day the page last changed.

Can a sitemap be a plain text file?

Yes. Google accepts a text file with one full address per line, saved with a .txt name, and nothing else in it. XML is more flexible because it can also list images, video, news and other language versions.

Send audits under your own brand

Audit a client's site, then send a report and a pitch deck with your logo and colors. It works today.

More free checks