Guide
XML sitemap guide: what Google uses and what it ignores
How to build, submit and check an XML sitemap Google trusts: what to list, the limits, lastmod done right, and the mistakes we found in 708 real sitemaps.

· 9 min read

An XML sitemap is a file that lists the pages you want in search results, with when each last changed. Google treats it as a hint for crawling, reads only the address and the date, and trusts the date only while it stays true. In 708 sitemaps we checked, about 1 in 8 listed a redirect or a dead page.

A sitemap with sample pages, and what Google does with each tag.
✅ My advice List only pages that answer 200 and that you want found, give each a true last-modified date or none, and drop priority and changefreq. Then submit the sitemap in Search Console and check its status once a month.
This guide is for anyone who owns a site’s technical SEO, from a shop owner on WordPress to an agency running fifty sites. By the end you’ll have a sitemap Google trusts and a way to know when it breaks. First, whether you need one at all.
Do you need an XML sitemap?
Most sites benefit from an XML sitemap, but small, well-linked sites can do without one. Google says a site of about 500 pages or fewer, where every page can be reached from the home page, probably doesn’t need one.
You need one if your site is large, new with few links pointing at it, or full of video, images or news. Large sites are where pages go unlinked by accident, and new sites are where Google has no other way in.
If you’re on WordPress, Shopify, Wix or Squarespace, you already have one. The platform or your SEO plugin makes it, so the job is checking it, not building it. Here is what it should hold.
What should an XML sitemap include?
An XML sitemap should include only the canonical address of each page you want in search results. Google says it crawls the URLs “exactly as listed”, so every entry is an instruction. Each one should be the full https:// address, on the same host as the sitemap, and answer 200.
Leave out anything you don’t want ranked or that Google can’t index: redirects, pages that answer 404 or 410, pages with a noindex tag, copies with tracking or filter parameters, and pages blocked by robots.txt. Listing them sends Google mixed signals and wastes the crawling the sitemap was meant to direct.
The fix: open your sitemap plugin’s settings and exclude what shouldn’t be there: tags, author archives, internal search, thin attachment pages. On a custom site, build the sitemap from the same database query that decides what’s canonical, so it can’t drift.
Two of the four tags matter, and only one of them is required.
Which sitemap tags does Google use?
Google uses <loc>, the page’s address, and <lastmod>, the date it last changed. It ignores <priority> and <changefreq>, and so does Bing. They’re leftovers from 2005 that many plugins still write.
<lastmod> is the one worth getting right. Google said in 2023 that it uses the date to schedule crawls, but only if it “consistently” matches reality. Tell Google a page changed yesterday when it changed years ago, and it stops believing you.
Bing says the same: the most common error it sees is a date set to when the sitemap was generated.

Data: Serpint’s check of 708 sitemaps, November 2026.
Most sitemaps we checked either date every page (68%) or date none (22%), and Google accepts both. 8% gave every page the same date, the mistake Bing warns about. And 42% still write changefreq, 35% priority.
The fix: set <lastmod> to the last significant change: the main text, structured data or links, not a footer or a copyright year. If your system can’t tell, leave the date out for that page; Google says that’s fine. Then delete priority and changefreq, or ignore them.
💡 My take A wrong date is worse than no date. A sitemap where every page “changed today” teaches Google to ignore your dates, including the day you publish something that matters.
A correct file still has to fit the limits and reach Google.
How big can a sitemap be?
A sitemap can hold at most 50,000 URLs and 50 MB uncompressed. Past either limit, split it into several files and list them in a sitemap index, which you submit instead. The files must be UTF-8 and should sit at the root of the site, since a sitemap only covers the folder it’s in.
Splitting is also useful below the limit. A file for products, one for articles and one for categories lets you see each group’s indexing separately in Search Console. Most sites already split: 63% of the sitemaps we read were an index of several files.
Once the file is right, Google needs to know where it is.
How do you submit a sitemap to Google?
You submit a sitemap in two places: a line in robots.txt and the Sitemaps report in Search Console. The robots.txt line, Sitemap: https://yourshop.com/sitemap_index.xml, tells every search engine where to look. Search Console tells Google directly and reports back.
The old “ping” URL doesn’t work any more: Google turned it off at the end of 2023 because most pings were spam. Plugins that still ping do no harm, and no good either. For Bing and other engines, IndexNow is the fast way to report a change.
Step 1: add the robots.txt line. In our check, 85% of sites listed their sitemap there; the other 15% left search engines to guess. Most plugins add it for you; check yours by opening /robots.txt.
Step 2: submit it in Search Console. Open Indexing, then Sitemaps, paste the sitemap’s address and press Submit. Submit the index, not each file.

