Picture a founder who launches a new site on a Friday. Forty product pages, a blog with six posts, a decent About page. Two weeks later he searches his own brand name and finds only his Instagram profile. Nothing from the actual website. So he starts guessing. Maybe the theme is the problem. Maybe the hosting. Maybe Google just doesn’t like him. Then somebody asks the one question that should have come first: does the site have a sitemap, and was it ever submitted? Nope. Neither.
That story is painfully common, and it’s the reason beginners keep asking what is an XML sitemap and whether it’s worth the effort. The short version: it’s a file that lists the pages you want search engines to find, usually sitting at yoursite.com/sitemap.xml. Google and Bing read it like a menu. But a sitemap isn’t a ranking trick, it doesn’t force anyone to index anything, and plenty of small sites do fine without one. The long version has more twists, and most guides skip them.
This guide walks through the whole picture in plain language. You’ll see what an XML sitemap contains, how Google actually treats each tag (some get ignored completely), which sites genuinely need one, and which can skip it. Then comes the practical part: building one in WordPress, Shopify, Wix or by hand, submitting it in Google Search Console and Bing Webmaster Tools, and fixing the errors that show up afterward. There’s also a section on the mistakes that quietly waste crawling, plus twelve FAQs at the end for anyone who wants quick answers.
What You Will Learn in This Guide
Before getting into the details, here’s the map of where this article goes. Each point below gets its own section with examples, named tools and the mistakes people usually make, so you can read straight through or jump to the part you need right now.
- What an XML sitemap is, what it looks like, and how it differs from an HTML sitemap and robots.txt
- How search engines read a sitemap, and which tags Google ignores
- Whether your site needs one, with a simple checklist to decide
- The main sitemap types: standard, index, image, video, news and hreflang
- Which URLs belong in a sitemap and which should stay out
- Step-by-step creation in WordPress, Shopify, Wix, Squarespace, Screaming Frog and by hand
- How to submit a sitemap to Google Search Console and Bing Webmaster Tools
- The mistakes behind most sitemap errors, and how to fix them
- Best practices for bigger sites, plus 12 FAQs
TL;DR
In a hurry? These are the five takeaways worth remembering even if you skip the rest of the article.
- An XML sitemap is a machine-readable list of your important URLs, and its job is discovery, not ranking.
- Google only uses the URL and an honest last-modified date. It ignores changefreq and priority.
- Sites under roughly 500 well-linked pages can survive without one, but having one costs almost nothing.
- Only indexable, canonical, 200-status URLs belong inside it. Redirects, 404s and noindex pages don’t.
- Submit it in Google Search Console, add it to robots.txt, and check the Sitemaps report every month.
What Is an XML Sitemap? A Plain-English Explanation

Strip away the jargon and a sitemap is just a list. A very tidy list of web addresses, written in a format machines read quickly, handed to search engines so they don’t have to find everything by wandering around your site one link at a time. This section covers what it is, what it looks like, and how it differs from the similar-sounding files people constantly mix up.
An XML sitemap is a file, written in XML, that lists the important URLs on a website so search engines can discover and crawl them more efficiently. XML stands for Extensible Markup Language. It’s a plain-text format that wraps information in labeled tags, the same way HTML wraps headings and paragraphs, except the labels describe data instead of layout.
The file normally sits in the root of your domain, like example.com/sitemap.xml. Google introduced the idea in 2005, Yahoo and Microsoft joined the format in 2006, and today the shared rulebook lives at sitemaps.org. So when someone says “sitemap” in an SEO conversation, this is nearly always the file they mean.
What an XML Sitemap Actually Looks Like
Look at the raw thing once and the mystery disappears. Here’s the smallest valid version, with one page in it:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/what-is-an-xml-sitemap/</loc>
<lastmod>2026-11-06</lastmod>
</url>
</urlset>
The urlset tag wraps everything. Each url block describes one page. The loc tag holds the full address, and lastmod holds the date the page last changed in a meaningful way. Real sitemaps just repeat the url block hundreds or thousands of times. Plugins like Yoast SEO add a stylesheet so the file looks like a neat table in your browser, but underneath it’s the same XML.
XML Sitemap vs HTML Sitemap
An HTML sitemap is a normal web page, usually linked in the footer, that lists your pages for human visitors. An XML sitemap isn’t built for people at all. It’s built for crawlers. Same name, completely different audience, and that’s why the two get confused so often.
Can you have both? Sure. An HTML sitemap can help visitors on a huge site find a buried category, and it adds a few internal links. Honestly though, most small business sites don’t need one. If the main menu and footer already lead everywhere, the extra page just sits there. The XML version is the one that matters for search discovery.
XML Sitemap vs Robots.txt
These two files do opposite jobs. Robots.txt tells crawlers where they shouldn’t go. The sitemap tells them where they should. Robots.txt sits at the root as a plain text file with rules like Disallow, and it can also point crawlers to your sitemap with a single Sitemap line.
Here’s where beginners trip up. Listing a URL in the sitemap while blocking it in robots.txt sends mixed signals, and Search Console will flag it. Also, robots.txt isn’t a way to remove pages from Google. For that you need a noindex tag. This whole area sits inside technical SEO, and the rule of thumb is simple: keep both files saying the same thing.
Other Sitemap Formats You Might Run Into
XML isn’t the only format search engines accept. Google also reads RSS and Atom feeds, and even a plain text file with one URL per line, saved as UTF-8. The text version is fine if all you have is a bare list of addresses and zero extra data.
XML still wins for most sites because it can carry extras: last-modified dates, image and video details, and language alternates for international pages. RSS feeds work well for freshly published blog posts, but they usually only cover recent items, not the whole site. If you’re starting from scratch, go with XML and move on.
How an XML Sitemap Works: What Search Engines Do With It

