Skip to content
SCRAWL
Technical SEOFaisal Y

How to Find Any Site's XML Sitemap

Learn where sitemaps usually live, how robots.txt Sitemap lines work, and how to discover index and urlset files before you audit URLs inside them.

Diagram showing a domain checked via robots.txt Sitemap lines and common paths like sitemap.xml, then listed sitemap files with HTTP status and XML type.
Sitemap discovery from robots.txt and common paths
Use the free tool
Sitemap Finder
Discover XML sitemap URLs from robots.txt and common paths.

You need the XML sitemap before you can audit URLs inside it, submit the right file in Search Console, or compare staging to production. Guessing /sitemap.xml works on many WordPress and Shopify stores — until it does not. The reliable order is: robots.txt, common paths, then sitemap index children.

The Sitemap Finder on Scrawl automates that sequence from our servers: it reads Sitemap: lines in robots.txt, probes standard paths (/sitemap.xml, /sitemap_index.xml, /wp-sitemap.xml, and others), and follows one level of sitemap index files. Each result row shows the URL, how it was found, HTTP status, index vs urlset type, <loc> count, and whether the body parsed as valid sitemap XML. It does not check every page URL inside the file.

Robots.txt and common paths feeding a table of discovered sitemap files with status and XML type

Start with robots.txt

Fetch https://your-domain/robots.txt and look for lines like:

Sitemap: https://www.example.com/sitemap_index.xml

Google's robots.txt documentation treats these lines as discovery hints for sitemaps. A site can list multiple sitemap URLs, including files on another host (for example a CDN). Each URL must be absolute.

Manual check:

curl -s https://www.example.com/robots.txt | grep -i sitemap

If robots.txt is missing or returns an error, continue with common paths — many sites still publish /sitemap.xml without a robots line.

Common sitemap paths to probe

When robots.txt is silent, these paths are worth a HEAD or GET (Scrawl uses GET with a size cap):

| Path | Typical stack |

|------|----------------|

| /sitemap.xml | Generic default |

| /sitemap_index.xml | Yoast, many custom builds |

| /sitemap-index.xml | Hyphen variant |

| /wp-sitemap.xml | WordPress core sitemaps |

| /post-sitemap.xml | Split urlsets (plugins) |

| /page-sitemap.xml | Split urlsets (plugins) |

| /sitemap/sitemap.xml | Nested folder installs |

| /sitemap.xml.gz | Compressed sitemap |

A 404 on one path does not mean the site has no sitemap — it may only expose an index under another name.

Sitemap index vs urlset

Open the XML (or let the finder parse it):

  • `<sitemapindex>` — contains <sitemap><loc>…</loc></sitemap> pointing at other sitemap files. Fetch those children next.
  • `<urlset>` — contains <url><loc>…</loc></url> page URLs.

For indexes, one expansion pass is usually enough: fetch the index, then fetch each child urlset listed inside. Deeper nesting is rare; if you hit it, repeat manually for the nested index only.

Decision flow from robots.txt to index expansion then urlset audit tools

Manual workflow (no tool)

  1. curl -sI https://domain/sitemap.xml — note status and Content-Type.
  2. Read robots.txt Sitemap lines.
  3. If the file is an index, curl each child <loc>.
  4. Confirm the XML declares the sitemap protocol namespace.
  5. Pass urlsets to your audit tool or Search Console.

After you find the sitemap

| Goal | Next step |

|------|-----------|

| Syntax and namespace | XML Sitemap Validator |

| Status codes on listed URLs | Sitemap Errors Checker |

| robots.txt crawl rules | Robots.txt Tester |

| Bulk URL list from Search Console | Bulk Status Checker |

Honest limits

  • Authentication — Sitemaps behind login or IP allowlists may not be visible to an external fetcher.
  • JavaScript — Sitemaps generated only in the browser are not discoverable from static HTTP probes.
  • Cross-origin — robots.txt may point at another host; that URL must be reachable and safe to fetch.
  • Scope — Finding the file is not the same as proving every <loc> returns 200.

