
Khalid Hossen
Founder and CEO, VentCube
Khalid Hossen founded VentCube in 2018. He leads the team's work on SEO, Google Ads and websites for home service and professional service businesses, and writes every post on this blog.

A sitemap is a plain file, written in a format called XML, that lists the web addresses (URLs) on your site. Google’s introduction to sitemaps says search engines read it to crawl your site more efficiently. It can also tell Google when each page last changed.
Here is a sitemap for a site with two pages. The format follows the example in Google’s sitemap guide.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/</loc>
<lastmod>2026-09-14</lastmod>
</url>
<url>
<loc>https://www.example.com/plumbing/</loc>
<lastmod>2026-10-02</lastmod>
</url>
</urlset>
What each tag means:
<urlset> wraps the whole list.<url> holds one page.<loc> is the full address of that page, including https://.<lastmod> is the date the page last changed. It’s optional.Older guides also tell you to fill in <priority> and <changefreq>. Google says it ignores both. It uses <lastmod> only when the dates are consistently accurate. A change to the main content, the structured data or the links on a page counts as an update. A new copyright year in the footer doesn’t.
You won’t write this file by hand on most sites. But knowing what’s in it makes the rest of this guide easier to follow.
Google’s own answer is “maybe not.” Its sitemap overview says that if your pages are properly linked, Google can usually find most of your site. It lists three signs you might not need a sitemap:

That describes most service business websites. A roofer with 25 pages and a clear menu will usually get found without one.
You’re more likely to need one if your site is large or new with few links from other sites. The same goes for sites with lots of video, images or news. Google also says that in most cases a site will benefit from having one. Since every major website builder makes a sitemap for you, it’s worth the few minutes to check it and submit it.
Your sitemap is usually already live: Shopify, Squarespace and Wix put it at yourdomain.com/sitemap.xml, and WordPress puts it at yourdomain.com/wp-sitemap.xml, or at sitemap_index.xml if you use Yoast. A CMS is the software you use to edit your site, and Google’s guide says your CMS has likely made a sitemap already. Here’s where to look on each platform.
Since version 5.5, WordPress makes a basic sitemap on its own at yourdomain.com/wp-sitemap.xml, according to the WordPress 5.5 announcement. It covers your homepage, your public pages and posts, categories and author pages. WordPress also adds the sitemap to your robots.txt file so search engines can find it.
One catch. If “Discourage search engines from indexing this site” is ticked under Settings, then Reading, WordPress turns the sitemap off. Check it after any new site or redesign goes live.
Many WordPress sites run an SEO plugin, and many plugins make their own sitemap. Yoast SEO, for example, puts its sitemap index at yourdomain.com/sitemap_index.xml, per Yoast’s help page. Pick one sitemap and submit only that one, so Search Console isn’t tracking two lists of the same pages. Our WordPress SEO guide covers the rest of the setup.
Squarespace makes your sitemap for you at yourdomain.com/sitemap.xml, according to Squarespace’s sitemap help page. When you add or remove content, the sitemap updates, usually within an hour and sometimes up to 24 hours later. You can’t edit it.
Squarespace leaves out disabled pages, password protected pages and pages you’ve hidden from search. Sitemaps aren’t available on trial sites, and your site has to be public for the sitemap to load. For more on this platform, see how to improve SEO on Squarespace.
Every Wix site comes with a sitemap index at yourdomain.com/sitemap.xml. A sitemap index is a sitemap of sitemaps. On Wix it points to smaller sitemaps for each type of content, such as pages, blog posts, bookings and store products, as Wix’s help center explains. Wix updates it whenever you change your site. If you complete the Wix SEO Setup Checklist, Wix submits the sitemap index to Google for you.
Every Shopify store gets a sitemap at yourdomain.com/sitemap.xml without any setup. Shopify’s help center says it links to separate sitemaps for your products, collections, blogs and pages. It updates when you add a product, page, collection, image or blog post. Your store can’t be in password protected mode, because Google needs to reach the pages.
If a developer built your site from scratch, ask them to have the site produce the sitemap from its own list of pages. Google’s guide says that for more than a few dozen URLs you should generate the sitemap automatically, and that the best way is to have your website software do it. You can write a small sitemap by hand, but Google calls that tedious and hard to keep up to date.
Open your sitemap address in a browser. It will look like a list of links. Open a few of them and check that:

