What is a sitemap: a clear guide for website owners

Fabio Embaló

Co-founder & CEO, Viaduct Generation

Published

July 29, 2026

A sitemap is a file that lists your site’s URLs and tells search engines what content exists, how it relates, and when it last changed. If you manage a site with more than a few dozen pages or regularly publish new content, the single most useful thing you can do right now is visit yoursite.com/sitemap.xml in a browser. If nothing loads, you probably need one. According to Google Search Central, search engines use this file to crawl a site more efficiently, not to rank it higher, but to find it in the first place.

A few things worth knowing upfront:

  • A sitemap is a hint to crawlers, not a guarantee of indexing. Google decides what to index independently.
  • The sitemaps.org protocol governs the format all major search engines accept.
  • A single sitemap file must not exceed 50,000 URLs or 50MB uncompressed; if you exceed either limit, use a sitemap index file.
  • Google Search Console shows you exactly which URLs from your sitemap have been processed and which have errors.

Table of Contents

What does a sitemap actually contain?

At its technical core, a sitemap is a machine-readable index. The sitemaps.org protocol accepts XML as the primary format, with plain text files and RSS/Atom feeds also supported for simpler use cases. XML is the format Google recommends for most sites because it supports optional metadata that plain text cannot carry.

That metadata is where sitemaps become genuinely useful beyond basic discovery. The <lastmod> tag tells crawlers when a page was last updated, which helps them prioritise re-crawls of recently changed content. The <changefreq> and <priority> tags offer hints about update frequency and relative importance, though Google has stated it treats these as advisory rather than binding. For multilingual sites, <xhtml:link rel="alternate" hreflang="..."> entries inside a sitemap let you declare language and regional variants without relying solely on in-page markup. Media sitemaps extend the format further: image sitemaps carry <image:loc> and caption data; video sitemaps include duration, thumbnail URL, and description; news sitemaps carry publication date and title for Google News eligibility.

One protocol rule that catches people out: the sitemap file must use UTF-8 encoding. Any character outside that encoding will cause a parse error. The file should also be hosted at the site root where possible.

A sitemap is a hint, not a command. Submitting a sitemap does not guarantee that Google will index the listed URLs — it tells Google where to look. The final indexing decision rests entirely with the search engine. What a sitemap does guarantee is that Search Console can report back on processing errors and indexing status for every URL you declare.


What are the main types of sitemaps?

Not every site needs every format. The right choice depends on your content type, audience, and technical setup.

XML sitemaps are the standard for search engine indexing. They list canonical URLs with optional metadata and are the format Google, Bing, and other engines parse directly. Any site with dynamic content, media files, or more than a handful of pages should have one.

Isometric layered XML sitemap network

HTML sitemaps are human-facing pages, not files. They list links to sections and pages in a readable layout. Historically they predate XML sitemaps, and they remain valuable for UX as a fallback when main navigation or site search fails. They also contribute to internal linking, which helps both users and crawlers reach pages buried deep in the site architecture.

Specialised sitemaps extend the XML format for specific content types:

  • Image sitemaps help Google discover images that might not be found through standard crawling, particularly those loaded via JavaScript.
  • Video sitemaps provide structured metadata (duration, thumbnail, description) that feeds Google’s video search results.
  • News sitemaps are required for Google News inclusion and must contain only articles published within the last 48 hours.
  • Sitemap index files act as a master list pointing to multiple individual sitemaps, used when a site exceeds the 50,000-URL or 50MB limit.
Sitemap type Best for Key benefit
XML sitemap Most sites Structured URL discovery with metadata
HTML sitemap All sites User navigation and internal linking
Image sitemap Media-heavy or e-commerce sites Surfaces JS-loaded or embedded images
Video sitemap Publishers, course sites Rich video metadata for search results
News sitemap News publishers Google News eligibility
Sitemap index Large or complex sites Manages multiple sitemaps cleanly

A small brochure site with five pages and solid internal linking can skip the XML sitemap entirely. An e-commerce store with thousands of product pages, a multilingual B2B site, or a news publisher cannot.


How do sitemaps affect your SEO?

The honest answer: sitemaps affect crawling and indexing, not ranking directly. They do not move you up the results page. What they do is make sure your content gets found and considered in the first place.

For large or frequently updated sites, this distinction matters. A site with thousands of pages and weak internal linking may have content that crawlers never reach through normal link-following. A sitemap gives those pages a direct path to discovery. Similarly, a site that publishes new content daily benefits from <lastmod> timestamps that signal to crawlers which pages are worth re-visiting.

The operational benefits inside Google Search Console are underappreciated. Once you submit a sitemap, the Sitemaps report shows you how many URLs were submitted versus how many were indexed. That gap is diagnostic gold. If you submitted 800 URLs and Google indexed 200, something is wrong, and the report tells you where to start looking.

Radial glowing sitemap SEO network diagram

Pro Tip: Use the Coverage report in Google Search Console alongside your sitemap report. URLs that appear in your sitemap but land in the “Excluded” category often reveal canonicalisation conflicts, soft 404s, or pages blocked by robots.txt that you did not intend to block.

