Technical SEO

XML Sitemaps: How to Create and Submit One to Google

An XML sitemap is a simple map that tells Google which pages to find. Learn how to create one, submit it in Search Console, and help every page get seen.

On this page

An XML sitemap is a simple file that lists the important pages on your website so Google can find them all. Think of it as a map you hand to search engines that says, "Here is everything on my site, and here is where each page lives." You cannot see it as a visitor, but Google reads it to make sure nothing gets missed.

If you have ever launched a page and wondered why it never showed up in search, a missing or broken sitemap is a common culprit. The good news is that creating one and submitting it to Google takes a few minutes, and most website tools do most of the work for you. Here is exactly how it works and what to do.

What an XML sitemap actually does

Google finds pages by "crawling," which means following links from one page to the next. That usually works, but it has gaps. Pages buried deep in your site, brand-new pages with few links pointing to them, and larger sites can all trip up the crawler. An XML sitemap gives Google a direct list so it does not have to rely on links alone.

The file is written in a format called XML, which is just a structured way of listing information that machines read easily. Each entry names a page URL, and it can include extra hints like when the page was last changed. You do not write this by hand. A plugin or platform generates it and keeps it updated as you add pages.

It helps to understand where a sitemap fits in the bigger picture. Getting found on Google depends on several moving parts, and a sitemap is one piece of the technical SEO foundation that makes everything else you do actually count.

Tip: A sitemap helps Google discover pages, but it does not force Google to rank or even index them. Indexing still depends on page quality and whether Google thinks the page is worth showing. The sitemap just makes sure your pages get a fair look.

Do you even need one?

Most small business sites benefit from a sitemap, and there is almost no downside to having one. It matters most if any of these describe you:

  • Your site is new and does not have many links pointing to it yet.
  • You have more than a handful of pages, or you add pages and blog posts regularly.
  • Some pages are not linked well from your main menu or other pages.
  • You want new content, like a fresh blog post, discovered faster.

Even a small five-page site is worth submitting. It costs you nothing and gives Google a clean starting point. If you are still building out your pages, our guide to what a small business website needs will help you decide what belongs in that map in the first place.

How to create an XML sitemap

How you create your sitemap depends on how your site was built. In almost every case, you will not be writing code. Here are the common paths.

If you use WordPress

An SEO plugin handles this automatically. Yoast SEO, Rank Math, and All in One SEO all generate a sitemap and update it every time you publish. You usually find it at a web address like yoursite.com/sitemap_index.xml or yoursite.com/sitemap.xml. If you have not set up a plugin yet, see our list of essential WordPress plugins to get one installed.

If you use a website builder

Platforms like Squarespace, Wix, and Shopify create and maintain a sitemap for you automatically. You do not turn it on. It is simply there, usually at yoursite.com/sitemap.xml. Your only job is to submit it to Google, which we cover below.

If you use Arbor or a done-for-you service

Your sitemap is generated and kept current for you, and it is submitted to Google as part of setup. You do not have to think about it. When new pages or blog posts go live, they get added to the map automatically.

If none of those apply

For a custom-built site with no SEO tool, a free online sitemap generator can crawl your site and produce the file, which you then upload to your site's root folder. This is the only path that involves a bit of manual work, and it is worth asking your developer to automate it instead.

How to find and check your sitemap

Before you submit anything, confirm the sitemap exists and works. Type your domain followed by common sitemap paths into your browser:

Path to tryWhat it usually means
/sitemap.xmlThe most common location for a single sitemap
/sitemap_index.xmlA master file that links to several smaller sitemaps
/sitemap-index.xmlAnother common naming style for the master file
/robots.txtOften lists the sitemap URL near the bottom

If you see a page of listed URLs (it may look plain or a bit technical), you have found it. Copy that full web address. If every path returns a "not found" error, your sitemap either has a different name or has not been created yet. Checking your robots.txt file is a quick way to find the exact location, since well-configured sites point to the sitemap there.

How to submit your sitemap to Google

You submit a sitemap through Google Search Console, the free tool Google gives site owners. If you have not set it up, follow our walkthrough on how to set up Google Search Console first, since you need a verified account before you can submit anything.

Once you are in, the process takes about a minute:

  1. Open Google Search Console and select your website property.
  2. In the left menu, click Sitemaps under the Indexing section.
  3. In the "Add a new sitemap" box, type the part of the address that comes after your domain, usually sitemap.xml or sitemap_index.xml.
  4. Click Submit.

Within a few minutes to a day, the status should change to "Success," and you will see how many pages Google discovered from the file. You only submit a sitemap once. After that, Google checks it regularly on its own, so new pages you add get picked up without you resubmitting.

Tip: Submit the same sitemap to Bing Webmaster Tools too. It works almost identically, takes two minutes, and helps you get found on Bing, which also powers some AI answer engines.

Reading the results and fixing problems

After submission, the Sitemaps report shows a status and a count of discovered URLs. A "Success" status means Google read the file. If you see "Couldn't fetch" or an error, the most common causes are a typo in the address, a sitemap that has not finished generating, or a site that was offline when Google tried to read it. Wait a day and check again, then confirm the URL loads in your browser.

Keep in mind that "discovered" pages are not the same as "indexed" pages. To see which pages Google has actually added to search, use the Pages report in Search Console. If pages are missing from the index, our guide on getting your website indexed faster walks through the usual fixes. And if Search Console flags specific problems, here is how to fix crawl errors without guesswork.

Common sitemap mistakes to avoid

  • Listing pages you do not want indexed. Thank-you pages, login pages, and internal search results usually do not belong in your sitemap. Good SEO tools leave them out automatically.
  • Including broken or redirected URLs. Every link in the sitemap should load a real, working page. If you have moved pages, make sure your sitemap points to the new addresses, not old ones. Our guide to 301 redirects explains how to move pages cleanly.
  • Forgetting it after a redesign. If you rebuild your site, confirm the new sitemap generated correctly and resubmit if the address changed.
  • Treating it as a ranking shortcut. A sitemap helps discovery, not ranking. Ranking still comes from useful pages, good on-page SEO, and links.

Frequently asked questions

How often should I update my XML sitemap?

If your sitemap is generated by a plugin, website builder, or a service like Arbor, it updates itself every time you publish or change a page, so you never touch it. You only need to think about updates if you built the file manually, in which case regenerate it whenever you add or remove pages. Either way, you do not need to resubmit it to Google each time.

Will submitting a sitemap make my site rank higher?

Not directly. A sitemap helps Google find and consider your pages faster, which is a real benefit, especially for new sites. But ranking depends on the quality of your pages, how well they match what people search for, and other signals. Think of the sitemap as making sure your work gets seen, not as a way to jump the line. If ranking is your goal, start with the fundamentals in our SEO for small business guide.

What is the difference between an XML sitemap and an HTML sitemap?

An XML sitemap is written for search engines and is not meant for people to read. An HTML sitemap is a regular page on your site that lists your pages as clickable links for human visitors, a bit like a directory. Most small businesses only need the XML version. Solid internal links between your pages usually do the job an HTML sitemap would, and our internal linking guide shows how to set those up.

Want this handled for you?

Arbor builds your site, does the keyword research, and keeps you found on Google and in AI answers. You just ask.

See plans Or get your free SEO & AI score →