Sitemap to CSV: extract every URL from a sitemap.xml
Paste the XML of a sitemap (or a sitemap index) below. You get the list of URLs with lastmod, changefreq and priority, and a CSV download.
Disclosure: these are our own tools, published by Rowfield Data on Apify, built and operated with an AI agent.
Runs in your browser. This page does not fetch anything and does not upload what you paste.
How to get the sitemap XML
- Open
https://the-site.com/robots.txtand look forSitemap:lines. If there are none, try/sitemap.xmlor/sitemap_index.xml. - Open the sitemap URL in your browser, view the source, select all and copy.
- Paste it above and press Get URLs.
If you paste a sitemap index (<sitemapindex>), you get the list of child sitemaps with their lastmod. Open each child sitemap and paste it in turn.
What this free tool does not do
- It does not download sitemaps for you, follow indexes, or read
.gzfiles. Browsers block most cross-site downloads, and this page makes no network requests on purpose. - It does not visit the pages in the sitemap.
For whole sites, many domains or a schedule: Sitemap URL Extractor
Our Sitemap URL Extractor & Scraper on Apify does the fetching for you. Give it domains; it finds their sitemaps in robots.txt, reads sitemap indexes (nested up to 5 levels), gzipped (.gz) and plain-text sitemaps, and returns one de-duplicated row per URL with lastmod, changefreq, priority, the source sitemap and the domain. Export as CSV, JSON or Excel, or use the API.
- Filters: include or exclude by path regex (for example only
^/blog/), keep URLs changed on or after a date (lastmodAfter), cap URLs per domain and per run. - Price: pay per result, $0.25 per 1,000 URLs ($0.00025 per URL) plus $0.00005 per run start. Status rows (no sitemap found, robots blocked, no matching URLs) and URLs removed by your filters are not charged.
- Polite: reads robots.txt first, requests at least 1 second apart per host, no cookies, no proxy, no logins.
Example input:
{"domains": ["www.example.com"], "includePathRegex": "^/blog/", "lastmodAfter": "2026-10-01", "maxItems": 1000}
Open Sitemap URL Extractor on Apify
FAQ
Why fewer URLs than the site has? A sitemap is the site's own list. Some sites leave pages out of their sitemaps, so neither this page nor the actor can see those pages.
Is my sitemap uploaded anywhere? No. The parsing runs in JavaScript on this page, and the page's security policy blocks network requests. The parser source is public.