Search

What Is a Sitemap?

Understand the purpose of XML and HTML sitemaps, how search engines use them to discover content, and how effective sitemap management supports technical SEO and website architecture.

10 min read

A sitemap is a structured representation of the pages, content and resources available on a website. XML sitemaps help search engines discover and crawl URLs, while HTML sitemaps help users navigate website content. Both contribute to effective website architecture, content accessibility and technical SEO.

As websites expand through new products, services, international markets and editorial content, maintaining clear relationships between pages becomes increasingly important. Sitemaps provide an organised way to communicate the scope of a website and support the discovery of its content.

When combined with effective internal linking, logical navigation and consistent indexation signals, sitemaps form an important part of a well-structured organic search strategy.

What is a sitemap?

A sitemap is a file or webpage that provides an organised representation of the URLs and content available across a website.

Depending on its format, a sitemap can communicate information about individual webpages, images, videos, news articles, language variations and the relationships between different resources.

The two principal types of website sitemap are:

  • XML sitemaps: Structured files designed to communicate URL information to search engines.
  • HTML sitemaps: Accessible webpages containing organised links to relevant sections and content across a website.

Both formats support content discovery, with XML sitemaps primarily serving search engine crawlers and HTML sitemaps providing an additional navigation resource for website visitors.

What is an XML sitemap?

An XML sitemap is a machine-readable file that lists URLs a website owner wants search engines to discover and consider for indexation.

XML stands for Extensible Markup Language, a structured format used to organise and exchange information between systems.

Search engines such as Google and Bing can process XML sitemaps to identify webpages and supporting resources, helping them understand the content available across a website.

Larger websites may organise their URLs across multiple XML sitemap files, grouped through a central sitemap index.

Understanding XML sitemap elements

XML sitemaps use a series of defined elements to communicate information about URLs and their associated content.

XML sitemap elements and their functions
Element Purpose Requirement
<urlset> Contains the collection of URLs within the sitemap. Required
<url> Defines an individual URL entry. Required
<loc> Specifies the absolute URL of the webpage or resource. Required
<lastmod> Communicates the date of the most recent significant modification. Optional
<changefreq> Indicates the expected frequency of content changes. Optional
<priority> Expresses the relative priority of a URL within the website. Optional

What is the changefreq tag in an XML sitemap?

The <changefreq> element describes how frequently a webpage is expected to change.

Supported values within the sitemap protocol include always, hourly, daily, weekly, monthly, yearly and never.

<changefreq>weekly</changefreq>

This element remains part of the XML sitemap specification. Google determines its own crawling schedules independently of the changefreq value.

What is the priority tag in an XML sitemap?

The <priority> element allows website owners to express the relative importance of URLs within their own website, using values between 0.0 and 1.0.

<priority>0.8</priority>

What is an HTML sitemap?

An HTML sitemap is a webpage that contains an organised collection of hyperlinks to important pages and sections across a website.

HTML sitemaps provide an additional navigation experience, helping users understand the scope of a website and discover relevant products, services, information and resources.

They are commonly organised into logical categories that reflect the wider website architecture, such as services, product categories, company information and editorial content.

For websites with extensive content or complex navigation structures, an HTML sitemap can provide a central reference point from which users can explore different areas of the business.

What is the difference between XML and HTML sitemaps?

XML and HTML sitemaps serve complementary purposes within website architecture. XML sitemaps communicate structured URL information to search engines, while HTML sitemaps provide an accessible representation of website content for users.

XML sitemaps vs HTML sitemaps
Consideration XML sitemap HTML sitemap
Primary audience Search engines and web crawlers Website visitors
File format XML HTML
Primary purpose URL discovery and crawling support Content navigation and website exploration
Typical location /sitemap.xml /sitemap
Content organisation Structured URL entries and metadata Headings, categories and hyperlinks
Additional metadata Modification dates, language alternatives and media information Descriptive headings, link text and supporting information
SEO contribution Supports search engine discovery and crawling Supports internal linking and content accessibility
Implementation Generated through website systems, plugins or custom development Published as an accessible webpage


What are the different types of XML sitemaps?

XML sitemaps can be structured around different content types and technical requirements. Standard URL sitemaps communicate webpage locations, while specialised sitemap extensions provide additional information about particular resources.

