Back to Blog
    Digital Marketing6 November 2026

    Building an XML sitemap Google will actually crawl

    Building an XML sitemap Google will actually crawl

    Last updated: 6 November 2026

    The best XML sitemap generator for Google is Google Search Console's own sitemap submission tool, used alongside a generator that matches your platform. WordPress users should install Yoast SEO or Rank Math, both of which generate and maintain a sitemap automatically. If you are on a custom or bespoke site, Screaming Frog SEO Spider can crawl your site and export a standards-compliant XML sitemap in minutes. Generating the file is the easy part. Getting Google to crawl it and act on it is where most small businesses go wrong.

    Key takeaways

    • An XML sitemap is a file that lists your site's URLs and tells Google which pages exist, when they were last updated, and how they relate to one another.
    • Google does not guarantee it will crawl or index every URL in a sitemap, but submitting one through Google Search Console is the most direct way to request coverage.
    • Sitemaps should contain only canonical, indexable URLs. Including redirects, noindex pages, or duplicate URLs actively undermines the file's credibility.
    • For most small business sites, a single sitemap.xml covering under 50,000 URLs is sufficient. Larger sites use a sitemap index file to nest multiple sitemaps.
    • WordPress with Yoast SEO or Rank Math, Screaming Frog, and XML Sitemaps Generator (xml-sitemaps.com) are the three most practical generation tools for UK small businesses in 2026.
    • Submitting a sitemap is a one-time task. Keeping it clean and current is an ongoing one.

    What is an XML sitemap and how does it work?

    An XML sitemap is a structured file that lists the URLs on your website in a format search engines can read without rendering your pages. It lives at a fixed location, typically yoursite.co.uk/sitemap.xml, and is written in XML (Extensible Markup Language), which uses tags to label each URL and its properties.

    Each entry in the file can carry four pieces of information: the URL itself (<loc>), the date it was last modified (<lastmod>), how often it changes (<changefreq>), and its relative priority (<priority>). In practice, Google places little weight on <changefreq> and <priority> because webmasters routinely inflate them. The <loc> and <lastmod> values are what genuinely influence crawler behaviour.

    When you submit a sitemap through Google Search Console, Googlebot reads the file and adds the listed URLs to its crawl queue. That does not mean every URL gets crawled immediately or indexed at all. Google uses the sitemap as a signal alongside hundreds of others. A clean, accurate sitemap improves that signal. A sitemap full of redirect chains, blocked pages or low-quality URLs weakens it.

    Why does a sitemap matter for a small business site?

    Googlebot discovers most pages by following links. If your internal link structure is strong, it will find your content without a sitemap. But internal links are rarely perfect, especially on small business sites built on page-builder tools, where new service pages or blog posts often go live without being linked from anywhere else. These are called orphan pages, and a sitemap is their only guaranteed route to discovery.

    A sitemap also accelerates re-crawling after updates. If you rewrite a service page, change a price, or publish a new case study, the <lastmod> timestamp in your sitemap signals to Googlebot that the page has changed and is worth revisiting. Without a sitemap, re-crawl timing is unpredictable.

    For sites with thin crawl budgets (which applies to most small business sites with under 500 pages), a sitemap helps concentrate Googlebot's attention on the pages you actually want indexed, provided the sitemap itself only contains those pages.

    How do you generate an XML sitemap?

    The generation method depends on your platform. Here is a practical guide for the most common setups.

    For WordPress sites

    1. Install Yoast SEO or Rank Math from the WordPress plugin directory. Both are free for sitemap purposes.
    2. In Yoast SEO, go to SEO > General > Features and enable XML sitemaps. The sitemap is automatically available at yoursite.co.uk/sitemap_index.xml.
    3. In Rank Math, go to Rank Math > Sitemap Settings. Enable the sitemap and choose which post types and taxonomies to include.
    4. Visit the sitemap URL in a browser to confirm it loads correctly and displays your pages.
    5. Copy the sitemap URL and submit it in Google Search Console under Indexing > Sitemaps.

    For non-WordPress sites (custom or other platforms)

    1. Use Screaming Frog SEO Spider (free up to 500 URLs, £199 per year for larger sites). Run a crawl of your domain.
    2. Go to Sitemaps > XML Sitemap in the top menu. Configure which response codes and page types to include. Exclude 3xx redirects, 4xx errors and noindex pages.
    3. Export the sitemap file and upload it to your server's root directory so it is accessible at yoursite.co.uk/sitemap.xml.
    4. Add the sitemap URL to your robots.txt file on a new line: Sitemap: https://yoursite.co.uk/sitemap.xml.
    5. Submit the URL in Google Search Console.

    For small sites with no technical resource

    Xml-sitemaps.com offers a free generator for sites up to 500 pages. Enter your domain, run the crawl, download the XML file, and upload it to your root directory. It is not automatically updated, so you need to regenerate it after significant site changes.

    What should a valid sitemap.xml file look like?

    A minimal, correctly formatted XML sitemap looks like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
      <url>
        <loc>https://yoursite.co.uk/</loc>
        <lastmod>2026-10-01</lastmod>
      </url>
      <url>
        <loc>https://yoursite.co.uk/services/seo/</loc>
        <lastmod>2026-09-14</lastmod>
      </url>
    </urlset>
    

    The namespace declaration (xmlns="http://www.sitemaps.org/schemas/sitemap/0.9") is required. URLs must use the full HTTPS version of your domain consistently. Date format must follow ISO 8601: YYYY-MM-DD. Every URL must return a 200 status code and must not carry a noindex directive.

    Which sitemap generator is best for your situation?

    Tool Best for Cost Limitation
    Yoast SEO (WordPress) WordPress sites, automated updates Free (premium from £99/year) WordPress only
    Rank Math (WordPress) WordPress with more granular control Free WordPress only
    Screaming Frog SEO Spider Custom, Drupal, Shopify or any CMS Free up to 500 URLs; £199/year beyond Manual regeneration needed
    xml-sitemaps.com Small sites with no technical resource Free up to 500 pages No auto-update; manual upload
    Drupal XML Sitemap module Drupal CMS sites Free Requires module install and configuration

    For Drupal sites, the XML Sitemap module (available via Drupal's module library) generates and auto-updates a sitemap without manual work. Configuration takes around 20 minutes for a standard install and covers all content types you choose to include.

    What are the most common sitemap mistakes that stop Google crawling it?

    Including non-canonical or noindex URLs

    If a URL carries a noindex tag or points to a canonical duplicate, including it in your sitemap sends a contradictory signal. You are simultaneously telling Google "index this" (via the sitemap) and "don't index this" (via the meta tag). Google will not penalise you for this, but it does reduce the sitemap's reliability as a signal, and over time Google may start ignoring the file. Only include URLs you genuinely want indexed.

    Including redirected URLs

    A 301 or 302 redirect in your sitemap is wasted space. The URL Google follows through the redirect may or may not end up on a good page. List only the final destination URL with a 200 status.

    Not updating the sitemap after structural changes

    If you delete pages, change URL structures, or replatform your site, an outdated sitemap pointing to dead URLs will eventually accumulate crawl errors in Search Console. Google Search Console's Coverage report flags these as "Submitted URL returns 404", which is a clear sign the sitemap needs regenerating.

    Using the wrong protocol

    If your site runs on HTTPS (which every UK small business site should, for both security and ranking reasons), all sitemap URLs must begin with https://, not http://. Mixing protocols in a sitemap is a common error after platform migrations.

    How do you submit a sitemap to Google?

    Submitting a sitemap to Google Search Console takes under two minutes once the file is live on your server.

    1. Sign in to Google Search Console at search.google.com/search-console and select your property.
    2. In the left-hand navigation, go to Indexing > Sitemaps.
    3. In the "Add a new sitemap" field, enter the path to your sitemap file (e.g. sitemap.xml or sitemap_index.xml).
    4. Click Submit.
    5. Refresh the page. Google Search Console will show the sitemap's status, the last time it was read, and how many URLs were discovered versus how many were indexed.

    The gap between URLs discovered and URLs indexed is worth monitoring. A large gap (say, 200 URLs submitted but only 40 indexed) usually points to either a content quality issue, internal linking gaps, or canonicalisation problems, none of which the sitemap itself can fix.

    How does a sitemap index file differ from a standard sitemap?

    A sitemap index file is a container that points to multiple individual sitemap files. It is the right structure when a single sitemap file would exceed 50,000 URLs or 50MB uncompressed, or when you want to separate content types for easier monitoring.

    A sitemap index file looks like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
      <sitemap>
        <loc>https://yoursite.co.uk/sitemap-pages.xml</loc>
      </sitemap>
      <sitemap>
        <loc>https://yoursite.co.uk/sitemap-posts.xml</loc>
      </sitemap>
    </sitemapindex>
    

    For most small business sites with under a few hundred pages, a single sitemap.xml is simpler and equally effective. Sitemap index files are more relevant for e-commerce sites with large product catalogues or news sites publishing multiple articles daily.

    What are the limits of a sitemap?

    A sitemap improves discoverability. It does not guarantee indexing. Google is explicit that it uses sitemaps as a hint, not a mandate. If a page has thin content, is not linked from anywhere, or sits on a domain with low overall authority, it may remain unindexed regardless of sitemap inclusion.

    A sitemap also does not fix underlying crawlability issues. If Googlebot is blocked by robots.txt from accessing a URL, the sitemap entry for that URL will be ignored. If your site is slow to respond, Googlebot may still deprioritise crawling even with a perfect sitemap in place. The sitemap is one part of a broader technical SEO picture, not a standalone solution.

    At Revolve, we treat the sitemap as the starting point of a technical SEO audit, not the finish line. It tells you what you think is indexable. Cross-referencing it with Search Console's Coverage report tells you what Google actually thinks.

    Frequently Asked Questions

    How do I generate an XML sitemap for Google for free? The easiest free method depends on your platform. WordPress users should install Yoast SEO or Rank Math, both of which generate a sitemap automatically at no cost. For non-WordPress sites with under 500 pages, xml-sitemaps.com crawls your site and produces a downloadable XML file. Once the file is on your server, submit it via Google Search Console's Sitemaps section.

    What is the correct sitemap.xml format? A valid sitemap.xml must start with an XML declaration and reference the sitemaps.org schema namespace. Each URL sits inside a <url> element containing at minimum a <loc> tag with the full HTTPS URL. Dates in <lastmod> follow ISO 8601 format (YYYY-MM-DD). Every listed URL must return a 200 HTTP status code and must not carry a noindex directive.

    Can I download a sitemap from a website that is not mine? You can retrieve a publicly accessible sitemap by typing the site's sitemap URL directly into a browser (e.g. example.co.uk/sitemap.xml) and saving the file. For a more systematic approach, Screaming Frog can locate and extract sitemap files from any crawlable website. Our guide on how to extract a sitemap from a website covers this process in detail.

    How often should I update my XML sitemap? If you use Yoast SEO, Rank Math, or the Drupal XML Sitemap module, the sitemap updates automatically when you publish or edit content. For manually generated sitemaps, regenerate the file any time you add new pages, delete existing ones, change URL structures, or complete a site migration. Submitting an outdated sitemap with dead URLs creates crawl errors in Google Search Console that erode the file's reliability over time.

    How do I know if Google is actually crawling my sitemap? In Google Search Console, go to Indexing > Sitemaps. The panel shows the last time Google read the file and how many URLs it discovered. Cross-reference this with the Coverage report (Indexing > Pages) to see which submitted URLs are indexed, which are excluded, and why. If Google is not reading the sitemap at all, check that the file is accessible at the submitted URL and that your robots.txt is not blocking Googlebot from the file.

    Does having a sitemap directly improve Google rankings? No. A sitemap helps Google discover and re-crawl your pages. It does not influence ranking signals such as content quality, backlinks, or page experience. The ranking benefit is indirect: better crawl coverage means more of your valuable content has the opportunity to rank. Pages that Google cannot find cannot rank at all.

    What is the difference between a sitemap for Google and a sitemap for users? An XML sitemap is a machine-readable file intended for search engine crawlers, not website visitors. An HTML sitemap is a human-readable page listing your site's key sections, designed to help visitors navigate. Both can coexist on the same site. For SEO purposes, the XML version is what matters. For sites with complex navigation, an HTML sitemap can support user experience as a secondary measure.

    Do I need a sitemap if my site has only five pages? Technically, no. Googlebot will discover five well-linked pages quickly without a sitemap. That said, generating one takes five minutes with any free tool, and submitting it through Google Search Console gives you access to coverage data you would not otherwise have. For any small business investing in SEO, that visibility is worth having even on a small site.

    Author: This guide was written by the team at Revolve, a digital marketing agency based in Banbury, Oxfordshire. Revolve works with UK small and mid-sized businesses on SEO, AEO, paid advertising and content strategy. If you would like a technical SEO review that covers your sitemap, crawl coverage and indexing health, speak to our SEO team for a plain-English assessment.

    Last updated: 6 November 2026

    By Revolve

    Need expert support on search, paid media or measurement?

    Get in Touch →