Paste a domain into the Sitemap Finder, export the table if you need a paper trail, then move to validation and URL-level audits on the files you care about.

xml sitemaprobots.txtcrawltechnical seo

Frequently Asked Questions

Where is a sitemap usually located?

Many sites serve /sitemap.xml or a sitemap index at /sitemap_index.xml. WordPress often uses /wp-sitemap.xml. The authoritative hint is often a Sitemap line in robots.txt at the site root.

Does Google only use the sitemap in Search Console?

Search Console shows sitemaps you submitted or that Google discovered. Finding the live XML file on the server is still useful for audits, migrations, and comparing CMS output to what crawlers can fetch.

What is the difference between a sitemap index and a urlset?

An index lists other sitemap files. A urlset lists page URLs. Large sites split urlsets by section and point to them from one index file.

Can I find sitemaps without crawling the whole site?

Yes. Read robots.txt, request common sitemap paths, and expand one level of index children. That covers most setups without spidering every HTML page.

What does the Sitemap Finder not do?

It does not validate every URL inside each sitemap, execute JavaScript, or bypass login walls. Use the Sitemap Errors Checker or Bulk Status Checker for URL-level health.

Related Articles

Technical SEO

Site migration SEO checklist

Most migrations don't fail because someone forgot a "best practice." They fail because one boring th…

Technical SEO

Technical SEO audit checklist

Most technical audits start in the wrong place. Someone opens a crawler, exports 4,000 "issues," and…

Tool Guides

SEO readiness checker: score any URL, fix what matters

Most technical audits start with a 4,000-row crawl export. You need something faster: is this one UR…

Technical SEO

How to Check if a Page Is Indexed by Google (and Fix It If Not)

Pages outside Google's index cannot rank. Learn what "indexed" means, how to confirm status in Searc…

Technical SEO

What Is PageRank in 2026? How Google Link Authority Works (and How to Check It)

Google retired public PageRank in 2016, but links still matter for discovery and relevance. Here's h…

Technical SEO

Broken link checker: find 404s on a page, check URL lists in bulk, and fix the right links

A broken link is a link that leads nowhere useful. Usually that means a 404, sometimes a 410, a serv…

Technical SEO

Bulk status checker: audit up to 200 URLs for 404s, redirects, and server errors

A bulk status check answers one question: for each URL in this list, what does the server return rig…

Technical SEO

How to see which AI crawlers visit your site in your server logs

robots.txt states what you want crawlers to do. Access logs show what actually hit your server: whic…

Technical SEO

How to check whether AI search bots can crawl your pages

A page can look fine in Chrome and still be a thin shell in raw HTML. AI retrieval crawlers mostly r…

Technical SEO

Custom Extraction with CSS Selectors and XPath: A Practical Guide

Fixed heading extractors stop where your audit question starts: a canonical href, a SKU in a data at…

Technical SEO

Automated Accessibility Checks: What They Catch and What They Miss

A clean automated report does not mean your page is accessible. Static HTML rules catch missing name…

Technical SEO

Soft 404s: How to Find Them and Why Google Flags Them

A soft 404 can mislead crawlers and users when missing URLs return the wrong HTTP status. Learn what…

Technical SEO

Indexability: How to Check If a Page Can Be Indexed

Learn whether a page can be indexed from server signals before you ask why Google excluded it. Statu…

Technical SEO

Googlebot Simulator: Compare Googlebot vs Browser Fetches

Learn when to compare Googlebot and Chrome fetches, how to read a side-by-side diff, and what Scrawl…

On-Page SEO

What Is a PAA Box? How People Also Ask Works in Google Search

A PAA box is the People Also Ask list Google shows for many searches: related questions that open in…

Technical SEO

Robots.txt Explained: How Allow, Disallow and Wildcards Really Work

Robots.txt tells crawlers which URLs they may fetch. It does not remove pages from Google's index by…

On-Page SEO

Google AI Overviews: What They Are and How to Get Your Content Cited

AI Overviews are Google's generated answer blocks on some searches. They cite a small set of sources…