Hreflang handling is another area where sitemaps earn their keep on multilingual sites. Declaring language variants in the sitemap reduces the risk of Google serving the wrong language version to users in different regions, a problem that technical SEO work frequently uncovers.


Do you actually need a sitemap?

Most sites benefit from one. A small static site with five pages, clean navigation, and no media content probably does not need an XML sitemap. Google will find those pages through links. For everything else, a sitemap is worth having.

You almost certainly need one if any of these apply:

  • Your site has more than a few dozen pages.
  • You publish new content regularly (blog posts, product listings, news articles).
  • Your site contains images or video you want surfaced in search.
  • You run a multilingual site with hreflang requirements.
  • Your navigation is complex or relies heavily on JavaScript rendering.
  • You have recently completed or are planning a site migration.

A sitemap is optional but still sensible for small brochure sites that update occasionally and have clean internal linking. The cost of having one is negligible; the cost of missing one when Google cannot find your content is not.


How to find, create, and submit your sitemap

Finding an existing sitemap

Start at yoursite.com/sitemap.xml. If that returns a valid XML file, you have one. If not, check yoursite.com/robots.txt for a Sitemap: directive pointing to its location. You can also check Google Search Console under Index > Sitemaps to see whether one has been submitted previously.

Generating a sitemap

  1. CMS plugins: If your site runs on WordPress, Yoast SEO generates and maintains an XML sitemap automatically. It handles post types, taxonomies, and image sitemaps, and updates the file whenever you publish or update content.
  2. Crawlers: Screaming Frog SEO Spider can crawl your site and export a sitemap from the results. This is particularly useful for non-WordPress sites or when you want to audit what a sitemap would contain before publishing it.
  3. Automated generators: Platforms like Shopify and Squarespace generate sitemaps natively. Check your platform’s documentation for the default location.
  4. Manual creation: For very small sites (under 10 pages), you can write an XML sitemap by hand following the sitemaps.org protocol. It is a straightforward format, but any encoding error will break it.

Submitting your sitemap

  1. Add a Sitemap: line to your robots.txt file pointing to the full URL of your sitemap. This makes it discoverable without any manual submission.
  2. Submit directly via Google Search Console: go to Index > Sitemaps, enter the sitemap URL, and click Submit.
  3. For Bing, use Bing Webmaster Tools and follow the same process.
  4. For RSS/Atom feeds, WebSub (formerly PubSubHubbub) can notify search engines of updates in near real time.

Sitemap best practices and limits to know

The protocol limits are fixed and non-negotiable. A single sitemap file must not exceed 50,000 URLs or 50MB uncompressed. If your site exceeds either limit, split the sitemap into multiple files and reference them from a sitemap index file.

Infographic displaying sitemap best practices and limits

Rule Requirement
Maximum URLs per sitemap 50,000
Maximum file size (uncompressed) 50MB
Encoding UTF-8
Recommended location Site root (/sitemap.xml)
Large sites Use a sitemap index file

Beyond the hard limits, a few practices separate a well-maintained sitemap from a problematic one:

Include only canonical, indexable URLs. If a URL has a canonical tag pointing elsewhere, or returns a non-200 HTTP status, it should not be in your sitemap. Including redirects, noindex pages, or paginated duplicates inflates the file and confuses crawlers.

Keep <lastmod> accurate. An inflated or static <lastmod> date (where every URL shows today’s date regardless of when it actually changed) trains crawlers to ignore the tag. Only update it when the page content genuinely changes.

Host at the site root. Google’s guidance is clear: a sitemap affects only URLs within its parent directory. A sitemap at /blog/sitemap.xml cannot cover pages in /shop/. Root placement covers the whole site.

Split large sitemaps logically. Separate by content type (posts, products, categories) or by section. This makes Search Console reporting more granular and easier to act on.

The most common gotcha: auto-generated sitemaps that include every parameterised URL variant. Faceted navigation on e-commerce sites can produce thousands of near-duplicate URLs (?colour=red&size=M) that should never appear in a sitemap. Filter them out at the source.


How to check and fix common sitemap problems

Start with Google Search Console. The Sitemaps report shows submission status, the number of URLs discovered, and any processing errors. A red error status on a submitted sitemap usually means the file returned a non-200 HTTP response, contained invalid XML, or was blocked by robots.txt.

A straightforward debugging workflow:

  1. Reproduce: open the sitemap URL directly in a browser and confirm it loads. Check the HTTP status code using a tool like Screaming Frog or your browser’s developer tools.
  2. Validate: paste the XML into an online XML validator to catch encoding errors or malformed tags. Screaming Frog also validates sitemaps as part of a crawl.
  3. Fix: address the specific error. Common fixes include correcting UTF-8 encoding, removing non-200 URLs, removing pages blocked by robots.txt, and resolving canonical mismatches.
  4. Resubmit: in Google Search Console, delete the sitemap entry and resubmit the corrected URL. This prompts a fresh fetch.
  5. Monitor: check the Sitemaps report again after 24–48 hours. Watch the indexed URL count and look for any new errors in the Coverage report.

