A sitemap is a file that lists the URLs on your website, helping search engines discover and crawl your pages more efficiently. The most common type for SEO purposes is an XML sitemap submitted to Google Search Console.
What is the difference between an XML sitemap and an HTML sitemap?
An XML sitemap is designed for search engines. It is a structured file containing a list of URLs, along with optional metadata such as last modification date and update frequency. It is not intended for users to read directly.
An HTML sitemap is a navigational page on the website that lists links to key sections and pages, designed for users who want an overview of the site structure. Both can coexist, but for SEO purposes the XML sitemap is what matters.
Does every website need a sitemap?
Not every site requires one. Google can discover pages by following links, so a small, well-linked website may be indexed effectively without a sitemap. However, sitemaps become more important as a site grows.
Large sites, sites with pages that are not well linked internally, new sites with few external backlinks, and sites that frequently publish new content all benefit from having a sitemap. When building new websites, submitting a sitemap to Google Search Console is standard practice.
[Screenshot: Google Search Console Sitemaps report showing a submitted sitemap with the number of discovered and indexed URLs. Alt text: Google Search Console sitemaps report showing a submitted XML sitemap with discovered and indexed URL counts.]
What should a sitemap include?
A sitemap should include all pages you want indexed: service pages, location pages, blog posts, knowledge base articles, and key landing pages. It should not include pages you have blocked with robots.txt, pages with noindex tags, duplicate content, or paginated archive pages that offer no standalone value. Keeping a sitemap clean means Google spends crawl budget on pages that matter rather than wasting it on pages that should not be indexed.
How do I submit a sitemap to Google?
Log in to Google Search Console and select your property. Navigate to Indexing and then Sitemaps. Enter the URL of your sitemap file, typically found at yourdomain.com/sitemap.xml, and click Submit.
Google will report how many URLs it has discovered and whether any errors were found. Most CMS platforms generate sitemaps automatically, though the output often needs reviewing to ensure the right pages are included.
Related KB articles:
• What is Technical SEO
• Google Search Console: A Quick Guide
• How Long Does Google Take to Index a Website
External links:
• Google Search Central, sitemaps documentation