XML Sitemap Viewer

Enter any domain or sitemap URL to view all pages, last modified dates, and export the full list as CSV or JSON.

Try: wikipedia.org, github.com, nytimes.com, or any site you want to explore

How to view the sitemap of any website

Quick answer: type the domain into the viewer above. It checks /sitemap.xml, then theSitemap: line in robots.txt, and lists every URL with its last-modified date. To do it by hand, follow these three steps:

  1. Try the standard path. Open https://example.com/sitemap.xml in your browser. Most sites, CMSs and frameworks publish their sitemap there.
  2. Check robots.txt. Open https://example.com/robots.txt and look for a line that starts with Sitemap:. It holds the sitemap's real address when the site uses a different path (for example /sitemap_index.xml or /post-sitemap.xml).
  3. Open the sitemap index. If the file lists other sitemaps instead of pages (<sitemapindex>), it is an index. Open each child sitemap to see its pages. In the viewer, click Load next to a sub-sitemap.

Browsers show raw XML, which is hard to read on large sites. The viewer turns it into a searchable list you can export as CSV or JSON.

What is an XML sitemap?

An XML sitemap is a file that lists every important page on a website. It tells search engines like Google and Bing where to find content and how often pages are updated. Most sites store their sitemap at /sitemap.xml, though larger sites use a sitemap index file that links to multiple sub-sitemaps organized by section or content type.

For web scrapers and researchers, sitemaps are invaluable. Rather than crawling a site page-by-page, you can read its sitemap to get a complete list of URLs upfront, including last-modified dates that tell you which pages have changed recently.

How to use this sitemap viewer

  1. Enter a domain (e.g., example.com) or paste a direct sitemap URL.
  2. The tool auto-discovers the sitemap by trying /sitemap.xml and parsing robots.txt.
  3. If a sitemap index is returned, click Load on any sub-sitemap to drill in.
  4. Filter URLs with the search box to find specific pages or sections.
  5. Download the full URL list as CSV or JSON for use in spreadsheets or scraping tools.

Common use cases

  • Build a seed URL list before scraping a site with a tool like Lection.
  • Check a competitor's content structure and publishing frequency.
  • Verify that your own sitemap contains all the pages you expect.
  • Find recently updated pages using last-modified dates for monitoring campaigns.
  • Audit a site before migration to ensure no pages are missing from the new sitemap.

Frequently asked questions

How do I view the sitemap of any website?
Enter the domain in the sitemap viewer above. It tries example.com/sitemap.xml first, then reads the Sitemap: line in example.com/robots.txt, and shows every URL with its last-modified date. To check by hand, open /sitemap.xml in your browser, and if that 404s, look for the Sitemap: line in /robots.txt.
What if a website has no /sitemap.xml?
Check robots.txt for a Sitemap: line, since many sites use other paths such as /sitemap_index.xml or /wp-sitemap.xml. If neither exists, the site may not publish a sitemap at all. In that case you can collect URLs by crawling its pages with a scraper instead.
What is a sitemap index file?
A sitemap index is a master sitemap that links to multiple child sitemaps. Large sites use them to stay within the 50,000 URL limit per sitemap file. This viewer detects index files automatically and lets you load each sub-sitemap individually.
Why does this tool show fewer URLs than the sitemap count?
To keep results fast and readable, this viewer shows the first 500 URLs from a single sitemap file. Download the CSV or JSON to get the complete list. For sitemap indexes, load each sub-sitemap separately.
What does the lastmod date mean?
The lastmod field tells search engines (and you) when a page was last updated. It is set by the website owner, so accuracy varies — some sites update it with every CMS publish, others leave it stale.
Why can't the tool find a sitemap for a site I know has one?
Some sites use non-standard sitemap paths, block server-to-server requests, or generate sitemaps dynamically. Try pasting the full sitemap URL directly (e.g., example.com/sitemap_index.xml) instead of just the domain.
How is this useful for web scraping?
Sitemaps give you a complete, structured list of all URLs on a site before you start scraping. Instead of following links page-by-page, you can download the sitemap, filter for the pages you want, and feed that list directly into your scraper for faster, more targeted data collection.

Related resources

Scrape any site, every page, on a schedule.

Add to Chrome — free

This free tool is one ready-made template of Lection, an AI web scraper Chrome extension that extracts lists, tables and detail pages from any website. It can also scrape any website to Google Sheets on a schedule. Need a recurring data feed for your team or clients? We can set it up for you.