Back to Blog
    Digital Marketing30 November 2026

    How to download a sitemap from any website

    How to download a sitemap from any website

    To download a sitemap, go to the website's root URL and add /sitemap.xml to the end (for example, example.com/sitemap.xml). If the file loads, save it using your browser's "Save As" function. If nothing appears, check robots.txt for the sitemap's actual location, or use a crawler to generate one.

    Key takeaways

    • Most sitemaps live at /sitemap.xml, but some sites use /sitemap_index.xml or a custom path declared inside robots.txt.
    • If a sitemap doesn't exist at any standard path, tools such as Screaming Frog or XML Sitemaps Generator can crawl the site and build one for you.
    • Downloading a competitor's sitemap reveals their URL structure, content categories and publishing depth, useful competitive research.
    • Large sites often use a sitemap index file that links to multiple child sitemaps, each covering a different section or content type.
    • Saving the raw XML file preserves the full data; copying text from a browser window strips the structure and makes the file unusable for SEO tools.

    Where does a sitemap actually live?

    A sitemap is an XML file that lists the URLs on a website, often with metadata about when each page was last updated. It exists to help search engines crawl a site efficiently, but it is also a machine-readable map of everything the site owner considers worth indexing.

    The vast majority of sites place their sitemap at the root domain: yourdomain.com/sitemap.xml. That is the place to check first. If the page loads XML code rather than a styled page, you have found it.

    If that path returns a 404, the next step is yourdomain.com/robots.txt. Most well-configured sites declare the sitemap location inside robots.txt using a line that reads Sitemap: https://example.com/sitemap.xml. That declaration can point to any path, so checking robots.txt is the most reliable way to find a non-standard location. Our guide on how to check your robots.txt file explains how to read that file quickly.

    How do you download a sitemap once you've found it?

    Finding the file is the first step. Saving it properly is the second.

    1. Navigate to the sitemap URL in your browser (Chrome, Firefox or Edge all work).
    2. Right-click anywhere on the page and choose "Save As" (or use Ctrl+S / Cmd+S).
    3. Save the file with an .xml extension. Most browsers will default to .txt or .html, change this manually if needed.
    4. Open the saved file in a text editor or an XML viewer to confirm it has downloaded correctly and contains <url> entries.

    If the browser renders the XML as a styled table rather than raw code, use "View Page Source" (Ctrl+U / Cmd+U) first, then save from there. That guarantees you capture the raw XML rather than the browser's formatted version.

    What if the sitemap doesn't exist or returns a 404?

    Some sites, particularly older ones or those built without SEO in mind, have no sitemap at all. When /sitemap.xml, /sitemap_index.xml and robots.txt all draw a blank, you have two options.

    Generate one using a crawler. Screaming Frog's SEO Spider crawls the site and exports a complete sitemap in XML format. The free version handles up to 500 URLs, which covers most small business sites. XML Sitemaps Generator (xmlsitemaps.com) does the same job through a browser interface without any software to install. Our comparison of sitemap builders worth using covers these tools in detail, so there is no need to repeat the full breakdown here.

    Search Google's index. Typing site:example.com filetype:xml into Google sometimes surfaces a sitemap Google has already found and indexed, even when the file is not at a standard path. This works because Google records where it discovered the sitemap, not just where the site owner told it to look.

    Sitemap types compared

    Type What it contains When you'll encounter it
    /sitemap.xml All site URLs in a single file Small to medium sites
    /sitemap_index.xml Links to multiple child sitemaps Large sites with 10,000+ pages
    /news-sitemap.xml News articles with publication dates Publishers and news sites
    /image-sitemap.xml Image URLs with metadata E-commerce and media sites
    Custom path Declared in robots.txt Any site with a non-standard setup

    When does downloading a sitemap actually matter?

    For your own site, downloading and reviewing the sitemap periodically is a simple audit. If URLs appear that you did not intend to index, old campaign pages, duplicate parameter URLs, staging paths, the sitemap is surfacing a problem you need to fix.

    For a competitor's site, their sitemap is a legitimate and freely available document. Downloading it shows you how they have structured their content, which categories they prioritise and how many pages they publish in each area. That is competitive intelligence with no tools required beyond a browser.

    For an SEO audit, a downloaded sitemap gives you a definitive URL list to cross-reference against crawl data, Google Search Console and analytics. It is a faster starting point than crawling from scratch every time.

    If you want a second opinion on how your sitemap is configured, or whether your site's crawlable structure is working in your favour, speak to the team at Revolve. As an SEO and AEO agency working with small UK businesses, we can review your setup and tell you exactly what needs attention.

    Frequently Asked Questions

    Can I download a sitemap from a competitor's website without breaking any rules? Yes. A sitemap is a publicly accessible file that site owners intentionally publish for search engines to read. Accessing it through a standard browser request is no different from visiting any public page on the site.

    Why does the sitemap URL load a blank page rather than XML? Some servers return a 200 status but render an empty page when the sitemap is misconfigured or the file is genuinely empty. Use "View Page Source" to check whether any XML is present. If the source is also blank, the sitemap file exists but contains no content, which is itself an SEO issue worth fixing.

    How do I download a sitemap index file that links to multiple child sitemaps? Save the index file first, then follow each URL listed inside it and save each child sitemap separately. Screaming Frog can automate this by crawling all linked sitemaps in a single session and exporting the combined URL list.

    Does every website have a sitemap? No. Many small or older sites were built without one. The absence of a sitemap does not stop Google from crawling a site, but it does make crawling less efficient and can leave newer or deeper pages undiscovered.

    What is the difference between an XML sitemap and an HTML sitemap? An XML sitemap is a structured file written for search engines, containing URLs and metadata. An HTML sitemap is a navigable page written for human visitors, listing sections and links. When people refer to "downloading a sitemap", they almost always mean the XML version.

    Written by the Revolve team, a digital marketing agency based in Banbury, Oxfordshire, delivering SEO, AEO and paid advertising for small and mid-sized UK businesses.

    Last updated: 13 August 2026

    By Revolve

    Need expert support on search, paid media or measurement?

    Get in Touch →