Understanding what is an XML sitemap is one thing. Knowing what Google does after reading it is where people get surprised. The file doesn’t command anything. It offers hints, and Google decides how much to trust them. This section follows the file from the moment a crawler fetches it to the moment a page may or may not appear in results.
How Google Finds Pages Without a Sitemap
Googlebot mostly discovers pages by following links. It starts from pages it already knows, spots new links, and queues those URLs. Links from other websites help too. If your new page is linked from your homepage, and your homepage is linked from somewhere Google visits often, it’ll usually get found with no sitemap at all.
The trouble starts with orphan pages, which are pages with no internal links pointing to them. A crawler can’t follow a path that doesn’t exist. Brand-new sites with zero backlinks have a similar problem, since there’s no trail leading in. A sitemap fixes both situations by handing over the address directly.
What Happens After Google Reads Your Sitemap
Once Google fetches the file, it adds the listed URLs to its crawl scheduler. Think of it as a to-do list with priorities that Google sets itself. Crawling comes first: Googlebot requests the page. Then rendering, where it processes the page like a browser would. Then the indexing decision, where Google asks if the page is worth storing and showing.
The sitemap only influences the first step. It says, “these pages exist.” Everything after that depends on the page itself: quality, duplication, speed, and whether the content adds anything new. That’s why you can submit 500 URLs and watch only 300 get indexed. The file did its job. The pages didn’t pass the next gates.
Which Sitemap Tags Google Actually Uses
The sitemap protocol defines four main tags inside each url block: loc, lastmod, changefreq and priority. Google uses loc, obviously, since that’s the address. It uses lastmod only when the dates prove accurate over time. And it ignores changefreq and priority entirely. Google has said so in its documentation.
That last part surprises people who spent hours setting priority to 0.8 on product pages. Wasted effort. Keep the file lean: loc plus an honest lastmod. Bing has also said it pays attention to lastmod when deciding how often to revisit pages. If your CMS stamps every URL with today’s date on every build, search engines learn to ignore the field, so it only works when it’s true.
Why a Sitemap Doesn’t Guarantee Indexing
This one deserves a loud warning. A sitemap is an invitation, not a guarantee. Google crawls what it finds worth crawling and indexes what it finds worth indexing. In Search Console you’ll meet statuses like “Discovered, currently not indexed” (Google knows the URL but hasn’t crawled it yet) and “Crawled, currently not indexed” (Google looked and decided not to keep it).
The second one hurts more. It usually points at thin, duplicated or low-value pages. No sitemap trick fixes that. The fix is better content or removing the page from the sitemap altogether. A sitemap stuffed with weak URLs can even make a site look careless to anyone reading the Page indexing report.
XML Sitemaps and Crawl Budget
Crawl budget is the number of URLs Googlebot is willing and able to crawl on your site in a given period. For most sites it’s a non-issue. Google’s own documentation says crawl budget matters mainly for sites with over one million unique pages that change about weekly, or over 10,000 pages that change daily.
Still, the logic is worth knowing. A clean sitemap helps crawlers spend time on pages you care about instead of burning requests on redirects, parameter URLs and dead pages. Think of it as pointing a delivery driver at the right building instead of making him circle the whole neighborhood.
Do You Need an XML Sitemap? A Straight Answer

