To submit a sitemap to Google, make sure your site has an XML sitemap at a public address (often /sitemap.xml), then add that address in the Sitemaps report in Google Search Console. Most website platforms create the sitemap for you, so the real work is checking it lists the right pages and nothing else.
This guide covers what a sitemap is, how to create or find yours, what to check, and exactly how to submit it.
What an XML sitemap is (and isn't)
An XML sitemap is a file in a standard format that lists the pages on your site you want search engines to find, optionally with the date each was last changed. It helps crawlers discover pages, especially new pages, pages buried deep in your site, or pages with few internal links pointing to them.
A simple sitemap looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.co.uk/</loc>
<lastmod>2026-10-01</lastmod>
</url>
<url>
<loc>https://www.example.co.uk/services/boiler-servicing</loc>
<lastmod>2026-09-18</lastmod>
</url>
</urlset>
What a sitemap isn't:
- Not a guarantee of indexing. Google still decides which pages to index.
- Not a ranking boost. It helps discovery, nothing more.
- Not a substitute for internal links. Important pages should still be linked from your menus and content.
Older guides talk about priority and changefreq tags. Google says it ignores those, so don't spend time on them. It does use lastmod when the dates are consistently accurate.
One sitemap file can hold up to 50,000 URLs or 50 MB uncompressed. Bigger sites split their pages across several sitemaps and list them in a sitemap index file. Google's sitemaps documentation has the full detail.
Step 1: Find or create your sitemap
WordPress
Since version 5.5, WordPress creates a basic sitemap at /wp-sitemap.xml. SEO plugins such as Yoast SEO or Rank Math usually replace it with their own, often at /sitemap_index.xml. Use one or the other, not both.
Shopify
Shopify creates a sitemap automatically at /sitemap.xml, covering products, collections, pages and blog posts. You can't edit it directly, but hiding or deleting pages in your admin updates it.
Wix, Squarespace and other builders
Most builders also generate a sitemap at /sitemap.xml. Check your platform's help pages for where it lives and which pages it includes.
A custom-built site
Ask your developer to generate the sitemap from your database, so it updates automatically whenever you add or remove a page. A hand-made sitemap that nobody updates goes stale quickly.
Step 2: Check what's in it
Open your sitemap in a browser and work through this checklist:
- Every URL loads a normal page, not a 404 error or a redirect
- No pages marked
noindexare listed - Only one version of each address appears (https, and either www or non-www, not a mix)
- No admin, basket, checkout, account or internal search pages
- No thin archive or tag pages you don't want in search results
- Your important pages are all there
-
lastmoddates only change when the content really changes
A common WordPress catch is a sitemap full of attachment pages, author archives or tag pages. Most SEO plugins let you switch those off.
Step 3: Add it to your robots.txt
Add a line to your robots.txt file with the full address of your sitemap, for example:
Sitemap: https://www.example.co.uk/sitemap.xml
This helps every search engine find it, not just Google. Our free WordPress robots.txt generator adds the sitemap line for you, and robots.txt explained covers what else belongs in that file.
Step 4: How to submit your sitemap to Google
- Sign in to Google Search Console. If you haven't verified your site yet, do that first. A Domain property, verified through a DNS record, covers every version of your site in one place.
- Choose the property for your website.
- In the left-hand menu, open Indexing, then Sitemaps.
- Under "Add a new sitemap", type the path after your domain (for example
sitemap.xml) and select Submit. - Check the status. "Success" means Google could read the file. It doesn't mean every URL in it will be indexed.
If you use a sitemap index, submit the index. Google finds the individual sitemaps listed inside it.
Google retired its old sitemap "ping" address in 2023, so Search Console and the robots.txt line are now the ways to tell it about your sitemap. Bing Webmaster Tools has a similar Sitemaps section and can import your sites from Search Console.
Step 5: Read the reports
Give it a few days, then check two things.
The Sitemaps report. If the status says "Couldn't fetch", open the sitemap address in a private browser window. Check it isn't blocked by robots.txt, a security plugin or a firewall, and that you submitted it under the right property.
The Page indexing report. This shows which pages are indexed and why others aren't. Statuses like "Crawled - currently not indexed" or "Duplicate without user-selected canonical" tell you where to look next. You can filter the report to show only the URLs from your sitemap, which is a handy way to focus on the pages you actually care about.
Do you need to resubmit?
Not every time it changes. Google re-reads submitted sitemaps periodically. Resubmit after a big change, such as a site migration, a new URL structure or a large batch of new pages.
Frequently asked questions
How long after submitting a sitemap will my pages be indexed?
It varies from days to weeks, and some pages may not be indexed at all. A sitemap helps Google find pages, but quality and usefulness decide whether they're indexed. Our SEO starting plan for small UK businesses covers the bigger picture.
Does a small website need a sitemap?
Google says small, well-linked sites may not strictly need one. It takes very little effort, though, and the Search Console reports alone make it worthwhile.
Should I include images in my sitemap?
Image extensions exist and some platforms add them automatically. They're most useful when images matter for search, such as product photos.
What does "Couldn't fetch" mean in Search Console?
Google couldn't download the file. Check the address loads publicly, isn't blocked by robots.txt or security software, and that you added it to the correct property.
If you'd like your sitemap, robots.txt and Search Console set up and checked properly, our sitemap and indexing service does exactly that.
This guide is general information, not legal, tax or financial advice. Fees, rules and thresholds change, so check the official source before you act. Spotted something out of date? Tell us and we will review it.