Articles · Search basics
What is a sitemap and does your website need one?
By Armstrong Websites. Published . Updated .
A sitemap is a file on your website that lists the pages you want search engines to find. A small site with clear menus can get by without one, because Google follows links from page to page. But a sitemap costs nothing, most platforms create it for you, and it helps Google find new and changed pages. So yes, have one, and submit it to Google once.
What a sitemap looks like
The kind search engines use is called an XML sitemap. It is a plain text file written in a format made for machines. It is not meant for people to read.
Inside is a list of web addresses. Each entry can include the date the page last changed. A small business site might list ten to thirty addresses. An online store might list thousands.
The file usually lives at an address such as yourdomain.ca/sitemap.xml. Open that address in a browser and you will see either a page of code or a tidy table, depending on your platform.
What a sitemap does
Search engines use programs called crawlers to read the web. A crawler lands on a page, reads it, and follows the links to other pages. That is how Google finds most content.
A sitemap gives the crawler a list to check against. It helps most in a few cases.
- Your site is new. Few other sites link to you yet, so crawlers have few ways in.
- Some pages are hard to reach. A page that no menu or other page links to may never be found by following links.
- Your site is large. A store with many products or a site with years of articles has more for a crawler to miss.
- You change pages often. The last-changed date tells Google which pages to visit again.
What a sitemap does not do
A sitemap does not raise your ranking. It does not force Google to list a page. Google treats it as a hint about where to look, then decides for itself which pages to index.
It also does not fix a weak page. If a page has little useful content, listing it in a sitemap will not help.
Does a small site need one?
Google’s own guidance says a small site with pages that are well linked to each other may not need a sitemap. A five-page site for an electrician in Enderby, with every page in the main menu, falls in that group. Google will find all five pages without help.
Still, there is no downside to having one. You almost certainly have one already. The better question is whether Google knows about it, and whether it lists the right pages.
How to find your sitemap
Most platforms build the sitemap for you and update it each time you add or remove a page. Try these addresses, with your own domain in front.
- Squarespace, Wix, and Shopify. Try
/sitemap.xml. These platforms generate it for you. - WordPress. WordPress creates a basic one at
/wp-sitemap.xml. If you use an SEO plugin, the plugin usually replaces it with its own. Yoast SEO uses/sitemap_index.xml. Rank Math uses the same address. - Custom-built sites. Try
/sitemap.xmlor/sitemap-index.xml. If neither loads, ask the person who built the site.
You can also check a file called robots.txt. Type /robots.txt after your domain. Many sites list the sitemap address in that file on a line that starts with “Sitemap:”.
Some sitemaps are split in parts. The first file, called a sitemap index, links to smaller sitemaps for pages, posts, and products. That is normal. Submit the index, and Google reads the rest.
Submit your sitemap to Google
Google may find your sitemap by itself. Submitting it removes the guesswork and gives you a report.
- Sign in to Google Search Console. If you have not set it up, read How to set up Google Search Console for your website.
- Open the Sitemaps report from the menu. Menu labels change, so look under indexing.
- Type the last part of your sitemap address, such as
sitemap.xml, into the box. - Click submit.
Search Console shows a status. “Success” means Google read the file. The report also shows how many pages Google found in it.
You only need to do this once. Google checks the file again by itself. Submit again only if the sitemap address changes, which can happen when you switch platforms or SEO plugins.
Bing has a similar free tool called Bing Webmaster Tools. It accepts a sitemap the same way.
Check what is in it
Open your sitemap and read the list of addresses. Look for three problems.
Pages that are missing. If a key service page is not in the list, find out why. On WordPress, an SEO plugin setting may have the page marked to be hidden from search engines.
Pages that do not belong. A sitemap should list only pages you want in search results. Remove thank-you pages, test pages, old drafts, and thin tag or author pages. Most platforms and plugins have a setting to leave a page or a page type out.
Addresses that no longer work. If the sitemap lists a page you deleted, something is out of date. On a platform that builds the file for you, this is rare. On a hand-built site, it is common.
Compare the number of pages in your sitemap with the number of indexed pages in the Search Console pages report. The numbers do not have to match. A large gap is worth a closer look.
XML sitemaps and HTML sitemaps
You may also hear about an HTML sitemap. That is a regular page on your site, made for people, that links to every other page. Some sites put a link to it in the footer.
A small site does not need one. A clear menu does the same job. How to plan a website menu visitors can follow covers that.
When a tool or a person asks for “your sitemap,” they almost always mean the XML file.
When to look at it again
Check your sitemap at these times.
- After a redesign or a move to a new platform. The address may change, and old addresses may need redirects. What is a redirect and when do you need one? explains those.
- After you add a new section, such as a blog or an online store.
- When Search Console emails you about a sitemap error.
- Once a year, as part of a general checkup.
Outside of those times, leave it alone. A working sitemap needs no regular care.
If your sitemap is missing or Search Console shows errors you cannot sort out, tell us about it on the contact page.
Read next
How long does SEO take to work for a local business?
Local SEO takes months, not days. Some fixes show up in a few weeks and others take most of a year. Here is what affects the wait and how to track progress.
How to read Google Analytics for a small business
Google Analytics can answer four questions for a small business: how many people visit, where they come from, what they read, and whether they contact you.
How to redesign a website without losing Google rankings
Keep your Google rankings through a redesign: list your old pages, keep the addresses that work, redirect the rest, keep your text, and check Search Console.