Aktualisiert am


Das Wichtigste in Kürze
An XML sitemap lists the URLs of your website that search engines should crawl and index. It is particularly valuable for large or complex websites, new domains and pages with weak internal linking. What matters is a clean sitemap: only relevant, indexable pages, up-to-date entries and regular checks in Google Search Console.
Auf einen Blick
Have you ever wondered how you can help search engines like Google find all the important pages on your website? This is where XML sitemaps come in. An XML sitemap is essentially a table of contents for your website – but for search engines rather than people. In the past, many websites had HTML sitemaps that visitors could click through, but they were hardly exciting for human users. The XML sitemap, on the other hand, is a machine-readable format that lists all relevant URLs on your website.
Why does that matter? Imagine Google visiting your website. Of course, Google can find many pages via internal links. But no website is perfectly linked, and especially on large or new websites there's a risk that some pages stay “under the radar”. According to Google, XML sitemaps are the second most important source for discovering new content.
In other words, a good sitemap makes sure Google and other search engines don't overlook any important content. It also gives them valuable additional information – for example, when pages were last updated. In short: XML sitemaps speed up and improve the indexing of your content.
In this guide you'll learn, in a practical and easy-to-follow way, what an XML sitemap is, when you really need one, how to create and optimise it, and which typical mistakes to avoid. Whether you're an SEO professional, a marketing manager or just getting started – you'll find helpful tips from the basics to advanced best practices. Let's get started and make your website sitemap-ready 😉
An XML sitemap is a special file (in XML format) that lists all the important pages (URLs) of your website so that search engines get a complete overview of your content. Think of it as a digital table of contents for your website. The file contains the URLs of your pages and, optionally, additional information about each URL, such as when the page was last changed or whether there are alternative language versions. These extras are optional, though. Google itself explains:
“A sitemap tells Google which pages and files you think are important in your site, and also provides valuable information about these files. For example, when the page was last updated and any alternate language versions of the page.”
Important: an XML sitemap is primarily intended for search engines, not for visitors. Unlike an HTML sitemap, which people can read in the browser, an XML sitemap is structured so that crawlers (such as Googlebot) can process it quickly and easily. Both types share the same goal – helping content get discovered – but in different ways: the HTML version can also be used for navigation, while the XML version is essentially a feed for search engines.
A typical XML sitemap file starts with an XML declaration and a <urlset> element with the appropriate namespace. Each URL gets its own <url> block that contains at least the address, for example:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/</loc>
<lastmod>2025-03-14</lastmod>
</url>
</urlset>The tags <lastmod>, <changefreq> and <priority> are optional. They let you specify when a page was last modified, roughly how often it changes and how important it is relative to your other pages. But note: search engines largely ignore this information. Google, for example, prefers to rely on its own findings and treats priority and changefreq as hints at most. So you don't need to worry about entering perfect values everywhere – a valid list of URLs is all you need.
In summary: the XML sitemap is a simple file (usually called sitemap.xml) that contains all the important URLs of your website. It helps search engines understand the full scope of your website and discover new or updated pages faster. In the next section, we'll look at whether every website needs one and when it is particularly useful.

