An XML sitemap is a file that lists the important pages on your website, ensuring search engines find them even without internal links. While it does not improve rankings on its own, it helps Google discover new pages faster and shows you which pages are indexed in Search Console. This guide explains what to include, what to leave out, and how it fits into technical SEO.

- An XML sitemap lists the pages you want Google to index.
- According to Google, a single sitemap file is limited to 50,000 URLs or 50MB uncompressed. Larger sites must split the data into multiple files using a sitemap index.
- WordPress has created a basic sitemap since version 5.5, and SEO plugins like Yoast replace it with their own.
- Only include pages that return a 200 status code, without redirects or noindex tags.
- According to Ahrefs, the phrase "sitemap" is searched in Israel approximately 150 times per month.
Table of contents
What is an XML sitemap?
A sitemap is an organized list of site URLs in a format search engines can read. You can also specify when each page was last updated. Google uses this data to prioritize crawling.
What a sitemap doesn't do
An XML sitemap does not guarantee a page will be indexed, and it does not improve its ranking. It only helps Google discover it. If a page is low quality, duplicate, or blocked, it will not be indexed even if it appears in the sitemap.
What it looks like in practice
On most websites, the sitemap is found at a fixed URL, such as sitemap.xml or sitemap_index.xml following the domain name. When opened in a browser, you will see a list of URLs, sometimes organized by content type: pages, posts, products, and categories.
What is the difference between an XML sitemap and an HTML sitemap?
| Type | Who is it for? | Where to find it | Is it mandatory? |
|---|---|---|---|
| XML sitemap | Search engines | A file in the website root | Highly recommended for most websites |
| HTML Sitemap | Users | Standard website page | No, but it is useful for large websites. |
In the context of SEO, a sitemap almost always refers to an XML sitemap. An HTML sitemap is a navigation page for visitors; on a site with clear menus, it is usually unnecessary.
Who needs a sitemap?
According to Google documentation, a sitemap is particularly beneficial for large websites, new websites with few external links, and sites with many pages that aren't well-linked to each other. Even for a small, well-linked site, it does no harm, and in WordPress, it's usually generated automatically anyway.
New website
A new website without backlinks from other sites depends almost entirely on its sitemap and manual submission for Google to discover its pages.
Online stores or large content sites
When a site has hundreds or thousands of pages, some may be buried deep in the site structure. The sitemap ensures Google knows about them and allows you to track indexing status by content type.
What should be included in an XML sitemap?
The rule: only include pages you want to appear in search results, in their canonical version.
What to include
- Service pages, products, and categories.
- Articles and guides.
- Informational pages users look for, like About Us and Contact.
What to exclude
- Pages marked as noindex.
- URLs that redirect to another address.
- Duplicate pages, such as versions with filtering or tracking parameters.
- Thank you pages, shopping carts, user accounts, and internal search results.
- Thin tag and archive pages that don’t provide value to visitors.
Size limits
According to Google, a single sitemap file can contain up to 50,000 URLs and reach 50MB before compression. Larger sites split the sitemap into multiple files and use an index file to point to them. WordPress SEO plugins usually handle this split automatically.
How to create a sitemap?
On WordPress
From version 5.5, WordPress creates a basic XML sitemap at wp-sitemap.xml. An SEO plugin like Yoast disables it and creates its own at sitemap_index.xml, allowing control over which content types are included. Recommended settings are detailed in our WordPress SEO guide.
On other platforms
Most website builders generate a sitemap automatically. You should check its URL and contents, as not every platform allows you to exclude specific pages.
For a custom-coded website
The file is generated from the database every time a page is added or modified, ensuring the "last modified" date is updated only when content actually changes. You should check the file with a validator before submitting, as a single syntax error in an XML file can prevent Google from reading it entirely. Character encoding is also critical: Hebrew URLs must appear in the sitemap with uniform encoding.
How do you submit a sitemap to Google?
- Log in to Google Search Console and select your website property.
- Select the Sitemaps report from the menu.
- Type the sitemap URL and click submit.
- Check back after a few days to see how many URLs were discovered and if there are any read errors.
You should also list the sitemap URL in your robots.txt file so other search engines can find it. For Bing, submit it through their Webmaster Tools.
What to do with sitemap data
The real value of a sitemap isn't just in page discovery, but in the measurement it enables. When the sitemap is split by content type, you can use the Pages report in Search Console to see exactly how many URLs of each type have been indexed.
Identifying excluded content types
If most service pages are indexed but only a few articles are, check your content: they might be too short, repetitive, or lack internal links. If product pages are missing, check if their descriptions were copied from the manufacturer.
Inspecting a new page
After publishing a new page, verify it appears in the sitemap, then use the URL Inspection tool in Search Console to check if Google has crawled it. If it remains uncrawled after a week, request manual indexing and add a link to it from an existing page that Google crawls frequently.
Clean up after changes
After deleting pages, merging content, or changing URLs, ensure the sitemap doesn't still list old addresses. A clean sitemap helps Google process changes faster.
What are the most common sitemap errors?
- Error or redirect URLs: Every such address in your sitemap wastes crawl budget and clutters your reports.
- Pages marked as noindex: This creates a conflict between the sitemap and the page. Google will ignore it, and Search Console will flag a warning.
- Two plugins creating a sitemap: This causes duplicate sitemaps with conflicting content. Keep only one.
- Unreliable update dates: A sitemap that marks every page as updated daily teaches Google to ignore the dates.
- Sitemap not updating: New pages aren't appearing in the map, usually due to caching. Verify that the map displays the most recently published article.
Checking if your sitemap is valid
Open the URL in your browser and ensure it loads, test a few links to confirm they open without redirects, and compare the number of submitted vs. indexed pages in the Search Console Pages report. A large gap indicates quality issues, not just sitemap problems. If you want a professional to audit this alongside other technical foundations, check out our SEO services.
SGO provides SEO for businesses on Google and AI search engines, including technical crawl and indexing audits. We have achieved over 3,500 keywords on Google's first page for our clients.
Not sure if Google is seeing all your pages?
We will audit your sitemap, the indexing report, and any excluded pages to tell you what to fix first. You can read about this service on our Technical SEO at SGO page.
Sitemap FAQ
Does an XML sitemap improve Google rankings?
How many URLs can a single sitemap hold?
Where is the WordPress sitemap located?
Do I need to resubmit the sitemap after every article?
What is the difference between a sitemap and a robots.txt file?
Want more customers from your website? SGO specializes in digital marketing and SEO that brings traffic and leads.
