What is a sitemap?
A sitemap is an organised overview of the pages, files and media on your website. It works as a signpost for search engines, showing them the structure of your site. Google and other search engines crawl the internet and use your sitemap as a starting point. They find and index your pages faster and more efficiently.
In practice, a sitemap is usually an XML file in the root of your domain. The file contains a list of all URLs and metadata such as the date last updated, change frequency and priority. Search engines use this information to judge how often they should revisit a page. They also judge how important the page is compared with the rest of the site. A sitemap helps search engines prioritise their crawl and improves the visibility of your content.
A sitemap is particularly useful in SEO work. It stops your important pages from being forgotten or deprioritised in indexing. If you have a large website with many subpages or complex data structures, a sitemap gives search engines a clear overview. They can see what exists and how it connects.
How do you use a sitemap?
You use a sitemap to guide search engines to the most important parts of your website. When you add a new blog post, a product page or a gallery, you can update the sitemap file. Google is then notified of the new URLs. You do this manually if you manage your CMS yourself. You do it automatically if you have a system that continuously generates sitemap files. Many CMSs today have built-in features that keep sitemaps up to date without you having to do anything.
A sitemap is also a tool in your technical SEO strategy. It shows you how your pages connect. You can also see whether your internal links make sense for both users and search engines. If you work with content strategy or structured information architecture, you can use the sitemap as a planning tool. Here you decide where new content should go.
A good sitemap also goes hand in hand with a well-thought-out technical setup, where the robots.txt file and Google Search Console work together. This gives search engines the right signals and reduces the risk of indexing errors.
Why you should use a sitemap
A sitemap makes it more likely that search engines find your pages and index them correctly. It matters most if you have a new site with few external links. It also applies if you use dynamic content, which search engines may otherwise find harder to discover. Without a sitemap, Google may in some cases miss pages because no clear internal links connect them to the rest of the site.
A sitemap also helps when you work with images and video. Here you can specify metadata such as image location or video duration, so search engines better understand the media files. This can improve how search engines show your visual content in search results or in Google Images and Google Video.
Work on the sitemap is often closely tied to SEO optimisation, link structure and content production. For example, when you create new content such as blog posts or campaign pages, you can make sure the sitemap is updated straight away. That way, the sitemap becomes a permanent part of your overall visibility strategy.
What types and variants are there?
There are several types of sitemap, each with its own purpose. The most common are:
- XML sitemap: The technical version, aimed mainly at search engines. It contains all URLs and their metadata.
- HTML sitemap: A user-friendly list of pages, typically placed in the footer. It helps your visitors find their way around larger websites.
- Image sitemap: A version that records all images and their attributes. This lets search engines index your visual content correctly.
- Video sitemap: A specialised version for video content. Here you can specify the title, duration, thumbnail and description.
- Other types: You can also use news and planning sitemaps when you publish frequently updated or time-sensitive content.
How do you use a sitemap in practice?
The first step is to create the file. Most CMSs generate a sitemap automatically. You can also write one yourself in a text editor and save it as sitemap.xml. Afterwards, you place the file in the root of your domain. Search engines can then find it via the URL, typically yourdomain.com/sitemap.xml.
Once the file is ready, you submit it to Google through Google Search Console. Here you can also see reports on which pages Google has indexed and whether there are any errors. You can also add the sitemap to your robots.txt file, so crawlers find it on their own.
Keep the sitemap up to date every time you add or remove pages. If old URLs are left in, search engines may spend resources crawling pages that are no longer relevant. An up-to-date sitemap helps you optimise your crawl budget, so your most important pages get the most attention.
In a broader digital strategy, the sitemap works alongside SEO audits and technical analyses. For example, you can use sitemap data to find gaps in your content, assess the logic of your navigation or see where your internal link structure could be improved.
What should you watch out for?
A sitemap doesn't solve problems with poor structure or missing content. You still need to make sure your internal links work. The navigation must also make sense for both users and search engines. A sitemap is a supplement to a healthy website and can never replace it.
You should also leave out pages that shouldn't be indexed, such as thank-you pages, duplicates and archives. They needlessly spread your crawl budget. Think of the sitemap as a curated list of the pages that search engines actually need to find and understand. If you work with a joined-up effort across SEO, strategy or content, the sitemap can be the technical link. It makes your digital foundation more transparent and effective.