How to Find the Sitemap of a Website: 5 Ways That Work
A sitemap is a file that lists the pages on a website. Most sites have one, most people never look at it, and it is one of the fastest ways to understand what a site actually contains. This page shows you five ways to find one — on your own site or on someone else’s — and what to do if there is not one there.
The quick answer
Type the website address followed by /sitemap.xml into your browser. For example, example.com/sitemap.xml. That works on the large majority of sites. If it does not, read on — there are four more places to look.
What a sitemap is, in one paragraph
A sitemap is an XML file that lists the URLs on a site, sometimes with the date each was last changed. Search engines read it to find pages they might otherwise miss. AI tools that crawl websites read it for the same reason. It is a table of contents written for machines, not for people, which is why it looks unfriendly when you open one.
You will often find not one file but two levels: a sitemap index that lists several sitemaps, each of which lists actual pages. That is normal on any site with more than a few hundred URLs.
Five ways to find a sitemap
1. Try the standard address
Add /sitemap.xml to the end of the domain. This is the convention almost everything follows:
example.com/sitemap.xmlexample.com/sitemap_index.xml— common on WordPress sites using Yoastexample.com/sitemap-index.xmlexample.com/sitemap1.xml
Use the full domain including any www, because a site can behave differently with and without it.
2. Check the robots.txt file
This is the reliable method and the one most people do not know. Every site can publish a file at /robots.txt, and the convention is to declare the sitemap location inside it. Go to example.com/robots.txt and look for a line beginning Sitemap:.
If a site has moved its sitemap somewhere unusual, this is where it says so. It is a plain text file and takes five seconds to scan.
3. Use a sitemap tool
If you would rather not guess, our sitemap extractor takes a website address, finds the sitemap, follows any index files, and gives you the list of URLs in a readable form. It saves the fiddly part where you open an index file and then have to open six more files inside it.
4. Look in your search console or SEO plugin
If it is your own site, the answer is probably already in your tools:
- Google Search Console has a Sitemaps section listing every sitemap submitted for the property.
- Yoast, Rank Math or All in One SEO on WordPress each show your sitemap URL in their settings.
- Shopify, Squarespace and Wix generate one automatically at
/sitemap.xmland do not let you move it.
5. Search for it
As a last resort, a search engine query restricted to the site, looking for XML files, will sometimes surface a sitemap that is indexed. This is unreliable — sitemaps are often excluded from indexing deliberately — but it costs nothing to try when the other four have failed.
What you will see when you open one
A wall of tags. Modern browsers render XML with a bit of formatting, and WordPress SEO plugins often attach a stylesheet that turns it into a readable table, but raw XML is common. The parts that matter:
| Tag | What it means |
|---|---|
<loc> |
The page address. This is the useful bit. |
<lastmod> |
When the page was last changed. Often inaccurate. |
<changefreq> |
A hint about how often it changes. Largely ignored by search engines now. |
<priority> |
A number from 0 to 1. Also largely ignored. |
<sitemap> |
You are looking at an index. Each entry points to another sitemap file. |
If you see <sitemap> entries rather than <url> entries, you have found the index rather than the pages. Open the individual files listed inside it.
If there is no sitemap
Small and hand-built sites sometimes have none. That is not fatal — search engines can crawl links — but it makes life harder for anything trying to discover your pages systematically, including AI tools.
- WordPress: you already have one. WordPress has generated a basic sitemap since version 5.5, and an SEO plugin gives you a better one. See sitemaps for WordPress.
- Shopify, Wix, Squarespace: generated for you, automatically.
- A hand-built site: you will need to generate one and upload it to your web root.
Why this matters if you are adding a chatbot
Here is the practical reason people end up on this page. An AI chatbot that answers from your website has to find your website first, and it does that by reading your sitemap. Pages missing from the sitemap are pages the bot has never read — so when a customer asks about your delivery times and the delivery page was never crawled, the bot says it does not know.
Before you install any AI tool on your site, it is worth five minutes to check what a crawler can actually see. Pull your sitemap with the sitemap extractor, confirm the pages you care about are in it, and check the file itself is valid with the sitemap validator. Then run an answerability check to see which common customer questions your content actually covers.
Frequently asked questions
What is the usual sitemap URL?
Almost always the domain followed by /sitemap.xml. WordPress sites using Yoast typically use /sitemap_index.xml instead.
How do I find the sitemap of a website that is not mine?
The same way. Sitemaps are public files by design. Try /sitemap.xml, then check /robots.txt for a Sitemap: line, or use a sitemap extractor.
Is it legal to look at someone else’s sitemap?
Yes. A sitemap is a public file published deliberately so that crawlers can read it. Looking at one is no different from viewing any other page on the site.
Why does my sitemap return a 404?
Either the site does not have one, or it is at a non-standard address. Check /robots.txt first — that is where a site declares an unusual location.
Should my sitemap include every page?
It should include every page you want found. Leave out thank-you pages, login pages, and anything set to no-index — listing a page you have told search engines to ignore sends a mixed signal.
How often should a sitemap update?
Automatically, whenever you publish. Every platform and SEO plugin does this without being asked. A hand-written sitemap that has not been touched in two years is worse than none, because it points crawlers at pages that may no longer exist.