Different types of XML sitemaps
Sitemap type Primary purpose Typical application
Standard XML sitemap Communicates webpage URLs and associated modification information. General website content
Sitemap index Organises multiple XML sitemap files. Large and complex websites
Image sitemap Communicates image locations associated with webpages. Ecommerce, photography and visual content
Video sitemap Provides additional information about video content. Video publishers, media platforms and educational websites
News sitemap Communicates recently published news content. News organisations and editorial publishers
Hreflang-enabled sitemap Communicates relationships between language and regional URLs. International and multilingual websites

What is an image sitemap?

An image sitemap provides search engines with additional information about images associated with individual webpages.

Image sitemap functionality is particularly relevant to ecommerce businesses, fashion retailers, travel brands and home and interiors businesses, where visual discovery can influence purchasing consideration.

What is a video sitemap?

A video sitemap provides additional information about video content available across a website.

Depending on the implementation, this information can include video titles, descriptions, thumbnail locations, duration and video content or player URLs.

Video sitemaps can complement wider video SEO strategies by supporting the discovery and interpretation of video resources across relevant search environments.

What is a news sitemap?

A news sitemap communicates recently published news articles and associated information, including publication names, publication dates and article titles

What is a hreflang sitemap?

An XML sitemap can also communicate hreflang annotations, establishing relationships between equivalent language and regional versions of webpages.

What is a sitemap index?

A sitemap index is an XML file that references multiple individual sitemap files, providing a central location through which search engines can discover them.

How many URLs can an XML sitemap contain?

The sitemap protocol defines maximum URL and file size limits to support efficient processing across search engines.

50,000 Maximum URLs per standard XML sitemap
50MB Maximum uncompressed sitemap file size
50,000 Maximum sitemap entries per sitemap index

Websites exceeding these limits can distribute their URLs across multiple sitemap files and organise them through one or more sitemap indexes.

Businesses can also maintain smaller, logically segmented sitemaps to support more detailed technical monitoring across different content groups.

XML sitemap files can be compressed using GZIP to reduce transfer size. The file size limit applies to the uncompressed sitemap.

Which pages should be included in an XML sitemap?

An XML sitemap should reflect the preferred URLs a business wants search engines to discover and consider for inclusion within organic search.

The most appropriate URL selection depends on the website's architecture, content strategy and commercial objectives.

Recommended sitemap treatment by URL type
URL type Recommended treatment
Homepage Include the preferred canonical homepage URL.
Service pages Include relevant, indexable commercial service pages.
Product pages Include canonical product URLs intended for organic discovery.
Category pages Include category URLs that serve distinct search and commercial purposes.
Editorial content Include published articles, research and educational resources intended for search.
International pages Include preferred localised URLs aligned with the international SEO strategy.
Redirected URLs Reference the preferred final destination URL.
Duplicate URLs Reference the preferred canonical version.
Noindex pages Reserve sitemap entries for pages intended for indexation.
Removed pages Update the sitemap to reflect the current available content.
Internal search and account pages Manage these through their appropriate technical and access configurations.
Filtered and parameterised URLs Include preferred versions where they serve a defined organic search opportunity.

What is the relationship between sitemaps and robots.txt?

XML sitemaps and robots.txt files are complementary components of technical SEO.

An XML sitemap communicates URLs that a website wants search engines to discover, while a robots.txt file provides instructions regarding which areas of the website compliant crawlers can access.

A robots.txt file can also reference the location of an XML sitemap through a sitemap directive.

What is the difference between static and dynamic XML sitemaps?

XML sitemaps can be maintained through static files or dynamically generated website systems.

Static XML sitemaps

A static XML sitemap is generated at a particular point in time and updated through a manual or scheduled publishing process.

This approach can be suitable for smaller websites with relatively stable content inventories and straightforward website architectures.

Dynamic XML sitemaps

A dynamic XML sitemap is generated through the website's content management system, database or application logic.

Dynamic implementations can reflect changes to the website automatically as products are added, articles are published, URLs are updated and content is removed.

This approach is particularly valuable for ecommerce platforms, enterprise websites, international businesses and frequently updated editorial publications.

Dynamic sitemap generation also creates opportunities to incorporate canonical URL rules, indexation requirements and accurate content modification dates directly within the website's publishing processes.

How do sitemaps support ecommerce SEO?

