How to find the sitemap of any website (5 ways)

To get the sitemap of a website, open https://example.com/sitemap.xml in a browser or with curl -I. If that file is missing, open https://example.com/robots.txt and read any line that starts with Sitemap:.

1. Try /sitemap.xml and common variants

Most hosts publish a sitemap at the site root. When you want to find a sitemap for a website, request /sitemap.xml first. Large sites often use a sitemap index at /sitemap_index.xml or /sitemap-index.xml instead of one flat file. WordPress 5.5 and later serves core sitemaps at /wp-sitemap.xml. Some stacks ship a compressed file at /sitemap.xml.gz. A 200 response with XML (or gzip you can decompress) is a strong sign you found the right address.

2. Read the Sitemap: line in robots.txt

The robots exclusion protocol lets site owners point crawlers at sitemap files. Fetch /robots.txt on the same host and look for lines such as Sitemap: https://example.com/sitemap.xml. A site may list several sitemaps there, including indexes and language-specific files. This path is often faster than guessing when the default /sitemap.xml does not exist.

3. Check page HTML for a sitemap link

View the HTML source of the homepage or an HTML sitemap page in the footer. Search for rel="sitemap", links whose path ends in sitemap.xml, or visible footer links labelled “Sitemap”. Some themes only expose the file this way, especially when SEO plugins rewrite pretty URLs. That link gives you the exact URL when directory guessing fails.

4. Google Search Console Sitemaps report (your sites only)

For a property you verify in Google Search Console, open the Sitemaps report under Indexing. It lists sitemap URLs Google has fetched, including ones only declared in robots.txt. You can submit sitemap.xml or an index URL there after you copy it from the site. This does not reveal competitors’ sitemaps; use the public methods above for sites you do not own.

5. Use the Sitemap Finder tool

When you need to check website sitemap XML without running every request yourself, use the Sitemap Finder. Enter a public domain; it reads robots.txt, the page you submit, and common paths such as /sitemap.xml and /wp-sitemap.xml, then lists each candidate with HTTP status and whether the body is a urlset or sitemap index. It does not crawl the site for ordinary page links—it only inspects sitemap files and declarations.

Common sitemap locations by platform

Default paths differ by CMS. The table lists addresses documented by each platform; custom SEO plugins may override them.

Platform Typical sitemap URL
WordPress core (5.5+) /wp-sitemap.xml
Yoast SEO /sitemap_index.xml (/sitemap.xml often redirects here)
Rank Math /sitemap_index.xml
Shopify /sitemap.xml (index linking product, collection, page, and blog sitemaps)
Wix /sitemap.xml (sitemap index; child files such as /pages-sitemap.xml)
Squarespace /sitemap.xml on the primary domain
Compressed sitemap *.xml.gz (allowed by the sitemap protocol; may be linked only from robots.txt)

Found it? Read and check it

A normal sitemap (urlset) lists page URLs. A sitemap index lists other sitemap files, not individual pages—open child sitemaps to see URLs. When you check a sitemap, confirm HTTP 200, valid XML, and size within protocol limits (up to 50,000 URLs and 50 MB uncompressed per file; .gz is fine). To view a sitemap as a hierarchy, paste its URL into the website structure visualizer.

No sitemap found?

Many small sites publish no sitemap at all, or hide it behind bot protection. That does not always mean SEO is broken, but search engines may take longer to discover deep pages. The Sitemap Finder only reads sitemap files and robots declarations; it does not discover pages by crawling links on the site.

Frequently asked questions

Is a sitemap public?

Yes. Anything reachable at a public URL without logging in can be fetched by anyone, including competitors. Treat sitemap URLs like any other public endpoint.

Does every website have a sitemap?

No. Sitemaps are optional. Static sites, old builds, and private staging sites often omit them until someone publishes one.

How can I see a competitor’s sitemap?

Use the same steps: try /sitemap.xml, read robots.txt, or run the Sitemap Finder on their domain. You do not need access to their search console.

How do I open and read a sitemap?

Open the URL in a browser or download it with curl. Each <url><loc> entry is a page address; indexes list <sitemap><loc> child files instead.

What is a sitemap index?

A sitemap index is an XML file that points to multiple sitemap files. Large stores and blogs split content across many child sitemaps and expose one index URL for crawlers.