If a page shouldn’t be there, fix the setting on the page itself, such as “hide from search” or noindex, instead of editing the file. On website builders you can’t edit the file anyway.
Submit the sitemap address in the Sitemaps report in Google Search Console, then check that its status reads “Success”. Google Search Console is Google’s free tool for site owners. If you haven’t added and verified your site there yet, do that first. Then:
These steps match Shopify’s walkthrough and work the same way on any platform.
Then check the status in the Sitemaps report:
If a sitemap can’t be fetched after several tries, Google stops trying, so fix the problem and submit it again. The report also shows “Discovered pages”, the number of addresses Google read from your sitemap. Google is clear that this doesn’t mean those pages will be crawled or indexed. To see which ones made it, filter the Page indexing report by sitemap.
You can also point Google to your sitemap from your robots.txt file with one line.
Sitemap: https://www.example.com/sitemap.xml
Google’s guide says it will find the sitemap the next time it reads your robots.txt. But the Sitemaps report only shows sitemaps you submitted there, so submit it in Search Console as well. Keep in mind that Google calls a submitted sitemap “merely a hint.” It helps Google find pages. It doesn’t force Google to index them.
Google’s guide sets the limits: one sitemap can hold up to 50,000 URLs or 50MB uncompressed. If you go over either, you must split the list into several sitemaps. The file must use UTF-8 encoding, and Google recommends putting it at the root of your site, like yourdomain.com/sitemap.xml.

To submit several sitemaps at once, list them in a sitemap index file and submit that. Google’s guide to sitemap index files shows the format.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://www.example.com/sitemap1.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.example.com/sitemap2.xml</loc>
</sitemap>
</sitemapindex>
A 30 page site for a dentist or an electrician will never come close to these limits. WordPress, Wix and Shopify already split their sitemaps into smaller files behind an index, so you only submit the one main address.
The common mistakes are listing pages you don’t want in Google, using the wrong version of your domain, submitting an address that redirects, faking fresh dates, leaving old sitemaps behind after a move and expecting the sitemap to fix indexing. Check for these before and after you submit.
A sitemap should hold only the main version of pages you want people to find. Redirected addresses, missing pages, noindex pages and duplicate versions all send Google mixed signals. If your platform builds the sitemap, fix the page settings and the sitemap will follow.
If your site runs on https://www.yourdomain.com but the sitemap lists http://yourdomain.com, Google sees different addresses from the ones people visit. The same goes for Search Console. Google’s Sitemaps report only shows sitemaps for the property you have open, so check that you didn’t mix up http and https, or www and no www.
Search Console records the exact sitemap address you submit and doesn’t follow redirects, according to the Sitemaps report help page. Open the address in your browser first and submit the final one.
If a tool stamps today’s date on every page whenever anything on the site changes, your lastmod dates stop meaning anything. Google uses lastmod only when it’s consistently accurate, so make sure the date moves only when the page itself changes.
After a move from Wix to WordPress, or a switch of SEO plugins, the old sitemap address in Search Console may point at nothing. Remove outdated sitemaps from the report and submit the new one.
A sitemap helps Google find pages. It can’t make Google index a thin page, a blocked page or a near copy of another page. If listed pages stay out of Google, inspect a few of them with the URL Inspection tool in Search Console. Our technical SEO guide walks through those checks.
If you see sitemap errors or missing service pages, our technical SEO services cover sitemaps, indexing and the rest of the technical setup. To find out what your site needs first, request a free technical SEO audit. We’ll send the findings within 2 business days. Free audit. No obligation. No hard sell.

Maybe not. Google says a site with about 500 pages or fewer, where every important page can be reached by links from the homepage, might not need one. Most website builders make one anyway, so submitting it takes a few minutes and does no harm.
Try yourdomain.com/sitemap.xml first. That's where Shopify, Squarespace and Wix put it. On WordPress without an SEO plugin, try yourdomain.com/wp-sitemap.xml. With Yoast SEO, it's yourdomain.com/sitemap_index.xml.
No. Google calls a submitted sitemap a hint. It helps Google find your pages, but Google still decides whether to crawl and index each one. A page can be listed in your sitemap and still stay out of Google.
No. Google says it ignores both. It uses the lastmod date only when that date is consistently accurate, so leave it alone unless the page itself changed.
Usually you don't need to. Once Google reads your sitemap, it keeps coming back to it on its own schedule. Resubmit after you fix an error or when the sitemap address changes, for example after a platform move.
Keep reading
A plain English technical SEO guide for small business sites. Check indexing, speed and mobile use with free Google tools, and learn what to fix first.
A practical WordPress SEO guide for small business sites. Set permalinks, pick one SEO plugin, fix the sitemap and speed, and keep plugins lean and safe.
Squarespace SEO step by step: site title, SEO titles and descriptions, slugs, redirects, alt text, sitemap, Search Console, SSL, speed and blog settings.
Free audit
We look at your site, your Google Business Profile and your ads, then send you a written report within 2 business days that says what to fix first.