What Is an XML Sitemap and Do I Need One?
An XML sitemap lists the pages on your website for search engines. Learn what it contains, whether a small business needs one and how to create and submit it.

Short answer: An XML sitemap is a file, usually at yoursite.com/sitemap.xml, that lists the pages on your website you want search engines to find, along with optional information such as when each was last updated. Most small business websites benefit from having one, especially new sites, and most modern platforms create it automatically. It helps discovery, but it does not guarantee indexing or rankings.
Sitemaps are one of those technical terms that sounds intimidating but is genuinely simple. Understanding what they do, and what they do not do, will help you spot problems, ask your web designer the right questions, and avoid a few common traps that stop pages appearing in Google.
What an XML sitemap looks like
It is a plain text file in a structured format that machines read easily. A tiny example:
<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/boiler-repair</loc><lastmod>2026-08-02</lastmod></url>
</urlset>
Each <url> entry contains the page address (loc) and optionally the last modified date (lastmod). The sitemap protocol also includes changefreq and priority fields, but Google has said it ignores those. It does use lastmod when it is consistently accurate.
XML sitemap versus HTML sitemap
| XML sitemap | HTML sitemap | |
|---|---|---|
| Audience | Search engines | Human visitors |
| Format | Structured code file | Normal web page with links |
| Typical location | /sitemap.xml | /sitemap or linked in the footer |
| Needed for small sites? | Recommended | Optional, rarely needed |
When people say "sitemap" in an SEO context, they usually mean the XML version.
Do you actually need one?
Google's own guidance is that if your site is small (roughly up to a few hundred pages) and well linked internally, Google can usually find all your pages without a sitemap. So why do professionals still always set one up?
- New sites have few external links, so Google has fewer paths to find pages. A sitemap gives it a direct list.
- It is free insurance. If a page is accidentally orphaned (nothing links to it), the sitemap still lists it.
- It unlocks diagnostics. Submitting a sitemap in Search Console lets you see which listed pages are indexed and which are not, and why.
- It speeds up discovery of updates when
lastmoddates are accurate. - Larger sites, blogs and shops with many pages or frequently changing content benefit significantly.
Our rule of thumb: every business website should have one. It costs nothing and helps in edge cases that you will not see coming.
What should and should not be in your sitemap
This is where real expertise shows. A sitemap should be a clean list of the pages you want in Google, in their final, preferred form.
Include:
- Your homepage, service pages, location pages, about and contact pages.
- Blog posts and genuinely useful resources.
- Product and category pages for shops.
Exclude:
- Pages marked noindex. Listing them sends mixed signals.
- Redirected URLs. List only the final destination.
- Duplicate versions: http and https, www and non-www, URLs with tracking parameters.
- Thank-you pages, login pages, cart and checkout pages.
- Thin tag and archive pages that you do not want ranking.
- Broken pages returning 404 errors.
Every URL should be the canonical version and return a 200 OK status. A messy sitemap full of redirects and errors wastes Google's attention and makes Search Console reports harder to read.
Technical SEO, done properly from day one.
SiteDrum sites ship with a clean, auto-updated sitemap submitted to Google Search Console. See our plans from $99 setup.
How to find your sitemap
- Try
yoursite.com/sitemap.xmlin your browser. - If that fails, try
/sitemap_index.xml(common on WordPress SEO plugins) or/wp-sitemap.xml(WordPress default). - Check your robots.txt file at
yoursite.com/robots.txt, which often has aSitemap:line pointing to it. - Look in your website builder's SEO settings. Wix, Squarespace, Shopify and most others create one automatically.
How sitemaps work on different platforms
| Platform | Sitemap | Watch out for |
|---|---|---|
| WordPress | Built-in, or via an SEO plugin | Two plugins creating two sitemaps; tag and author archives included unnecessarily |
| Wix, Squarespace, Shopify | Automatic | Limited control over what is included |
| Static or custom sites | Generated at build time | Must be regenerated when pages change; good builds do this automatically |
Large sites: sitemap indexes
A single sitemap can list up to 50,000 URLs and be up to 50MB uncompressed. Bigger sites split into several sitemaps (for example pages, posts and products) and list them in a sitemap index file. Most small businesses will never hit these limits, but you may see an index file on WordPress and wonder what it is: it is simply a sitemap of sitemaps.
Reading the Search Console sitemap report
Once submitted, the Sitemaps report shows the status, the date Google last read the file and the number of URLs discovered. Click through to see how many of those pages are indexed. Common statuses in the Pages report and what they usually mean:
- Discovered, currently not indexed: Google knows the URL but has not crawled it yet. Normal for new sites; improve internal links and content quality if it persists.
- Crawled, currently not indexed: Google read the page and chose not to index it for now. Often a sign of thin or duplicate content.
- Page with redirect: the sitemap lists a URL that redirects. Replace it with the final URL.
- Excluded by noindex tag: the page tells Google not to index it. Either remove the tag or remove the page from the sitemap.
- Alternate page with proper canonical tag: Google is indexing a different version instead, which is often fine.
The value here is precision. Instead of wondering why a service page is missing from Google, you get a reason, and usually a fix.
A worked example: the beauty salon with ghost pages
Imagine a beauty salon in Brisbane whose site was rebuilt last year. In Search Console, the sitemap report shows 64 URLs submitted, but the site only has 12 real pages. Digging in, the sitemap includes old treatment pages that now redirect, image attachment pages created by a WordPress setting, and a test page called "sample page" left from installation.
The fix: switch off attachment pages, delete the sample page, make sure redirected URLs are excluded, and let the SEO plugin regenerate the sitemap. Resubmit. Now the sitemap shows 12 clean URLs, all indexed, and the Search Console reports become meaningful. None of this changes rankings overnight, but it removes noise and makes real problems visible.
Mistakes to avoid
- Listing noindex or redirected pages. Mixed signals waste crawl attention.
- Fake lastmod dates, such as updating every page's date daily. Google learns to ignore them.
- Never submitting it to Search Console, so you miss the diagnostics.
- Blocking the sitemap in robots.txt by accident.
- Thinking a sitemap forces indexing. It is a suggestion. Google still decides what to index based on quality.
- Keeping old sitemaps after a redesign that list pages that no longer exist. See redesigning without losing SEO.
How to submit your sitemap
- Verify your site in Google Search Console.
- Open Sitemaps in the left menu.
- Enter your sitemap URL and click Submit.
- Check the status says "Success" and note the discovered URL count.
- Add a
Sitemap: https://yoursite.com/sitemap.xmlline to robots.txt so other search engines find it too. - Do the same in Bing Webmaster Tools.
Full walkthrough in how to submit my website to Google.
Our take
A sitemap is a small, unglamorous file that quietly does useful work. You should have one, it should be clean, and it should update itself whenever your site changes. It will not rescue a site with thin content or no trust, but it removes a whole category of "why can't Google find my page" problems.
On our builds, the sitemap is generated automatically every time the site is published, contains only real, canonical pages, and is submitted to Search Console at launch. If you are on a builder like Wix or Squarespace, the automatic sitemap is usually fine and you do not need us for this alone. If your WordPress sitemap is a mess of ghost pages and redirects, our Website Rescue service can clean it up.
Quick checklist
- Find your sitemap at /sitemap.xml or via robots.txt.
- Open it and check it lists only real pages you want indexed.
- Remove redirects, noindex pages, duplicates and test pages.
- Submit it in Google Search Console and Bing Webmaster Tools.
- Add the sitemap line to robots.txt.
- Recheck after any redesign or major change.
The bottom line
An XML sitemap is a machine-readable list of the pages you want search engines to find. Every business site should have a clean one submitted to Search Console. It helps discovery and diagnostics, but quality content and good structure are still what get pages indexed and ranked.
Frequently asked questions
Where is my website's sitemap?
Try yoursite.com/sitemap.xml first. If that does not work, try /sitemap_index.xml or /wp-sitemap.xml for WordPress, or check your robots.txt file for a Sitemap line. Most website builders create one automatically and show its address in their SEO settings.
Does a sitemap improve my rankings?
Not directly. A sitemap helps search engines discover your pages and gives you diagnostic data in Search Console. Rankings depend on content quality, relevance, links and page experience.
How often should my sitemap be updated?
Ideally automatically whenever you add, remove or significantly change a page. Most platforms handle this for you. The lastmod date should change only when the page content genuinely changes.
Can I have more than one sitemap?
Yes. Larger sites often split sitemaps by type, such as pages, posts and products, and list them in a sitemap index file. Each sitemap can hold up to 50,000 URLs. Small business sites usually need only one.
Should my sitemap include images?
Image sitemap extensions exist and can help image-heavy sites like photographers or shops get images discovered. For most small businesses, images inside normal pages with good alt text are found without a separate image sitemap.
Want a website that brings you customers?
Tell us what you do on WhatsApp and we will send a fixed quote and a free mockup.
Get my free mockupRelated guides
Our products
Website design near you
Website design in LondonWebsite design in New YorkWebsite design in TorontoWebsite design in BrusselsWebsite design in DallasWebsite design in OsloWebsite design in EindhovenWebsite design in ManchesterWebsite design in OxfordWebsite design in ChristchurchAll cities →
SiteDrum home · All guides · Sitemap · Contact us
More google guides
- How Long Does It Take for a New Website to Show Up on Google?
- How Do I Get My Website on the First Page of Google?
- How Do I Get My Business on Google? Setting Up and Verifying Your Profile
- Why Is My Business Not Showing on Google Maps?
- How Do I Get More Traffic to My Business Website?
- What Is SEO and Does My Small Business Need It?
- How Do I Show Google Reviews on My Website?
- What Is Google Search Console and How Do I Use It?