Practical troubleshooting always comes back to the same three questions: does the file load cleanly, does it contain only valid canonical URLs, and does Search Console confirm those URLs are being processed?


How Viaductgen approaches a sitemap audit

Viaductgen’s sitemap audits follow a four-step process built into the Growth Engine methodology.

Discovery: a full crawl using Screaming Frog combined with a Search Console data pull. This surfaces every URL the site currently declares, every URL Google has seen, and the gap between the two.

Prioritisation: business-critical URLs (category pages, product pages, service pages, high-converting landing pages) are mapped against what the sitemap currently declares. Pages that are missing, miscategorised, or incorrectly excluded are flagged first.

Remediation: corrections are made to the sitemap structure. Typical fixes include splitting a single oversized sitemap into a properly structured index file, removing parameterised duplicates, correcting <lastmod> timestamps, and resolving canonical conflicts that cause pages to be excluded from indexing.

Verification: the corrected sitemap is resubmitted via Search Console. The team monitors the Coverage and Sitemaps reports over the following two to four weeks, tracking the indexed URL count and confirming that previously excluded pages are now being processed.

A typical mid-market site audit surfaces three to five categories of sitemap error: non-canonical URLs included in the feed, a <lastmod> date set to the crawl date rather than the actual edit date, pages blocked by robots.txt that should be indexable, and a sitemap index that references files no longer hosted at the declared path. Fixing these does not guarantee ranking improvements, but it removes the structural barriers that prevent content from being considered at all.


Key takeaways

A sitemap is a discovery and diagnostic tool: it helps search engines find your content and gives you actionable feedback through Search Console, but does not directly change your search rankings.

Point Details
Core sitemap definition A file listing canonical URLs and metadata to help search engines discover and interpret your content.
Protocol limits A single sitemap must not exceed 50,000 URLs or 50MB uncompressed; use a sitemap index for larger sites.
When you need one Any site with more than 50–100 pages, regular new content, media files, or multilingual requirements.
Immediate next step Visit /sitemap.xml, validate in Google Search Console, and fix any excluded URLs in the Coverage report.
Viaductgen’s audit approach A four-step discovery, prioritisation, remediation, and verification process that removes structural indexing barriers.

Viaductgen’s technical SEO and sitemap audit service

Most sitemap problems are not obvious until you look at the gap between submitted URLs and indexed URLs in Search Console. That gap is where organic visibility is quietly lost. Viaductgen’s technical site audits identify exactly which structural issues are preventing your content from being indexed and prioritised by search engines, then fix them within a defined 90-day engagement.

The work goes beyond sitemaps. Canonicalisation, crawl efficiency, hreflang implementation, and Core Web Vitals are all part of the same SEO service, tied directly to commercial outcomes rather than technical metrics in isolation. If your site has grown, migrated, or accumulated years of content without a structured audit, the sitemap is usually the first place the problems show up. Get in touch to find out what a 90-day technical SEO engagement looks like for your site.


Useful sources

The following primary references cover the sitemap protocol and implementation guidance in full:

  • Google Search Central: What Is a Sitemap — the official Google definition, format overview, and guidance on when sitemaps help.
  • Google Search Central: Build and Submit a Sitemap — protocol limits (50,000 URLs, 50MB), format requirements, submission methods, and sitemap index guidance.
  • sitemaps.org: The Sitemap Protocol — the primary protocol specification covering XML format, metadata tags, encoding requirements, and the sitemap index format.
  • Wikipedia: Sitemaps — background on the protocol’s history and the formats it encompasses.
  • Search Engine Land: When and how to use HTML sitemaps — practical guidance on HTML sitemaps for UX and internal linking.

FAQ

What is the purpose of a sitemap?

A sitemap tells search engines which URLs exist on your site and provides metadata about each one, such as when it was last updated. Its primary purpose is discovery: helping crawlers find content they might otherwise miss.

How do I create a sitemap for my website?

The simplest route is your CMS. WordPress users can install Yoast SEO, which generates and maintains an XML sitemap automatically. For non-CMS sites, Screaming Frog can crawl your site and export a valid sitemap file.

How do I use a sitemap for SEO?

Submit your sitemap to Google Search Console via the Sitemaps report. Monitor the indexed URL count and use the Coverage report to identify pages that are submitted but excluded, then investigate and fix the underlying cause.

How do I find my website’s sitemap?

Check yoursite.com/sitemap.xml first. If that returns nothing, look in yoursite.com/robots.txt for a Sitemap: directive, or check the Sitemaps section of Google Search Console to see whether one has been submitted previously.

About the Author

Fabio Embaló

Co-founder & CEO, Viaduct Generation

Fabio co-founded Viaduct Generation in 2020 with a belief that the gap between agency output and business impact was structural, not incidental. He leads the agency's strategic direction, client partnerships, and the development of the Growth Engine methodology. With a background spanning organic search, content strategy, and digital transformation, he has spent his career building systems that connect digital activity to commercial outcomes.

AI Strategy Growth Architecture SEO & AEO Client Partnerships