Ecommerce websites frequently manage extensive inventories of products, categories, collections, brand pages and editorial content.

Product availability, seasonal ranges, pricing and category structures can change regularly, making scalable sitemap management an important component of ecommerce technical SEO.

Separating product and category URLs into dedicated sitemap files can help businesses monitor indexation patterns across individual areas of their website.

For example, an ecommerce retailer could structure its sitemap architecture around:

  • Product pages.
  • Primary product categories.
  • Commercially relevant subcategories.
  • Brand and manufacturer pages.
  • Seasonal collections.
  • Buying guides and editorial content.
  • International and localised product ranges.
  • Product imagery and other visual resources.

Each content group can be evaluated against its intended organic search contribution, helping establish technical SEO priorities across the wider ecommerce architecture.

XML sitemap best practices

Effective sitemap management centres on accuracy, consistency and alignment with the wider technical SEO strategy.

XML sitemap best practices
Consideration Recommended approach
URL format Use complete absolute URLs, including the protocol and hostname.
Canonicalisation Include preferred canonical URLs aligned with the website's indexation strategy.
HTTP status codes Reference accessible final destination URLs returning successful HTTP responses.
Indexation eligibility Include content intended to be eligible for organic search results.
Modification dates Reflect meaningful content changes through accurate lastmod values.
File size Maintain sitemap files within the recognised size and URL limits.
Content segmentation Organise extensive URL inventories into logical content groups.
XML syntax Use valid XML, correct namespaces, UTF-8 encoding and escaped special characters.
Sitemap accessibility Maintain accessible sitemap files that search engines can retrieve.
Robots.txt integration Communicate sitemap locations through appropriate sitemap directives.
Content publishing Integrate sitemap updates with website publishing and URL management processes.
Performance monitoring Review sitemap processing alongside crawling, indexation and search visibility data.

What is the relationship between sitemaps and internal linking?

Sitemaps and internal linking both support content discovery, serving complementary roles within website architecture.

XML sitemaps communicate a structured inventory of preferred URLs, while internal links establish navigable relationships between webpages.

Effective internal linking helps users and search engines understand the context, hierarchy and relevance of individual pages through navigation, descriptive anchor text and connections between related content.

HTML sitemaps can contribute to this internal linking architecture by providing an additional collection of accessible links to relevant website sections.

A comprehensive approach connects sitemap management with navigation, category structures, breadcrumbs, contextual links and semantic content organisation.

Sitemap frequently asked questions

Does every website need an XML sitemap?

XML sitemaps are useful for websites of all sizes and are particularly valuable for large, new or frequently updated websites. Smaller websites with comprehensive internal linking can also benefit from maintaining a clear inventory of their preferred indexable URLs.

Does submitting a sitemap guarantee indexation?

Sitemap submission provides search engines with information about URLs available for discovery. Indexation is assessed separately based on content, accessibility, canonicalisation and other search engine considerations.

Can a website have multiple XML sitemaps?

Yes. Websites can maintain multiple XML sitemaps for different content categories, product inventories, regional markets or website sections. A sitemap index provides a centralised way to organise these individual files.

How often should an XML sitemap be updated?

Sitemap updates should reflect changes to the website's intended URL inventory and significant content modifications. Dynamic sitemap implementations can automate this process through integration with website publishing systems.

Can Google crawl a website without a sitemap?

Yes. Google can discover webpages through internal links, external links and previously known URLs. An XML sitemap provides an additional structured discovery mechanism that complements these existing pathways.

Can an XML sitemap be compressed?

Yes. XML sitemaps can be compressed using GZIP to reduce transfer size. The sitemap protocol's maximum file size applies to the original uncompressed file.

What is the difference between a sitemap and a sitemap index?

A standard XML sitemap contains individual webpage or resource URLs. A sitemap index contains references to individual sitemap files, providing a central structure for managing multiple URL inventories.

Keep exploring

Related insights

View all insights
Search

What Is Share of Search? Measuring Brand Demand and Market Performance

Share of Search provides a behavioural indicator of brand demand and competitive market performance. Discover how Share of Search is calculated, its relationship with Share of Voice, Share of Mind and Market Share, and how advertisers can use search intelligence to evaluate marketing effectiveness.

22 min read→

Want to find your North Star?

We’ll map the plan and execute with senior-led delivery built around measurable commercial impact.