Step 2 in Search Console’s Sitemaps report, redrawn with sample data.
Submitting is a hint, not a promise. Whether Google uses the sitemap shows up afterwards.
How do you check that your sitemap works?
You check a sitemap in two Search Console reports: Sitemaps for whether Google can read it, and Page indexing for what happened to the pages in it. Do both once a month, and after any redesign, migration or plugin change.
Check 1: the status. The Sitemaps report shows Success, Has errors or Couldn’t fetch for each sitemap you submitted, with the date Google last read it. It only lists sitemaps you submitted, not ones Google found in robots.txt.
The fix: for Couldn’t fetch, open the sitemap’s address yourself. A 404, a login page or a firewall challenge means Google gets the same, so fix the address or let Googlebot through. For Has errors, click the sitemap to see each error, fix it in the plugin or generator, then resubmit.
Check 2: the pages. In Page indexing, filter by your sitemap to see how many of its pages are indexed and why the rest aren’t.

Check 2: Page indexing filtered by sitemap, redrawn with sample data.
The fix: reasons whose source is “Website” are yours to fix in the sitemap. Remove redirects and 404s, and take noindexed pages out or drop the noindex. “Crawled - currently not indexed” is about the pages themselves, so improve or merge them; the sitemap can’t fix it.
Those reports show your own site. Across hundreds of sites, the same few mistakes repeat.
What mistakes do real sitemaps make?
The most common sitemap mistake is listing pages that redirect or no longer exist. In November 2026 we checked the sitemaps of the 1,062 sites cited in our study of Google’s AI Overviews, sites Google already trusts. We read 708 of them, then tested five listed pages on each.

Data: Serpint’s check of 708 sitemaps, November 2026.
About 1 in 8 sitemaps (90 of 708) listed at least one redirect, dead page or server error among the five pages we tested. Redirects were the most common, on 65 sitemaps, then 404s and 410s on 23. With only five pages tested per site, the real share is higher.
Of the 3,192 pages we tested, 5% redirected and 2% were gone. That sounds small, but on a 10,000-page store it means hundreds of wasted fetches every time Google reads the file.
The fix: list the final address of every redirect, and remove dead pages or bring them back. Plugins usually drop a page you delete inside the CMS, so most leftovers come from redirects set up elsewhere, at the server or the CDN. Your sitemap plugin never hears about those.
The other mistakes were rarer. 15% of sites didn’t list their sitemap in robots.txt, 8% dated every page the same day, 3% listed other sites’ pages and 1% listed http:// addresses. None dated a page in the future.
There’s one more thing you may have noticed this week: sitemaps that open as raw code in Chrome. Chrome 158 stopped running the stylesheets that made them look like tables, and it changes nothing for Google (more in our news post).
Checking all of this by hand once is a morning’s work. Checking it every week is where it slips.
How can Serpint check your sitemap every day?
Serpint checks your sitemap every day in the site audit’s Sitemaps tab. It finds every sitemap through robots.txt, Search Console and the usual addresses, reads each file and index, and compares the listed pages with what the audit’s crawler found.

It flags each mistake in this guide: a sitemap it can’t read or parse, broken pages, redirects, files over the size limit, other sites’ or http:// addresses, future or identical dates, missing dates, pages left out, and a sitemap missing from robots.txt or Search Console. With Search Console connected, Google’s own errors show up beside them.
Every issue says why it matters and how to fix it, with example addresses. Owners get an email when a new error appears, and pages added to the sitemap show as pins on the Performance chart, so you can see what a batch of new pages did.
How much of this matters depends on your site.
What does it mean for your kind of site?
Online stores have the most to gain. Products sell out, move and come back, so a store’s sitemap fills with 404s and redirects fastest. Split products into their own file and watch its indexing separately.
Publishers live on <lastmod>: a true date gets an updated article recrawled sooner. News sites should add a news sitemap holding only the last two days of articles.
Small sites with fewer than 500 well-linked pages can keep the default sitemap and check it twice a year. Agencies should check every client’s sitemap after any migration, since that’s when they break.
What should you do now?
Start in Search Console: open the Sitemaps report and confirm each sitemap says Success, then filter Page indexing by sitemap.

Next, open your sitemap and remove what shouldn’t be there: redirects, 404s, noindexed and parameter pages. Fix or drop dates that aren’t true, and make sure robots.txt lists the sitemap.
Finally, set a monthly reminder, or let a daily check do it for you.

Founder of Serpint
Founder of Serpint. 6+ years in SEO and content marketing and 2 in GTM engineering, most recently as Head of Product and Content at lobstr.io, a B2B SaaS web scraping platform, until October 2026. Writes about SEO, AEO and GEO, the full stack of search and AI answer optimization, and content marketing.

