XML sitemap

An XML sitemap is a file in Extensible Markup Language (XML) format that contains a structured list of all relevant URLs on a website. It is used by search engines such as Google, Bing and others as a guide to efficiently discovering the contents of a web presence, to crawl and to index. In essence, it is a kind of „map“ or „table of contents“ specifically for web crawlers, which helps them to better understand the structure of a website and ensure that no important pages are overlooked.

Structure and functionality of an XML sitemap

The basic structure of an XML sitemap is clearly defined. Each sitemap file begins with the XML declarator and is extended by the root element <urlset> enclosed. Within this element, each individual relevant URL of the website is displayed as a <url>-element.

At least every <url>-element must have a <loc>-tag, which specifies the full URL of the page. Optionally, other tags such as <lastmod> (date of the last change in W3C date format, e.g. 2025-10-22), <changefreq> (estimated frequency of changes, e.g. daily or weekly) and <priority> (relative priority of the URL on a scale from 0.0 to 1.0). However, it should be noted that Google uses the information on changefreq and priority often interpreted as hints and not as strict instructions.

A simplified example of the structure of an XML sitemap:


https://www.ihre-agentur.de/
    2025-10-22
    daily
    1.0
  
  
    https://www.ihre-agentur.de/leistungen/seo/
    2025-09-15
    weekly
    0.8

The encoding of the file must be UTF-8 in order to ensure correct processing of all characters.

Significance for search engine optimization (SEO)

For the Search engine optimization an XML sitemap is a valuable technical tool, even if it has no direct effect on the Ranking has. Its main benefit lies in supporting the crawling and indexing process.

The use of an XML sitemap is particularly advantageous for:

  • New websitesSearch engines can discover new content more quickly and include it in their index because the sitemap provides a direct reference.
  • Large or complex websites: For extensive or deeply nested structures, the sitemap helps the crawlers to find all relevant pages that may not be optimized. internally linked are.
  • Websites with isolated contentPages that receive few internal links or are generated dynamically benefit from being explicitly mentioned in the sitemap.
  • Media contentSpecial sitemaps can be created for images, videos or news articles to provide search engines with more detailed information on these media types and facilitate their indexing.

After creation, the XML sitemap is usually submitted to the search engines, for example via the Google Search Console or the Bing Webmaster Tools. This speeds up processing and offers webmasters the opportunity to monitor the indexing status and identify possible errors.

There are certain guidelines for the size and number of XML sitemaps: A single uncompressed sitemap file may be a maximum of 50 MB in size and contain up to 50,000 URLs. For websites that exceed these limits, it is common practice to split the URLs into several sitemaps and bundle them into a sitemap index file, which is then submitted to the search engines. It is crucial that the URLs listed in the sitemap are exclusively canonical URLs with an HTTP status code 200 (OK) and do not contain any redirects or error pages.

Related terms on the topic
XML sitemap

WordPress
WordPress is an open source content management system...
White Hat SEO
The term „white hat SEO“ refers to a...
RankBrain
RankBrain is a self-learning AI system from Google that...
Plugin
A plugin, often also known as an extension, add-on or additional module...
Plagiarism Finder
A plagiarism finder, also known as plagiarism software or...
PHP
PHP, originally an acronym for „Personal Home Page“,...
Permalink
A permalink, a short form of „permanent...
Page Speed
The loading speed of a website, known as...
Page Builder
A page builder is an essential software tool that...
Onpage optimization
On-page optimization is a fundamental component...
From our magazine

More on the topic

Man with glasses and curly hair looking at a tablet in a modern room, surrounded by digital network visualizations.
What is LLM SEO? An easy-to-understand guide
Structured data in JSON-LD format - sample code for SEO and machine-readable information in modern AI browsers.
Structured data in SEO and AI searches
Laptop with logos of ChatGPT, P, Gemini and a search icon on the screen.
SEO in the context of ChatGPT & Perplexity: How content is found
Smartphone with the display &num=100 in front of a blurred background with graphics.
Mysterious decline in impressions in the Google Search Console
Search bar with icons for Google Chrome, Telegram and another app on a digital background.
AI browser: Atlas, Comet - the transformation of surfing?
Keyword King - Three magnifying glasses on a yellow background next to letter stones with the word „Keyword“, symbolizing the precise analysis and strategy work of the Keyword King in search engine optimization.
Become a keyword king: How to find the best keywords for your blog
Close-up of a smartphone screen with Google search interface and AI mode option.
Google rolls out AI Mode in Germany
Stylized GAIO character steps against a Google symbol.
GAIO-SEO explained: How to become visible in generative answers
Backlink analysis
Backlink analysis: The path to the perfect link profile
AI overviews vs. classic SERPs - representation of a Google search with AI summary, symbol image for changed user journey.
AI overviews vs. classic SERPs: changes to the user journey