Google Search 14 January 2024 · 4 min read

XML Sitemaps Explainer

An XML Sitemap acts as a roadmap for your website, guiding search engines through all the significant pages you have on offer.

Katherine Zhu Katherine ZhuSenior SEO Specialist · at Local Digital since 2021
Illustration for XML Sitemaps Explainer
The 20-second version Skip the article, act on this
An XML sitemap lists the pages you want search engines to find, which matters most on large sites.Each sitemap file can hold up to 50,000 URLs, and every entry needs the full absolute URL.Include only indexable pages that return a 200 status. Leave out duplicates and unimportant pages.Search engines do not always consider the priority tag. Get the URLs and last-modified dates right.Submit it in Search Console, fix reported errors like blocked or unreachable URLs, then resubmit.

An XML Sitemap acts as a roadmap for your website, guiding search engines through all the significant pages you have on offer.

It’s a structured file that communicates directly with search engines like Google, ensuring they’re aware of every piece of content you deem important. This becomes particularly crucial for larger sites where content might be numerous and not as easily discoverable through links.

By employing an XML Sitemap, you enhance the visibility of your pages to search engines, thereby improving your SEO efforts and making sure your content reaches its intended audience.

Illustration of a monitor and devices showing a site's pages

Understanding the makeup of an XML Sitemap is straightforward once you recognise its key elements. Each entry in an XML Sitemap includes a location (URL) of a page, often accompanied by additional details such as the last modification date, the frequency of changes, and the priority of the page in the context of the rest of the site. Such insights help search engines prioritise their indexing activities, ensuring that fresh and updated content is recognised swiftly.

By integrating an XML Sitemap into your website, you essentially extend a warm invitation to search engines to index your content. Whether you’re managing a fresh blog or a hefty e-commerce platform, consider an XML Sitemap a critical component of your digital arsenal that supports the ever-important need to stand out in search engine results. It’s a technical yet accessible tool that bolsters your online presence with strategic, search engine-friendly cues.

Creating and Optimising XML Sitemaps

Illustration of a laptop showing an XML sitemap being built

Creating a well-structured XML Sitemap is crucial for ensuring that search engines can crawl and index your website effectively. This section will guide you through the steps and best practices for building and managing your Sitemap with a focus on optimisation.

Structuring XML Sitemap Files

To structure your XML Sitemap effectively, adhere to the XML protocol. Your Sitemap can include a variety of URLs, but keep in mind that each XML Sitemap file should not list more than 50,000 URLs and must not exceed 50MB uncompressed. For larger sites, consider creating a Sitemap Index—a file that lists multiple Sitemap files. Make sure each listed URL points to a canonical version of a page to avoid any duplicate content issues.

Important XML Tags

Within your XML Sitemap, several key tags help search engines crawl your site more efficiently:

  • : Specifies the URL location of the page. This must be the absolute path.
  • : The date of the last modification of the file.
  • : Indicates the frequency at which the page is likely to change.
  • : Suggests the importance of the page relative to other URLs on your site; however, the priority tag is not always considered by search engines.

Additional tags such as <image:image>, <video:video>, and <xhtml:link> can be used for including media or alternative language versions (through hreflang attributes) of pages.

Best Practices for Sitemap Creation and Management

When creating and managing your XML Sitemap, follow these best practices:

  • Update Regularly: Refresh your Sitemap as new content is added or removed from your site.
  • Keep It Clean: Only include indexable pages to prevent search engines from indexing unimportant or duplicate pages.
  • Verify URLs: Ensure that the URLs in your Sitemap are error-free and returning a 200 status.
  • Inform Search Engines: Submit your Sitemap through search engine webmaster tools, like Google Search Console.
  • Utilise CMS Tools: If you’re using a CMS such as WordPress, you can generate and update sitemaps automatically with plugins like Yoast SEO or use dedicated Sitemap generators.

Remember, an XML Sitemap is not a silver bullet for SEO, but it is a valuable tool to facilitate better indexation of your site’s content by search engines.

Submitting and Managing Sitemaps in Search Engines

Illustration of a laptop surrounded by pages being submitted to search engines

Creating and submitting a sitemap is a fundamental aspect of technical SEO, which facilitates search engines in effectively crawling and indexing your website. Proper management of your sitemap ensures that new and updated content is discovered promptly while keeping track of the site’s health.

Submitting Sitemaps to Google Search Console

To submit a sitemap to Google Search Console, you’ll need to access your account and navigate to the ‘Sitemaps’ section. Here’s how to do it:

  1. Ensure your sitemap is UTF-8 encoded and follows the XML sitemap protocol.
  2. Login to Google Search Console and select your website.
  3. Click on ‘Sitemaps’ under the ‘Index’ section in the left-hand menu.
  4. Enter the URL of your sitemap in the ‘Add a new sitemap’ field.
  5. Click ‘Submit’.

Once submitted, Google will crawl the sitemap and, if successful, begin indexing your website’s URLs.

Monitoring Sitemap Performance

After your sitemap is submitted, it’s essential to monitor its performance in Google Search Console to ensure URLs are correctly indexed. Regular checking allows you to identify and fix issues, like:

  • Errors in URLs preventing them from being indexed
  • Pages that are not being crawled due to robots.txt file restrictions
  • Redirects that may be affecting crawl efficiency

To check your sitemap’s performance, go to the ‘Sitemaps’ section and view the reported insights and index coverage to understand how effectively search engine crawlers are accessing content.

Troubleshooting Common Sitemap Errors

Common sitemap errors that could impede the indexing process include:

  • HTTP errors: When pages are unreachable due to server issues.
  • Incorrect format: If the sitemap doesn’t comply with XML standards.
  • Blocked by robots.txt: URLs that are disallowed by the robots.txt file won’t be crawled.

In case you encounter an error:

  1. Review the error report in Google Search Console and identify the problematic URL or issue.
  2. Rectify the site errors, such as repairing broken links or adjusting your robots.txt file.
  3. Resubmit your sitemap for Google to re-crawl.

It’s crucial to maintain a clean and up-to-date sitemap to assist in the optimal technical SEO performance of your website.

Free SEO auditFind out which of your pages are dragging the rest downWe'll send back the pages to cut, keep and rebuild. No charge, no lock-in.
Get my audit