Here’s the honest answer most blogs dodge: it depends on your site, but the downside of having one is tiny. This section breaks down who clearly needs a sitemap, who can get by, and how to decide with a quick checklist instead of guessing or copying what some plugin tutorial told you.
Sites That Should Definitely Have One
Large sites come first. Once you’re past a few thousand URLs, relying on links alone gets shaky, and ecommerce stores with filters, variants and categories are the classic example. New sites with almost no backlinks also benefit, because the sitemap is the only trail Google has.
Add to that list: news and publishing sites that post many articles a day, sites with weak internal linking or lots of orphan pages, and media-heavy sites with image or video content they want discovered. If you recognize your site in any of those, don’t debate it. Set one up this week.
Sites That Can Probably Skip It
Google’s documentation says a site of around 500 pages or fewer, with solid internal linking, may not need one. Think of a five-page plumber’s site, a personal portfolio, or a small restaurant page where every URL is one click from the menu. Google will find all of it anyway.
Probably is the key word. Even then, a sitemap helps you monitor. Search Console reports indexing status per sitemap, so a submitted file gives you a neat filter showing exactly which of your pages are indexed and which aren’t. That visibility alone justifies it, even if discovery isn’t a problem.
The No-Downside Argument
Look at it as a cost-benefit call. Creating a sitemap takes about ten minutes with a plugin, or zero minutes on Shopify, Wix and Squarespace where it’s automatic. Maintaining it takes nothing, because it updates itself. The only real cost is a messy sitemap that lists junk URLs, and that’s a setup problem, not a sitemap problem.
So the blunt opinion: if you run a website you care about, have one. Not because Google demands it, but because it’s cheap, it’s a diagnostic tool, and it removes one more reason for pages to go missing. Skipping it is rarely a disaster. Having it is rarely a mistake.
A Quick Self-Check to Decide
Not sure where your site lands? Run through these five questions and count the yeses:
- Does your site have more than 500 indexable pages?
- Is the site less than six months old with few external links?
- Do you publish or update content daily?
- Are there pages you can only reach through search boxes, filters or deep pagination?
- Do you use images, videos or multiple languages you want discovered?
One yes means a sitemap is worth having. Two or more means it’s a priority. Zero yeses means you’re fine either way, though you’ll still gain the indexing report in Search Console.
Three Real-World Examples
Take an eight-page website for a local dentist. Everything is linked in the main menu, and the site rarely changes. A sitemap isn’t urgent, but the WordPress plugin makes one automatically, so just leave it on.
Now a Shopify store with 4,000 products, collections and blog posts. Shopify generates the sitemap for free, and Search Console’s sitemap filter becomes the main way to spot unindexed product pages. And finally a news blog posting ten stories a day: this one lives and dies by fast discovery, so a clean sitemap, and likely a news sitemap, is non-negotiable.
Types of XML Sitemaps Explained