You might be wondering: does every website really need a sitemap? In theory, no – but in practice it's almost always a good idea. A correct XML sitemap never hurts (as long as you don't put nonsense in it). Google won't penalise you for not having one, but you may miss out on opportunities.
An XML sitemap is particularly useful in the following cases:
And when is a sitemap less urgent? On small websites with a simple structure (e.g. a classic one-pager or a company website with 5–10 pages), Google can usually find everything without a sitemap. If all pages are well linked, crawlers get through easily. But: since modern CMSs often generate a sitemap automatically, there's nothing wrong with having one for a small website too – better safe than sorry. Google itself recommends sitemaps especially for large, frequently updated websites.
Our tip: spend a few minutes setting up a sitemap, no matter how small your website is. You have nothing to lose – and as your website grows or becomes more complex, you'll be glad you maintained it from the start.
An XML sitemap is only useful if it is created and maintained properly. In the worst case, a bad sitemap sends wrong signals or wastes crawler resources. To make your sitemap work as well as possible, follow these best practices:
If you follow these best practices, you've already won half the battle. Your sitemap becomes a reliable assistant for crawling instead of a potential source of errors. Next, let's look at how to submit your sitemap to Google correctly and what to keep in mind when it comes to indexing.
The best sitemap is of little use if search engines don't know it exists. That's why submitting it and monitoring it in the right tools matters. Here's a short guide on how to proceed and what to look out for:
As soon as your XML sitemap is ready and online, submit it in Google Search Console (GSC). Log in, select your property (website) and go to “Sitemaps” in the menu. Enter the URL of your sitemap (e.g. https://www.your-domain.com/sitemap.xml) and submit it. Search Console will try to fetch the file and tell you right away whether it was successful. Ideally, you'll see the status “Success” along with the number of URLs found. If there's a problem (e.g. file not found, wrong format), GSC reports an error that you should fix.
After submitting your sitemap, the Sitemaps report in Search Console shows you some useful information, including:
This information is extremely helpful. For example, you can quickly see whether all important pages are indexed or whether some are missing even though they're in the sitemap. But remember: submitting a URL via a sitemap is no guarantee that Google will crawl or index it. The sitemap is an invitation, not an order. You might see “20 URLs discovered, 18 indexed” – Google hasn't (yet) included the remaining 2 pages, perhaps because of quality issues or because they're very similar to other pages. That's normal. What matters is that no important page stays unindexed for good.
Tip: If GSC consistently shows significantly fewer indexed URLs than submitted ones, find out why (thin content? duplicate content? crawling issues?). The sitemap has done its job – Google knows about the pages – but Google may not (yet) consider them worth indexing. That's where your analysis needs to start.
Check Search Console regularly to keep an eye on the health of your sitemap and indexing. GSC also reports if a submitted sitemap is no longer available or if new errors appear. A common mistake, for example, is forgetting to update the sitemap after a domain change or relaunch, so Google keeps crawling an old sitemap pointing to the old domain for a while. That's easy to avoid if you always check your sitemap settings after making changes.
We've already covered the ways to tell Google about your sitemap: robots.txt and Search Console. Once submitted, Google will fetch your sitemap regularly on its own. If you're in a hurry (e.g. after an important update), you can click “Resubmit” in GSC to trigger another fetch. Usually this isn't necessary, though – Google checks back from time to time anyway.
Depending on your target audience, don't forget Bing. Bing Webmaster Tools has a sitemaps section that works in a similar way. Bing's market share is much smaller (often only around 2–3 % in B2C, possibly higher at around 20–30 % in B2B), but if you already have a sitemap, submitting it there takes hardly any time. Bing also supports an interesting newer approach called IndexNow, which we cover briefly in the FAQ below. Yandex and Baidu offer options too, but they're only relevant if you're specifically active in Russia or China.
In summary: Google Search Console is your most important tool for monitoring the indexing of your sitemap URLs. It shows whether your sitemap was processed successfully and what the indexing status of your pages is. Remember that while a sitemap improves discovery, it offers no guarantee of indexing – Google still decides what goes into the index. Even so, the sitemap is an essential way to keep Google up to date and spot potential problems early.
When creating an XML sitemap, you need to follow a few technical rules so that search engines accept the file without problems. Here are the most important requirements and limits according to the official sitemaps protocol and Google's guidelines:
In short: stick to the standards (max. 50,000 URLs/50 MB, correct XML format) and structure your sitemap sensibly for the size of your website. Then nothing stands in the way of successful processing – and search engines will reward you by crawling your content more efficiently.
XML sitemaps come with their own pitfalls. Many websites have a sitemap but don't use its full potential – or even create problems because it's poorly maintained. Let's look at some common sitemap mistakes and how to avoid them:
A classic: the sitemap contains links that no longer work or shouldn't be indexed – for example pages that return a 404 error, pages that redirect via 301, or pages with noindex. Having such URLs in your sitemap is counterproductive. Solution: clean up your sitemap regularly. After a relaunch or major updates, make sure the sitemap is up to date and old, deleted URLs have been removed. Watch the messages in Search Console – it tells you when URLs in your sitemap cause errors. Tip: keep your redirect management clean and fix 404 errors promptly. If 404 pages end up in your sitemap, either correct the sitemap or – better – fix the broken links. (Read more about avoiding and fixing 404 errors in our guide to 404 errors and SEO.)
Some plugins or tools generate sitemaps that also include archive pages, pagination pages (page/2/ etc.) or filter parameters. These are usually unimportant or even harmful for indexing. A good sitemap should only contain high-quality, relevant pages. Solution: adjust the settings of your sitemap generator if needed. Many SEO plugins let you exclude certain post types or parameters. Check your sitemap manually or with an SEO tool and filter for “?”, “=” or other obvious patterns that don't belong (session IDs etc.). Anything that isn't meant for the index should stay out.
Some website owners rely on Google finding the sitemap on its own. In many cases that doesn't happen – especially if the Sitemap line is missing from robots.txt, or the sitemap is in an unusual location or has an unusual name (e.g. /sitemap_index.xml, which is common, or worse: /abc/def/sitemap.xml). If Google doesn't know about the file, even the best sitemap won't help. Solution: always reference it in robots.txt and submit it in Google Search Console. That gives you double security, and the GSC sitemaps report also shows whether Google could fetch the file – and therefore whether the path is correct.
This mainly affects larger, frequently updated websites. Example: developers export and upload a sitemap once but never update it. New pages end up in the sitemap late or not at all, while old ones stay in it forever. This is particularly annoying for online shops with a constantly changing product range – important new products may go undiscovered for longer. Solution: automate the process. Use your CMS's built-in function or a cron job that regenerates the sitemap daily, for example. Tools like Screaming Frog can crawl your website and build a sitemap, but that's more of a one-off solution or backup, as it's error-prone and time-consuming. Ideally, use a dynamic sitemap generated directly by your system.
This one is more specific: if you use hreflang in your sitemap (see best practices), there's a risk that it doesn't match the information in your HTML. As mentioned above, two different sets of hreflang annotations confuse Google. Solution: decide on one approach. Either maintain hreflang consistently in the source code of every page (and leave it out of the sitemap), or use it in the sitemap and remove the on-page hreflang tags. That way you avoid conflicting signals.
Many people believe they can influence Google with certain sitemap settings – for example by giving every page priority 1.0 in the hope of better rankings, or setting changefreq to “daily” so Google crawls every day. In reality, this information is barely taken into account. Google judges a page's importance mainly by its content and incoming links, not by a number in the sitemap. An artificially inflated priority can even look suspicious. Solution: only use priority and changefreq if you have a real reason. You could, for example, give very important pages a slightly higher priority than less important ones within your own website to signal what matters more – but don't expect miracles. And only enter realistic changefreq values (or leave the field out). As a general rule: content and internal linking matter more than any sitemap setting.
Sometimes the file names or paths of sitemaps change (e.g. after switching plugins or a relaunch). A common mistake is leaving the old sitemap online – and perhaps still in robots.txt – while the new one is already in use. Google may then see two different sitemaps with potentially contradictory content. Solution: delete outdated sitemap files or block access to them, and update robots.txt to the current version. In Search Console, you can remove old sitemaps so they disappear from the report. Keep your setup lean: one current sitemap (or index) per property.
Finally, the biggest mistake is ticking the topic off once the sitemap is submitted. Many problems would be spotted early with an occasional look at Google Search Console or Bing Webmaster Tools, which report sitemap errors, indexing rates and discrepancies. If you ignore them, you're wasting optimisation potential. Solution: make it a routine to check GSC (indexing and sitemaps reports) at least once a month. Especially after major changes or new content, a quick check is worthwhile: are the new URLs in the sitemap? Have they been indexed yet? Are there any error messages? That way you can react quickly instead of finding out months later that something went wrong.
As you can see, most of these mistakes can be avoided with common sense and a little regular maintenance. An XML sitemap isn't a “set and forget” task – treat it as a living document that evolves with your website. If you follow these best practices and keep an eye on the typical sources of error, your sitemap becomes a valuable asset for your SEO rather than a source of headaches.
Finally, here are answers to some frequently asked questions about XML sitemaps:
An XML sitemap is a structured list of a website's pages in XML format that helps search engines crawl the website efficiently. It lists all relevant documents, such as pages, images or videos, along with metadata (e.g. last modified date). The file follows the XML 1.0 standard with UTF-8 encoding and can come in different formats, such as news, image or video sitemaps. A well-maintained XML sitemap helps your content get discovered and supports your SEO.
A sitemap makes sure that all relevant pages – including deeply nested or new content – are found quickly by search engines. This makes indexing easier and improves visibility in the search results. It's a clear advantage especially for complex websites or large sitemaps, for example with lots of rich media content. A clear structure in the form of a main sitemap or sitemap index gives crawlers a map of your website.
Not necessarily – but for large or dynamic websites with frequent updates or complex structures, an XML sitemap is extremely helpful. It ensures that all content can be crawled and indexed correctly, especially if internal linking isn't ideal. A sitemap isn't a must, but it offers clear advantages for SEO and technical analysis.
That depends on the system you're using:
In most cases, the automatic solution via CMS or plugin is the best choice because it keeps the sitemap up to date. In WordPress, for example, you just activate the feature and the plugin does the rest.
Once your sitemap is ready, submit it in Google Search Console under “Sitemaps”. Make sure it follows the XML 1.0/UTF-8 standard. Large websites should use a sitemap index file to group several sitemaps logically. Important: check that the sitemap can be accessed and that all URLs in it work – this makes analysis easier and improves crawling.
No. An XML sitemap only makes sure Google learns about your URLs – not that it indexes them. Google decides whether to index a page based on many factors (content quality, duplication, technical accessibility, user signals etc.). The sitemap helps pages get discovered, but it isn't an “indexing ticket”. Google itself points out that a sitemap is no guarantee of indexing. Some pages may show up in Search Console as “Discovered – currently not indexed” even though they're in the sitemap. Possible reasons include thin content, crawl budget or other SEO issues – in that case, you need to work on the content or overall website quality.
Remember: you can't force indexing or rankings, certainly not with a sitemap alone. A sitemap is a helpful tool, not a miracle cure. It makes sure Google doesn't overlook anything – but then your pages have to convince on their own merits. The upside: if pages aren't indexed, Search Console and your sitemap help you notice sooner and take action.
Not directly. An XML sitemap isn't a ranking factor in the strict sense. Simply having one doesn't improve your rankings. But there's an indirect effect: faster and more complete indexing can help your pages appear in the search results sooner. Google doesn't rank pages without a sitemap any worse, as long as it finds them some other way. When Google's Gary Illyes was asked whether not having a sitemap is a ranking disadvantage, he said no. What matters more is that your website is technically clean and has strong content. Bottom line: a sitemap helps with crawling and indexing, but content, backlinks and user experience count for much more when it comes to rankings. So ideally you have both: great content and a sitemap.
As described above, you'll need to work with several sitemap files. Split your URLs – e.g. by category, year, product group or simply in blocks of 50,000 – and create a sitemap index file that lists all the individual sitemaps. Submit this index to Google (instead of every single sitemap), and Google will fetch all the sitemaps it references. Make sure each file stays within the 50,000 URL/50 MB limits. In theory, you could manage up to 50,000 sitemaps with 50,000 URLs each (2.5 billion URLs) – in practice, hardly anyone gets close. If your website is that big, you probably have a dedicated team for indexing management. For most websites, 2 to 10 sitemaps are plenty. News sites, for example, often create a new sitemap for new articles every day and keep older articles in separate monthly or yearly sitemaps. Important: don't forget to add new sitemaps to the index if you change your structure, and keep robots.txt up to date if sitemap paths are listed there.
Yes! Especially on large websites, it makes sense to split content into several sitemaps – for example by language, content type or freshness – and combine them in a sitemap index file. That gives you control over the structure and gives search engines a clear map. This approach is also recommended for rich media content, e.g. with a dedicated video sitemap.
IndexNow is a relatively new protocol (initiated by Microsoft/Bing) that lets you notify search engines proactively about new or changed content. Instead of waiting for the search engine to fetch your sitemap, you actively ping it. Bing and Yandex already support IndexNow; Google has been testing it but hasn't officially adopted it. So if Bing matters to you, IndexNow can be useful: you can set it up via an API endpoint or use tools and plugins that automatically notify Bing whenever a page changes. Does IndexNow replace the sitemap? Not really – it's more of a supplement for faster notifications. You should still maintain your XML sitemap, because it serves as the complete reference of all your URLs, while IndexNow only reports changes. For Google, the classic sitemap is still what counts. In short: IndexNow is a nice-to-have for Bing and Yandex, but not a must – the XML sitemap remains the foundation.
XML sitemaps are an important SEO tool that makes it easier for search engines to navigate your website. Especially for large or complex websites, they can noticeably improve indexing. Smaller projects don't strictly need one, but it never hurts – and it grows with your requirements. What matters is that you create and maintain it correctly: list only relevant, indexable pages, keep entries up to date and check Search Console for errors regularly.
Remember: a sitemap is no guarantee of top rankings, but it ensures your content gets a fair chance to be indexed at all. Think of it as the background layer of your SEO – invisible to users, but essential for crawlers. Follow the best practices in this guide and all your important pages will reliably make it into Google's index, without constant manual help.
One last tip: don't get lost in perfectionism. It's almost impossible to map a huge website perfectly in a sitemap at all times – and you don't have to. Google forgives minor inconsistencies. What matters is the big picture: all important pages in, obvious junk out.
Need support? If this feels too technical or you want to make sure your website is fully SEO-optimised, the team at panpan.digital is happy to help – with SEO consulting for your sitemap and your entire website, and with digital strategy consulting for a holistic online strategy. Just get in touch.


