
What is a
sitemap?
XML sitemaps explained: how to help Google find all the important pages on your website.
A sitemap, or XML sitemap, is a file that lists the URLs on a website that you want search engines to find and index. The file works as a map for search engine bots, and can also contain information about when a page was last changed. It is usually located at an address such as example.com/sitemap.xml.
An XML sitemap is made for machines. It should not be confused with an HTML sitemap, which is a regular page with links for visitors. There are also separate variants for images, video and news, which give search engines extra information about such files.
Search engines find new pages mainly by following links. A sitemap is a supplement that ensures important pages are discovered, even when they are deep in the structure or have few internal links. It is especially useful for:
Large websites and online stores with many pages.
New websites with few links from others.
Websites where content is published and changed often.
Pages that are not well connected through internal linking.
A sitemap does not guarantee that the pages will be indexed. It only tells the search engine that the pages exist and that you consider them important.
Only indexable pages: include pages that should appear in search, not redirects, error pages or noindex pages.
Only canonical URLs: use the preferred version of each page.
Correct date: only update the modification date when the content actually changes.
Split up large websites: one file can have a maximum of 50,000 URLs. Use a sitemap index that combines several files, ideally split by page type.
Automate: most publishing tools create the sitemap automatically.
Enter the address of the sitemap in Google Search Console under Sitemaps. There you can also see how many of the URLs Google has found, and whether there are errors. You can also reference the sitemap in robots.txt, so all search engines find it.
The sitemap is also a useful diagnostic tool. If many pages in the sitemap are not indexed, it is a sign that something is wrong, either with the quality of the pages, duplicates or technical obstacles. So compare the sitemap with the indexing report regularly. Read more about technical SEO.
Crawling: the sitemap helps search engines find pages to crawl.
Indexing: the goal is for the pages in the sitemap to end up in Google's index.
Robots.txt: the file where you can show bots the way to the sitemap.
Google Search Console: the tool where you submit and monitor the sitemap.
See all the terms in the glossary.