Not every sitemap lists plain pages. The protocol has extensions for images, videos, news and international versions, plus a special index file that ties several sitemaps together. This section explains each type, when it’s worth using, and what tags it adds, so you can match the format to your site instead of building everything blindly.
Standard Page Sitemaps
The standard sitemap is the one everybody means by default. It lists regular web pages: posts, product pages, categories, landing pages. Each entry has the URL and ideally a lastmod date. Nothing fancy, and for most websites this file is everything you need.
One file can hold up to 50,000 URLs and must stay under 50 MB uncompressed. Those are hard limits from the sitemap protocol. Hitting either one means splitting the list into several files, which is where the next type comes in. Also, all addresses must be absolute, including https and the domain, never relative paths.
Sitemap Index Files
A sitemap index is a sitemap of sitemaps. Instead of listing pages, it lists the locations of other sitemap files. That lets a big site split content by type or section, and you only submit the one index file to Google. An index can list up to 50,000 sitemaps.
Yoast SEO and Rank Math both do this automatically, which is why their main file is called sitemap_index.xml and links out to post-sitemap.xml, page-sitemap.xml and category sitemaps. The side benefit: if Search Console reports errors, the split tells you instantly whether products, posts or categories are the problem.
Image Sitemaps
Image sitemaps add image locations to a page entry using the image namespace, so Google can find pictures it might miss, like ones loaded by JavaScript. Photographers, stock sites and ecommerce stores get the most value, since image search can drive real traffic.
Google simplified things in 2022 by dropping several optional image tags, including caption, title and license. These days the only tag that matters is the image location itself. So if an old tutorial tells you to fill in six image fields, skip the extra five. Good alt text and descriptive file names do more for image SEO than that extra markup ever did.
Video Sitemaps
Video sitemaps describe videos on your pages: thumbnail URL, title, description and either the video file location or the player URL. They help Google understand and surface videos in video results, and they matter most for sites hosting their own video instead of relying on YouTube alone.
A practical note: many sites now cover this with VideoObject structured data on the page, and Google handles that well. A video sitemap is still useful for big libraries, because one file can describe hundreds of videos at once. If only a handful of pages carry video, structured data is the quicker route.
News Sitemaps
News sitemaps are for sites approved in Google News. They list only articles published in the last two days, up to 1,000 URLs per file, and they include publication name, language, article title and publication date. Old articles drop out of the file as they age.
This type is narrow, so most blogs shouldn’t bother. If you’re a local news outlet or a niche magazine publishing daily, though, it speeds up discovery of breaking stories. It also needs strict upkeep, since stale entries or missing publication data can cause errors. Most newsroom CMS plugins handle the details automatically.
Hreflang Sitemaps for International Sites
If your site has versions in different languages or countries, hreflang annotations tell Google which version belongs to which audience. You can put these in page headers, in HTTP headers, or inside the sitemap itself using xhtml:link entries listing every alternate version of a page.
The sitemap route wins on larger sites, because editing a single file beats editing thousands of page templates. The catch is accuracy. Every version must reference every other version, including itself, and the references must be reciprocal. One missing return link and Google may ignore the whole set, so test with a crawler before submitting.
What Goes Inside an XML Sitemap (and What Stays Out)
A sitemap is only as good as the URLs inside it. Throw in everything and you create noise. Be picky and you send Google a clean list of pages that deserve attention. This section covers the rules for what belongs, what doesn’t, and the technical limits that decide how the file has to be built.
Only Indexable, 200-Status Pages
Every URL in the sitemap should return a 200 status code, which means the page loads normally, and should be allowed to appear in search results. That’s the whole test. If a visitor can open it and you want it ranking, it belongs. If not, it doesn’t.
Why so strict? Because Google treats the sitemap as your statement of intent: “these are the pages I want indexed.” Listing broken or blocked pages contradicts that statement. Search Console will list each contradiction as an error, and a file full of them makes every other signal in it less believable.
Canonical URLs Only
A canonical URL is the preferred version of a page when several addresses show the same content. Say a product exists at /shoes/red-runner and also at /shoes/red-runner?color=red. The canonical tag points to the first one, and only that first one should sit in the sitemap.
This matters because a sitemap listing non-canonical URLs tells Google two different things at once. Mixed messages slow down trust. Also check the basics: https, not http, and your chosen version of the domain, either with www or without, used consistently across every single entry.
Noindex, Redirected and Blocked Pages Stay Out
Three page types never belong in a sitemap. Pages with a noindex tag, because you told Google not to keep them. Pages that redirect with a 301 or 302, because the final destination is what should be listed. And pages blocked in robots.txt, because crawlers can’t even open them.
The same goes for 404 pages and anything behind a login. Thank-you pages, cart and checkout steps, internal search results and staging URLs also stay out. A good habit: after generating the file, crawl it with a tool and sort by status code. Anything that isn’t a clean 200 gets removed.
Parameters, Filters and Duplicate Pages
URL parameters are the bits after a question mark, like ?sort=price or ?utm_source=newsletter. Ecommerce filters can create thousands of them from the same ten products. None of these belong in the sitemap, and tracking parameters especially, since they all show identical content.
One messy store can easily generate 50,000 filter URLs from 800 real products. Put those in the sitemap and Google wastes visits on near-duplicates while the actual product pages wait. Keep the file to the clean, canonical version of each product and category, and let canonical tags handle the rest.
Pagination, Tag Pages and Thin Archives
Paginated pages like /blog/page/7/ and WordPress tag archives usually add little. Same for date archives and author pages on single-author blogs. Plugins often include them by default, so check your settings and switch them off if they carry no unique value.
This is a judgment call, not a law. A category page with a real intro and useful products deserves its spot. A tag page listing two posts with no description doesn’t. Ask yourself whether you’d be happy for that page to be someone’s first impression of your site. If not, leave it out.
Using Lastmod the Right Way
The lastmod tag should change only when the page changes in a way a visitor would notice: new content, a price update, a rewritten section. Fixing a typo in the footer or updating a sidebar widget doesn’t count. Dates follow the W3C format, either 2026-11-06 or the longer version with time and timezone.
Google says it uses lastmod when it proves consistently accurate. That’s a trust game. Sites that stamp today’s date on every URL daily teach Google to ignore the tag, and then genuine updates go unnoticed. Honest dates cost nothing and make recrawls of changed pages faster.
Size Limits, Encoding and Compression
Each sitemap file holds at most 50,000 URLs and 50 MB uncompressed. It must be UTF-8 encoded, and special characters need escaping: an ampersand in a URL becomes & inside the file. Skip that and the whole file may fail to parse, which is a classic cause of the Couldn’t fetch status.
Compression is allowed. A file called sitemap.xml.gz works, though the 50 MB limit still applies to the uncompressed size. Also remember location: a sitemap can only list URLs at or below its own folder. A file at example.com/blog/sitemap.xml can’t list pages outside /blog/, so most sites keep theirs in the root.
How to Create an XML Sitemap Step by Step
Creating one takes minutes, and on many platforms it takes zero because the platform already did it. This section goes tool by tool: WordPress, Shopify, Wix, Squarespace, a crawler like Screaming Frog, free generators, and hand-built code. Pick the one that matches your setup, then verify the file before submitting.
WordPress: Core, Yoast, Rank Math and AIOSEO
Since version 5.5 in 2020, WordPress itself creates a basic sitemap at /wp-sitemap.xml. It works, but offers little control. Most people install an SEO plugin instead. Yoast SEO produces sitemap_index.xml, Rank Math does the same, and All in One SEO has its own sitemap module. Turn on only one, or you’ll end up with competing files.
In Yoast, open the site features settings and make sure XML sitemaps is enabled, then visit yoursite.com/sitemap_index.xml. Inside the plugin, switch off post types and taxonomies you don’t want, like tags or attachment pages. Rank Math puts the same toggles under its Sitemap Settings. Ten minutes of cleanup here beats hours of debugging later.
Shopify, Wix and Squarespace
Hosted platforms build the sitemap automatically. Shopify generates /sitemap.xml with links to separate files for products, collections, pages and blog posts. You can’t edit it directly, so cleanup happens through theme settings and noindex controls instead. Wix creates one too, and its SEO tools let you exclude individual pages.
Squarespace also publishes /sitemap.xml by default, and pages set to hide from search results are left out. On all three, the job is simple: don’t build anything, just confirm the file loads, then submit it in Search Console. Hunting for a sitemap generator on these platforms only creates a second, conflicting file.
Screaming Frog for Custom Control
Screaming Frog SEO Spider crawls your site like a search engine and builds a sitemap from what it finds. After the crawl, open Sitemaps and choose XML Sitemap. You can include or exclude by status code, indexability, images and more. The free version handles up to 500 URLs, which suits small sites.
The strength here is the filter. Tell it to include only indexable pages with a 200 response, and it leaves out redirects, noindex pages and errors automatically. Upload the exported file to your server root and you’re done. The downside is that it’s a snapshot, so large changing sites still need a dynamic solution.
Free Online Generators
Tools like XML-Sitemaps.com crawl a domain and give you a downloadable file. Their free tier covers up to 500 pages, which fits a small brochure site. You paste the address, wait a minute, download sitemap.xml and upload it to your root folder through FTP or your hosting panel.
There’s a catch, and it’s a big one: the file is static. Add a page next month and the sitemap doesn’t know. That’s fine for a site that almost never changes, and poor for a blog. If you want more options in this category, browse the SEO tools directory and compare what each one does before picking.
Building It by Hand or With Code
Custom-built sites need a custom sitemap. Frameworks like Next.js, Laravel and Django have packages or built-in features that generate the file from your routes or database each time content changes. For a tiny static site, writing the XML manually in a text editor also works.
What counts is that the file stays current without anyone remembering to edit it. A short script that queries published pages and writes the XML on a schedule does the job. If this sounds like a stretch, the web development fundamentals covered on this site make the code side far less intimidating.
Check the File Before You Submit It
Before sending the sitemap anywhere, open it in your browser. It should load without a login, show readable URLs, and use your preferred domain version everywhere. Click a few entries and confirm they open normally rather than redirecting.
Then run a quick crawl of the sitemap URLs. Screaming Frog has a list mode for exactly this. Look for anything that isn’t status 200, anything marked noindex, and anything canonicalized elsewhere. Fix those first. Submitting a messy file only creates a pile of error messages you’ll have to read anyway.
How to Submit an XML Sitemap to Google and Bing
A sitemap sitting on your server does nothing until search engines know it exists. Submitting takes under five minutes. This section shows the two ways to announce the file, how to read the status Google gives you, and why the old ping method no longer works.
Add the Sitemap to Robots.txt
The simplest signal works for every search engine at once. Open your robots.txt file and add one line with the full address of the sitemap, written as Sitemap: followed by the URL, such as https://www.example.com/sitemap.xml. Crawlers check robots.txt early, so they find the file without being told.
You can list several sitemaps if you have them, one line each. Use the full URL with https, not a relative path. Yoast and Rank Math often add this line automatically, so view yoursite.com/robots.txt first and check before editing. It costs nothing and covers Bing, Yandex and others too.
Submit It in Google Search Console
Sign in to Google Search Console and pick your property. In the left menu, open Indexing, then Sitemaps. Under Add a new sitemap, type the part of the address after your domain, like sitemap.xml or sitemap_index.xml, and hit Submit. That’s it.
Use a Domain property or a URL-prefix property that matches your real address, including https and www. Submitting to the wrong property is a surprisingly common reason for confusing results. If you run a sitemap index, submit only the index. Google follows it to the child files on its own.
Reading the Sitemaps Report
After submission, the report shows one of three statuses. Success means Google fetched and parsed the file. Has errors means some part had problems, and you can click for details. Couldn’t fetch means Google couldn’t read it at all, which usually points to a wrong address, blocked access or broken XML.
Next to the status you’ll see the last read date and the number of discovered pages. Compare that count with your actual page total. A big gap in either direction is worth investigating. And don’t panic if it says Pending for a while. Fresh submissions sometimes take a day or two to process.
Checking Which Submitted Pages Got Indexed
The real value comes next. Open the Page indexing report and use the filter at the top to switch from all known pages to all submitted pages. Now you see only URLs from your sitemap, split into indexed and not indexed, with reasons for each excluded one.
This view turns the sitemap into a diagnostic tool. If 90 percent of submitted pages are indexed, great. If half are sitting in Crawled, currently not indexed, the problem is content quality, not discovery. You can even filter by a single sitemap, which is why splitting files by content type is so useful.
Bing Webmaster Tools and IndexNow
Bing has its own Webmaster Tools. Add your site, open Sitemaps, and submit the URL. There’s also an option to import your site from Search Console, which brings over verification and sitemaps in a couple of clicks. Bing powers results in Yahoo, DuckDuckGo and others, so it’s worth the five minutes.
Bing also backs IndexNow, a protocol that lets a site tell participating search engines the moment a URL is added, changed or deleted. Yandex and Naver support it too. Google hasn’t adopted it. Many SEO plugins offer IndexNow as a toggle, which pairs nicely with a sitemap rather than replacing it.
The Old Ping Method Is Gone
Older tutorials tell you to visit a URL like google.com/ping?sitemap= followed by your sitemap address. Skip that advice. Google deprecated the sitemap ping endpoint in 2023, and it no longer does anything. Following those steps wastes time and leaves you thinking it worked.
The current routes are robots.txt, Search Console and, for Bing, its own tools or IndexNow. Also keep lastmod accurate, because that’s how Google now figures out which URLs changed. It’s a good rule that if a tutorial mentions pinging, check its publish date before trusting anything else in it.
Common XML Sitemap Mistakes and How to Fix Them
Most sitemap problems come from a handful of repeated errors, and nearly all of them are quick to fix once spotted. This section covers the mistakes that show up again and again in audits, with the exact symptom to look for in Search Console and the repair for each.
Listing Noindex or Robots-Blocked Pages
Symptoms: Search Console reports Submitted URL marked noindex or Submitted URL blocked by robots.txt. Both mean the sitemap invites Google to a page that another instruction rejects. It happens a lot after redesigns, when someone sets staging rules live or a plugin changes defaults.
The fix is a choice. Either you want the page indexed, so remove the noindex or the robots block, or you don’t, so remove the URL from the sitemap. Don’t leave it conflicted. Then use the Validate Fix button in Search Console so Google rechecks the affected pages.
Redirects, 404s and Soft 404s
A sitemap full of redirecting URLs, deleted pages or soft 404s (pages that look empty but return 200) wastes crawl effort and looks sloppy. Search Console labels these as Redirect error, Submitted URL not found (404) or Submitted URL seems to be a soft 404.
Fix by updating the sitemap to the final destination URL for redirects, and removing deleted pages entirely. If the file comes from a plugin, the plugin usually handles this, but custom sitemaps and static files drift out of date quickly. A monthly crawl catches the leftovers before they pile up.
Wrong Protocol, Domain Version or Subdomain
This one looks small and causes big confusion. A sitemap listing http URLs on an https site, or non-www addresses when the site redirects to www, forces every entry through a redirect. Subdomains add another twist: blog.example.com needs its own sitemap and its own property, separate from the main domain.
Choose one canonical version and use it everywhere: the sitemap, the canonical tags, the robots.txt line and the Search Console property. After a move to https or a domain change, regenerate the file straight away. Plugins usually pick this up automatically once site settings are updated.
Fake or Constantly Changing Lastmod Dates
Every URL showing today’s date is a red flag, and Google notices. Some themes and caching setups update the modified date on every page load or deployment, which makes the field meaningless. Search engines then stop trusting it and may recrawl changed pages more slowly.
Check a few entries. Does the date match when you last edited that page? If not, look for plugin settings that tie lastmod to the true modification time of the content. If you can’t make it accurate, omit the tag entirely. A missing date is better than a false one.
A Static File Nobody Updates
Generators like free online tools produce a snapshot. Six months and sixty new posts later, the sitemap still lists the old pages. New content never appears in it, which defeats the purpose, since discovery of new URLs is the main reason to have one.
Switch to a dynamic setup where the CMS rebuilds the file automatically. On WordPress that means a plugin, on custom sites a scheduled script or build step. If you must stay static, set a calendar reminder to regenerate monthly. Honestly, automation wins here every time.
Forgetting the Sitemap After a Migration
Site moves are where sitemaps quietly break. The old file may still list the old domain, the new one might not be submitted, and the redirect map might not match. Traffic dips, and nobody connects it to a dusty XML file.
On migration day, create a sitemap of the new URLs and submit it in the new property. Many SEOs also keep the old sitemap live for a few weeks so Google can discover the redirects faster. Watch the Page indexing report daily for the first two weeks.
Multiple Plugins Creating Duplicate Sitemaps
Install Yoast, then Rank Math, then an old XML sitemap plugin, and suddenly the site has three files each saying different things. Core WordPress adds a fourth at /wp-sitemap.xml unless an SEO plugin disables it. Search Console then shows confusing numbers.
Pick one tool and turn the others off. Visit the common sitemap addresses and see what loads. Anything unexpected is a leftover. Then submit just the one you keep, and ask for removal of old ones in Search Console so they stop cluttering your reports.
XML Sitemap Best Practices That Actually Matter
Once the basics work, a few habits separate sites that benefit from their sitemaps from those that just have one. This section covers the practices worth adopting, why each one pays off, and a walkthrough of what a cleanup looks like when a sitemap has gone wrong.
Split Sitemaps by Content Type
Instead of one giant file, create separate sitemaps for products, categories, blog posts and static pages, tied together by an index. It doesn’t help rankings directly, but it makes reporting far clearer, because Search Console can filter indexing data by each file.
Suppose products show 60 percent indexed while blog posts sit at 95 percent. You immediately know where to dig. Without the split, that signal gets lost in a single average. Most SEO plugins do this by default, and big custom sites should copy the approach.
Keep One Source of Truth
Your sitemap, canonical tags, robots.txt and internal links should all agree. A page in the sitemap should be canonical, indexable, linked from somewhere on the site and allowed in robots.txt. When those four disagree, Google picks whichever signal it trusts most, and you lose control.
Before a big launch, run a consistency check. Export sitemap URLs, crawl them, and compare against canonical and indexability data. Any mismatch is a bug in the setup. It’s boring work, and it prevents the strange situation where a page ranks under a URL you never meant to promote.
Audit Once a Month
Open Search Console, check the Sitemaps report and the submitted-pages view of the Page indexing report. Look at three numbers: URLs discovered, URLs indexed, and the biggest reasons for exclusion. Five minutes, once a month.
Add a quick crawl every quarter. Content teams delete pages, developers change templates, plugins update, and each of those can quietly alter what the sitemap contains. Regular checks catch drift before it turns into a traffic problem, and they cost far less than a recovery.
A Case-Style Walkthrough: Cleaning a Bloated Store Sitemap
Here’s a pattern that shows up on online stores. The sitemap lists 14,000 URLs. The real catalog has about 3,500 products, plus categories and a few dozen pages. The rest? Filter combinations, out-of-stock items returning 404s, and old http versions. Search Console shows thousands of Discovered, currently not indexed pages.
The cleanup takes a week. Remove filter URLs and parameters, exclude discontinued products, regenerate with canonical https addresses only, split into product, category and content files. Within a few weeks, the share of submitted pages that are indexed climbs because Google’s attention is concentrated. For documented traffic stories like this, the case studies section is a useful place to look at real before-and-after patterns.
Sitemaps on JavaScript-Heavy and Headless Sites
Sites built with React, Vue or headless CMS setups often have links that only exist after JavaScript runs. Googlebot can render JavaScript, but it takes extra processing, and some links may be missed. A sitemap gives these sites a reliable list of URLs independent of rendering.
It shouldn’t be the only fix though. Server-side rendering or static generation, plus real anchor links in the HTML, still matter most. Treat the sitemap as a safety net, generated from your routes or CMS content on every build, so new pages are listed the moment they exist.
Conclusion
So, what is an XML sitemap really for? Discovery and diagnosis. It helps search engines find your pages faster, especially on new, large or poorly linked sites, and it hands you a clean report on which of those pages Google actually kept. It doesn’t boost rankings, and it can’t rescue weak content.
Do you need one? Probably yes, because it’s cheap and low-risk. The action for today: open yoursite.com/sitemap.xml, check that it lists only clean, indexable URLs, add it to robots.txt, and submit it in Search Console.
Frequently Asked Questions
These are the questions beginners ask most often about XML sitemaps. Each answer stands on its own, so you can jump to whichever one matches what you’re stuck on.
What is an XML sitemap in simple words?
An XML sitemap is a file that lists the important pages of your website in a format search engines can read. Think of it as a table of contents for crawlers. It usually lives at yoursite.com/sitemap.xml and helps Google and Bing discover and revisit your pages.
Is an XML sitemap necessary for SEO?
Not strictly. Google can find pages through links, and small well-linked sites often get fully indexed without one. But it’s strongly recommended for new, large, or poorly linked sites, and it gives you indexing data in Search Console. Since it’s free and quick, most sites should have one.
Does an XML sitemap improve rankings?
No, not directly. A sitemap helps search engines discover and crawl pages, but it isn’t a ranking factor. A page still needs quality content, relevance and links to rank. The indirect benefit is that new or updated pages get found sooner.
Where can I find my XML sitemap?
Try yoursite.com/sitemap.xml first. WordPress with Yoast or Rank Math uses /sitemap_index.xml, and core WordPress uses /wp-sitemap.xml. You can also open your robots.txt file at yoursite.com/robots.txt, since it often includes a Sitemap line with the exact location.
How do I submit an XML sitemap to Google?
Open Google Search Console, choose your property, go to Indexing, then Sitemaps, and type the sitemap path into the Add a new sitemap box. Click Submit and check that the status reads Success. You can also add a Sitemap line to your robots.txt file.
How often should I update my XML sitemap?
The sitemap should update automatically whenever you publish, edit or delete pages. Plugins and hosted platforms handle this for you. If you use a static file from a generator, regenerate it every time you add substantial content, or at least monthly.
How many URLs can one XML sitemap contain?
One sitemap file can include up to 50,000 URLs and must be no larger than 50 MB uncompressed. If your site is bigger, split the URLs across multiple sitemaps and list them in a sitemap index file. That index can reference up to 50,000 sitemaps.
Should noindex pages be in the XML sitemap?
No. Pages with a noindex tag tell Google not to index them, while a sitemap entry says the opposite. This conflict causes Submitted URL marked noindex errors in Search Console. Remove the URL from the sitemap, or remove the noindex tag if you actually want it indexed.
What is the difference between an XML sitemap and an HTML sitemap?
An XML sitemap is a machine-readable file for search engine crawlers. An HTML sitemap is a regular web page listing links for human visitors. Neither replaces the other, though the XML version matters more for search discovery.
Why are my submitted pages not getting indexed?
Submission only helps discovery. Google may crawl a page and still decide not to index it because of thin content, duplication, low quality or weak internal links. Check the Page indexing report for the specific reason, then improve the page or remove it from the sitemap.
Can I have more than one XML sitemap?
Yes. Large sites often use several, such as separate files for posts, products and categories, connected by a sitemap index. Just avoid duplicates from competing plugins. Submit the index file, or each sitemap individually if you have no index.
Do Google and Bing use changefreq and priority?
Google ignores both tags. Bing has said it also relies on other signals instead, with lastmod being the useful one. You can leave changefreq and priority out completely and lose nothing, as long as the URL and an accurate last-modified date are present.
Does Google still support the sitemap ping?
No. Google deprecated its sitemap ping endpoint in 2023, so requests to it no longer do anything. Use Search Console, a Sitemap line in robots.txt, and accurate lastmod dates instead.