How can I get a sitemap of a website?

You can get a sitemap of a website by checking the standard URL path (/sitemap.xml), searching Google using site:example.com filetype:xml, or using a crawler tool such as Screaming Frog to generate one automatically. If no sitemap exists, tools like XML Sitemaps Generator or Yoast SEO (for WordPress sites) can build one from scratch.
Key takeaways
- Most sitemaps live at
yourdomain.com/sitemap.xmlor are declared inside the site'srobots.txtfile, check both first before reaching for a tool. - Screaming Frog's free tier crawls up to 500 URLs and exports a ready-to-submit XML sitemap at no cost.
- WordPress sites using Yoast SEO or Rank Math generate a sitemap automatically, no manual build required.
- A sitemap submitted to Google Search Console helps Google discover and index pages it might otherwise miss, particularly on larger or newer sites.
- Generating someone else's sitemap tells you how their site is structured, useful for competitive research, not just your own technical SEO.
What is a sitemap and what does it actually do?
A sitemap is a file, almost always in XML format, that lists the URLs on a website and signals their relative importance to search engines. Think of it as the index at the back of a textbook: the content still exists without it, but finding specific pages becomes a manual hunt.
Search engines such as Google use sitemaps to discover pages more efficiently, particularly on sites with deep navigation, thin internal linking, or content that is added frequently. Submitting a sitemap does not guarantee indexing, but it removes one common reason pages get missed.
How do you find an existing sitemap for any website?
The quickest route is to check the standard locations directly in your browser. Try these in order:
- Go to
https://www.example.com/sitemap.xml - Try
https://www.example.com/sitemap_index.xml(common on WordPress sites using Yoast SEO) - Visit
https://www.example.com/robots.txtand look for aSitemap:directive near the bottom of the file
If none of those work, run a Google search using site:example.com filetype:xml. This surfaces any XML files Google has already crawled and indexed, including sitemaps.
How do you generate a sitemap when one doesn't exist?
The right tool depends on how the site is built and how large it is.
For WordPress sites, install Yoast SEO or Rank Math. Both generate a live XML sitemap automatically and update it every time you publish or amend a page. No configuration is needed beyond activating the feature in the plugin settings.
For non-WordPress sites, a crawler tool is the most reliable option. Screaming Frog SEO Spider crawls your site in the same way Google does, discovers every reachable URL, and exports a formatted XML sitemap you can submit to Google Search Console. The free version handles sites up to 500 pages.
For quick, small sites, web-based generators such as XML-Sitemaps.com or Slickplan work without any software installation. Enter your domain, let the tool crawl, and download the resulting file. These are fine for static sites but may struggle with JavaScript-heavy pages where content loads dynamically.
Which method should you use?
| Situation | Recommended method | Cost |
|---|---|---|
| WordPress site | Yoast SEO or Rank Math plugin | Free |
| Any site under 500 pages | Screaming Frog (free tier) | Free |
| Any site over 500 pages | Screaming Frog (paid) | £209/year |
| Static or simple HTML site | XML-Sitemaps.com | Free up to 500 pages |
| Researching a competitor's site | Check /sitemap.xml or robots.txt directly |
Free |
| JavaScript-rendered site | Screaming Frog with JavaScript rendering enabled | Paid licence |
The plugin route is best for sites you control and update regularly, because the sitemap stays current without any manual effort. Crawler tools are better for one-off audits or when you're examining a site you don't own.
What are the limits and risks worth knowing?
Generating a sitemap does not automatically improve rankings. It tells Google which pages exist; it says nothing about whether those pages deserve to rank. Submitting a sitemap containing low-quality, thin, or duplicate pages can draw attention to problems rather than solve them.
A few other considerations worth noting:
- JavaScript-rendered pages often do not appear in sitemaps generated by basic web crawlers, because the crawler cannot execute the scripts that build the page content. Screaming Frog with JavaScript rendering enabled handles this, but it increases crawl time.
- Large sites may need a sitemap index file (a sitemap of sitemaps) rather than a single file, since Google's limit is 50,000 URLs per sitemap file.
- Stale sitemaps that list pages returning 404 errors or redirects waste crawl budget. If you're building a sitemap to submit to Google Search Console, check for broken links first so you're not flagging dead pages.
For a broader picture of what Google can see on your site, it's also worth checking your robots.txt file to make sure you aren't accidentally blocking pages you want crawled.
Should you submit the sitemap, or just generate it?
Generating a sitemap is only half the job if the site is yours. Submit it to Google Search Console under the Sitemaps report (found in the Index section). Google will then confirm how many URLs it has found and how many it has indexed. That gap, submitted versus indexed, is one of the most useful diagnostic numbers in technical SEO.
If you are generating a sitemap for a competitor or for research purposes, there is nothing to submit. The file gives you a structured list of their URLs, which is useful for identifying their content strategy, finding gaps, or benchmarking their site architecture against your own.
If you'd like a technical SEO review of your site's indexation, sitemap health, or content architecture, get in touch with Revolve and we'll take a look.
Frequently Asked Questions
Can I generate a sitemap for a website I don't own?
Yes. Tools like Screaming Frog will crawl any publicly accessible website and produce a sitemap from the URLs it finds. Checking /sitemap.xml and robots.txt on the target domain is quicker if the site already has one. This is commonly used for competitive research.
Why does my sitemap show fewer URLs than Google Search Console reports? Crawlers only find pages they can reach by following links. If a page has no internal links pointing to it (an orphan page), most tools won't discover it. Google may still have indexed it from an external link or a previous crawl, which creates the discrepancy.
How often should I update or regenerate my sitemap? If you use a WordPress plugin like Yoast SEO or Rank Math, the sitemap updates automatically. For manually generated sitemaps, regenerate whenever you add or remove a significant number of pages, change your URL structure, or run a site migration.
Do image and video files need their own sitemaps? Google supports separate image and video sitemaps that use extension tags to provide additional metadata. Standard XML sitemap generators do not include these by default. If image or video search is relevant to your business, a dedicated media sitemap is worth creating alongside the standard one.
Will having a sitemap speed up how quickly new pages get indexed? It can reduce the lag between publishing a page and Google discovering it, particularly on newer domains or sites with limited internal linking. After submitting your sitemap to Google Search Console, you can also use the URL Inspection tool to request indexing of individual pages immediately.
Written by the Revolve team, a digital marketing agency specialising in SEO, AEO and paid advertising for small and mid-sized UK businesses.
Last updated: 24 November 2026
By Revolve
Need expert support on search, paid media or measurement?
Get in Touch →