To find a website's sitemap, open its robots.txt file at yourdomain.com/robots.txt and look for a line starting with "Sitemap:". If there is none, try /sitemap.xml and /sitemap_index.xml, then check Google Search Console or your CMS settings. Some sites simply do not have one.
Step 1: Check robots.txt first
This is the most reliable method because it is the place a site is meant to announce its sitemap. Add /robots.txt to the end of the domain and read the file. Google's documentation says a sitemap line is optional, that a file can hold more than one, and that the value must be a fully qualified URL. A typical line looks like this:
Sitemap: https://example.com/sitemap.xml
The sitemaps.org protocol says the line is independent of any user-agent group, so it can appear anywhere in the file. Robots.txt itself must sit at the root of the host, per Google's robots.txt guide. If you want the full picture of what belongs in that file, read what a robots.txt file should look like.
Step 2: Try the common addresses
If robots.txt does not list a sitemap, guess the usual paths. None of these is a standard, only a habit of popular tools, so a miss proves nothing.
| Path to try | What you will often find |
|---|---|
| /sitemap.xml | The most common default, either a single sitemap or an index |
| /sitemap_index.xml | An index file that lists several sitemaps |
| /sitemap.txt | A plain text list with one URL per line |
| /feed or /rss.xml | An RSS or Atom feed, which Google also accepts as a sitemap |
Google supports XML, RSS, mRSS, Atom 1.0 and text sitemaps, so a feed can count. Per the Google sitemap guide, feeds usually only cover recent URLs, which makes them a weaker map than a full XML file.
Step 3: Open the index and follow it
If the file you found lists other sitemaps instead of pages, it is a sitemap index. Each entry points to a child sitemap, often split by content type such as posts, pages and products. Sitemaps.org says one file may hold no more than 50,000 URLs or 50MB uncompressed, and Google applies the same limits, which is why bigger sites split theirs. You only need to list the index file in robots.txt, not every child.
Step 4: Look where the site owner would look
If you own the site, the sitemap may exist but be hidden under a different name.
- Google Search Console. Open the Sitemaps report. Anything submitted appears with its exact URL and status.
- Your CMS or SEO plugin. Many generate one automatically. Look for a sitemap setting and the address it shows.
- Your build output. On a framework site, the file may be generated at build time, so check the public folder or the sitemap route in your code.
If you do not own the site, a search for site:example.com filetype:xml sometimes surfaces a sitemap file, though it is hit and miss.
What if there is no sitemap?
That is not automatically a problem. We cover the trade-offs in do you need an XML sitemap: a small, well linked site can be found without one. For a site you run, creating one and sending it is straightforward, and the steps are in how to submit a sitemap to Google. Google calls a submitted sitemap "merely a hint", so it does not guarantee crawling or indexing.
Does the sitemap have to be at the root?
Google says you can host sitemaps anywhere on your site, but a sitemap affects only the directory it lives in and below it, unless it is submitted through Search Console. Both Google and sitemaps.org recommend the root so it can cover the whole site.
Frequently Asked Questions
Where is the sitemap usually located?
Most often at /sitemap.xml on the main domain, and often named in the site's robots.txt. Neither is guaranteed.
Can I see a competitor's sitemap?
Yes, if they publish one. Sitemaps are public files meant to be read by crawlers, so you can open them in any browser.
Why does a sitemap show only some of a site's pages?
It may be an index that points to more files, or the owner may include only pages they want indexed. A sitemap is a list the owner chooses, not a full inventory.
Is an RSS feed the same as a sitemap?
Google accepts RSS and Atom feeds as sitemaps, but they usually only list recent content, so an XML sitemap is the fuller option.
Do I need to list my sitemap in robots.txt?
No, it is optional. It does make the file easy for any crawler to find, and it costs one line.