What Is a Sitemap? A Plain-English Guide for 2026
What is a sitemap, why search engines need it, how to create and submit one, and common sitemap mistakes that hurt your rankings.
Table of Contents
A sitemap is a file that lists every page on your website so search engines can find and index them. It sounds technical, but it is one of the simplest and most important parts of technical SEO. This guide explains what sitemaps are, why they matter, and how to get one right.
The short answer: a sitemap is an XML file at yourdomain.com/sitemap.xml that lists your pages and when they were last updated. Google and Bing read it to discover and re-crawl your content. Every professional website should have one.
What is a sitemap?
A sitemap is a structured list of your website’s URLs. The most common format is XML, and it lives at a predictable address like https://yourdomain.com/sitemap.xml. Each entry can include the URL, when it was last modified, how often it changes, and how important it is relative to other pages.
Why do search engines need a sitemap?
Search engines discover pages by following links. Most pages get found that way, but some do not: new pages with no links yet, pages buried deep in the site, or pages with few inbound links. A sitemap tells the crawler every page exists, so nothing important is missed. It also signals when pages changed, so Google re-crawls them sooner.
What belongs in a sitemap?
Every page you want indexed: the homepage, service pages, blog posts, and landing pages. Pages you do not want indexed (thank-you pages, internal search results, admin pages) should be excluded. A sitemap is a recommendation, not a guarantee: Google still decides what to index based on quality and relevance.
How to create a sitemap
For most modern websites, the sitemap is generated automatically at build time. Static site generators like Astro and Next.js produce one with every build, which means it never goes stale. If you use WordPress, plugins generate it for you. Handwritten sitemaps are only worth it for tiny sites.
How to submit a sitemap to Google
In Google Search Console, open Sitemaps, enter sitemap.xml, and submit. Google will report whether it processed successfully and how many URLs it found. You can also submit to Bing Webmaster Tools. Submission is not required (Google finds sitemaps via robots.txt), but it speeds up discovery and gives you error reporting.
Common sitemap mistakes
The most common mistakes: including noindex pages, listing URLs that redirect, forgetting the sitemap in robots.txt, and never updating it after site changes. A stale sitemap is worse than none, because it wastes crawl budget on dead pages. If your sitemap is generated at build time, these problems disappear.
Sitemaps and site architecture
A sitemap is not a substitute for good internal linking. The best sites have both: a clear navigation structure that crawlers can follow, and a sitemap that guarantees nothing is missed. Think of internal links as the roads and the sitemap as the map.
How Brainsroot handles sitemaps
Every Brainsroot build includes an automatically generated XML sitemap with last-modified dates, submitted to Google Search Console, plus a clean robots.txt that references it. It is part of the technical SEO foundation we ship with every website, so you never have to think about it.
Want a website with the SEO foundation built in? Get a free quote in 24 hours. Read the full web development best practices checklist.