What is an XML sitemap?
Quick answer
An XML sitemap is a file on your website that lists the pages you want search engines to find and index, often with the date each was last updated. It works like a table of contents for Google. A sitemap doesn’t make pages rank higher, but it helps search engines discover new and updated pages faster, which is especially useful for new or larger sites.
What it does and doesn’t do
Search engines mainly discover pages by following links. A sitemap gives them a direct list, so pages are less likely to be missed. It is particularly helpful when a site is new and has few links pointing to it, has hundreds or thousands of pages, or has pages that aren’t well linked internally.
What a sitemap won’t do is force Google to index a page or boost its rankings. If a page is thin or duplicated, listing it in a sitemap won’t change Google’s view of it.
Larger sites can split their sitemap into several smaller ones, such as one for pages, one for posts and one for products, tied together by a sitemap index file. This makes it easier to spot which section of the site has indexing problems.
What belongs in your sitemap
- Include pages you want people to find in search: service pages, location pages, key articles and products.
- Use the final, preferred address of each page, not versions that redirect.
- Leave out pages marked noindex, thank-you pages, login areas and internal search results.
- Leave out duplicate pages that point elsewhere with a canonical tag.
- Keep last-modified dates accurate rather than updating them automatically every day.
How to create and submit one
Most modern platforms create a sitemap automatically. WordPress does this on its own, and SEO plugins provide more control. Shopify, Squarespace and Wix generate one too. It usually lives at your domain followed by sitemap.xml or sitemap_index.xml.
Once you have it, submit it in Google Search Console under the sitemaps section, and in Bing Webmaster Tools. You can also reference it in your robots.txt file. Search Console will then report how many listed pages are indexed, which is a useful health check.
Common sitemap mistakes
One of the most common problems in site audits is a sitemap that doesn’t match reality: it lists redirected or deleted pages, includes thousands of tag and archive pages, or misses important pages entirely. Another is a sitemap left over from an old site after a redesign, pointing at addresses that no longer exist.
Check your sitemap occasionally. If Search Console shows many submitted pages not indexed, that is a prompt to look closer at those pages. Often the cause is thin or duplicated content rather than the sitemap itself.
What is an XML sitemap compared with an HTML sitemap?
An XML sitemap is written for search engines in a structured format software reads. An HTML sitemap is an ordinary web page linking to your main sections, written for people who can’t find something in the menu. Small sites with clear navigation rarely need an HTML version, but a large store or a firm with many practice areas may find one helpful.
There are also image and video sitemaps, which can help search engines find media in a portfolio or video library. Most small sites don’t need them.
So the short answer is that an XML sitemap is a list for search engines, not visitors. Keep that one accurate, and add an HTML page only if it helps real people.
How we can help
This is part of our Search Engine Optimization work. Book a free consultation and we’ll look at your situation together.
Related questions
Keep reading
Complimentary consultation
Want answers about your business?
Book a 30-minute call. We’ll look at your website, your market and your goals, and tell you plainly what we’d do first.
