XML Sitemap Explained Simply

Updated: 24 May 2026 · approx. 2 min read

An XML sitemap lists all of a website's URLs. This helps Google crawl the site and supports indexing. The list is created in XML format.

You can upload it in the Google Search Console or the Bing Webmaster Tools. Alternatively, webmasters store the file on the server and submit the sitemap URL. In any case, a reference to the sitemap in the robots.txt is also advisable.

XML Sitemap Explained

There are several ways to create XML sitemaps:

  • Some CMSs automatically create an XML sitemap; in WordPress there are plugins for this. The advantage: little effort, and the system automatically updates the sitemap when changes are made.
  • Alternatively, you can create a sitemap “manually” – even then a tool is recommended, otherwise errors creep in and the sitemap has to be recreated with every change.

In addition to the URLs, an XML sitemap contains information about the character encoding and sometimes information about priority or changes. Google has requirements: a maximum of 50 megabytes (uncompressed) and 50,000 URLs, formatted in UTF-8.

Important: Google has completely ignored the <priority> and <changefreq> tags for years – no maintenance effort should go into these entries. Of the optional tags, Google effectively uses only <lastmod>, and that only as a hint for crawl scheduling, provided it is reliably maintained.

A short XML example shows the structure – a <urlset> element with a <url> entry whose address is in the <loc> tag, optionally supplemented by <lastmod>:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.beispiel.de/</loc>
<lastmod>2026-05-22</lastmod>
</url>
</urlset>

An XML sitemap is not strictly necessary for Google to index a website. However, it offers concrete advantages for crawling – more on that in the next section.

The Benefit of XML Sitemaps for SEO

XML sitemaps do not directly affect the ranking of subpages. However, they help Google and other search engines find and index new pages as well as files such as images more quickly. An XML sitemap is especially helpful in these cases:

  • The website is new.
  • New subpages are added to an existing site.
  • Subpages are not linked to one another.
  • The site contains many videos and/or images that should be indexed.

Even for very extensive sites, an XML sitemap helps the Googlebot find and index all pages quickly.

For very large websites, a sitemap index file helps: a superordinate sitemap that references several individual sitemaps (itself also limited to a maximum of 50,000 entries or 50 MB). This allows you to get around the limits of 50,000 URLs or 50 MB per file.

Special Sitemaps – Videos, Images, News

Instead of subpages, XML sitemaps can transmit other information:

  • Sitemaps for videos contain, for example, information about the content or the running time.
  • Sitemaps for images can contain information about the image type, licenses, or even meta information.
  • Google News sitemaps help get new articles indexed in Google News more quickly and correctly. However, they are no longer a prerequisite for listing – Google automatically picks up suitable content if it meets the guidelines.

XML sitemaps should not be confused with the user-visible sitemaps that serve as a table of contents for orientation.

For WordPress, specific plugins such as Yoast SEO or Rank Math create the XML sitemap automatically.

When referencing it in the robots.txt, the “Sitemap:” directive requires an absolute, fully qualified URL; Google does not check for http/https/www alternatives.

Quellen

SEO & GEO check

Want more visibility – in search engines and AI answers?

We analyse your potential and show concrete next steps. Free and non-binding.

Get a free initial analysis →