Google sitemap: what it is, how to create it and how to submit it to Google
A Google sitemap is an XML file that lists the pages of your website so Google can find everything you want in search results. Most website platforms create one automatically, so your job is to check it, submit it once in Search Console and read the report.
Zmienka team · · updated · 7 min read
A Google sitemap is an XML file that lists the addresses of the pages on your website and helps Google find all the pages you want to appear in search results. On most websites it is created automatically by the platform the site runs on. All you need to do is open it once, check it and submit it to Google in Search Console, then look at the report a few days later.
What a Google sitemap is and what it looks like
An XML sitemap is a plain text file that contains the full address of each page on your website and, optionally, the date it was last changed. XML is a way of writing data inside tags in angle brackets so that a computer can read it. People call it a Google sitemap because Google launched the format in 2005, but today Bing and other search engines read the same file. Google's overview of sitemaps describes it as a file that search engines read to crawl your site more efficiently.
The simplest sitemap, for a website with a single page, looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://yourbusiness.com/prices</loc>
<lastmod>2026-11-02</lastmod>
</url>
</urlset>
The loc tag holds the page address and lastmod the date of its last significant change. On a real website, the url block repeats for every page you want Google to show.
How to submit your sitemap to Google
There are three ways to submit a sitemap to Google, and for a small business the first one is enough. Google's guide to building and submitting a sitemap lists all of them and calls a submitted sitemap merely a hint: Google may still decide not to download it or use it.
- Search Console. Open the Sitemaps report, paste the sitemap address into the Add a new sitemap box and click Submit. You need owner permissions for the property. If you have not set Search Console up yet, start with our Google Search Console guide.
- robots.txt. Add a line such as
Sitemap: https://yourbusiness.com/sitemap.xmlanywhere in your robots.txt file. Google finds it the next time it crawls that file, and you can list more than one sitemap. Our guide on what robots.txt is shows where the file lives. - The Search Console API. This is for developers who manage many sites. A small business website does not need it.
One method you may still find in older guides no longer works. Google announced in June 2023 that it was retiring the sitemaps ping endpoint, and its announcement now says pings return a 404 error. If an old plugin still pings Google, it does no harm, but it does nothing either. Keeping an accurate lastmod date is what tells Google a page has changed.
How to read the Sitemaps report in Search Console
The Sitemaps report shows each submitted sitemap with its status, the date Google last read it and the number of pages it found in it. The Search Console Help page on the Sitemaps report explains the three statuses:
| Status | What it means | What to do |
|---|---|---|
| Success | The sitemap was loaded and processed without errors. | Nothing. Check that Discovered pages roughly matches the number of pages you have. |
| Has errors | The sitemap was read, but contains one or more errors. Addresses read correctly are still queued for crawling. | Open the sitemap details, fix the listed errors and resubmit. |
| Couldn't fetch | Google could not retrieve the file at all. | Open the address in your browser. Check for a typo, a block in robots.txt or a server error. |
A Success status only means Google read the file, not that your pages are in the index. To see that, use the sitemap filter in the Page indexing report: it shows how many addresses from this one sitemap are indexed and why the others are not. This is the quickest way to find out whether your service pages, not just your blog, made it into Google.
Two details from the same help page often confuse people. A sitemap that Google found only through robots.txt does not appear in the report, so submit it in Search Console too if you want to see its status. And removing a sitemap from the report does not make Google forget it or the pages listed in it.
Does a small business website need a sitemap?
According to Google, a small website whose pages are well linked to each other may not need a sitemap, but in most cases a sitemap helps and does no harm. Google counts a site as small if it has about 500 pages or fewer that you want in search results. That covers the website of a typical garage, hair salon or air conditioning installer.
A sitemap matters more when the site is new and has few links from other websites, when it is a large online store where some products are not linked from anywhere, or when it has a lot of video or image content. A sitemap does not guarantee that everything in it will be indexed. If a page does not show up on Google, our guide on why your website is not showing on Google walks through how to find the reason.
How to find or create your sitemap
The quickest way to check whether your website has a sitemap is to type your address into the browser followed by one of the usual paths. If you see a list of addresses rather than an error page, the sitemap exists.
- Try
yourbusiness.com/sitemap.xml, the most common address. - On WordPress, also try
yourbusiness.com/wp-sitemap.xml, where WordPress has published its built in sitemap since version 5.5. SEO plugins often replace it with their own address. - Open
yourbusiness.com/robots.txtand look for a line starting withSitemap:.
Google says that if your website runs on a content management system such as WordPress, Wix or Blogger, it has likely already made a sitemap available. Building one by hand only comes up for websites made of a few static files. In that case, the file must be UTF-8 encoded, the addresses must be complete, including https and the domain, and Google recommends placing it in the root of the site. On WordPress, also check that the box Discourage search engines from indexing this site under Settings, Reading is not ticked, because it switches the built in sitemap off.
Sitemap index, image, video and news sitemaps
A single sitemap can hold at most 50,000 addresses or 50 MB uncompressed, so larger sites split it into several files and list them in a sitemap index. Many platforms do this even for small sites, with separate files for pages, posts and products. You then submit only the index:
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://yourbusiness.com/sitemap-pages.xml</loc></sitemap>
<sitemap><loc>https://yourbusiness.com/sitemap-products.xml</loc></sitemap>
</sitemapindex>
According to the Search Console Help, an index can list only sitemaps, not other indexes, and each child address should be complete. Google also accepts extensions for images, video and news. A local business rarely needs them: a news sitemap is for publishers in Google News, and image or video sitemaps matter only when those files are what you sell.
Sitemap errors worth fixing
The most common sitemap problem on a small website is that it lists pages that do not belong in search results, or leaves out the pages that bring in customers. Google recommends listing only the addresses you want to see in results.
- Pages that return a 404 error or a redirect, often left over from a website redesign.
- Test pages, the cart, the login page or the thank you page shown after a form is sent.
- The same page twice, with and without www, or with both http and https.
- A new service or price page missing because someone once wrote the sitemap by hand.
- A
lastmoddate that changes every time the file loads. Google uses this date only when it is consistently accurate.
The priority and changefreq fields that some systems add are ignored by Google. You do not need to change anything because of them.
What to do with your sitemap this week
Open your website's sitemap.xml today and check that it lists all your service pages, your prices and your contact page, and nothing extra. Then submit it in Search Console, and a week later check the status and the Page indexing filter for that sitemap.
Whether Google knows your pages also matters for AI assistants that search the web before they answer. In our measurement on 30 October 2026, we asked Gemini 3.8 Flash with Google Search through the API questions about local businesses in Slovakia. In 190 of 216 answers, the model searched the web first. The details are in our study of how AI assistants choose local businesses. A page the search engine has not found is unlikely to turn up in such a search. A sitemap is one part of the technical basics in our guide to local SEO for small businesses.
If you would rather not go through the addresses by hand, run our free website check. It reads your home page, robots.txt and sitemap, and tells you what to fix for each item.
Frequently asked questions
What is the difference between an HTML sitemap and an XML sitemap?
An HTML sitemap is an ordinary page with a list of links, meant for visitors. An XML sitemap is a machine readable file for search engine crawlers, and visitors normally never see it. The sitemap you submit in Search Console is the XML version.
Do I need to resubmit my sitemap after every new page?
No. If your website platform generates the sitemap, new pages are added to it automatically. Google's Search Console Help recommends resubmitting a sitemap only after major changes.
Can I still ping Google to tell it my sitemap has changed?
No. Google retired the sitemaps ping endpoint after announcing it in June 2023, and pings now return a 404 error. Use Search Console or a Sitemap line in robots.txt instead.
Will a sitemap help AI assistants find my business?
Nobody promises that directly. Assistants that search the web before answering work with what the search engine knows, so a page that Google has found and indexed has a better chance of turning up in such a search.
Check your website for free
Enter your address and in a few seconds you will see what is fine on your website and what to fix. No sign-up.