Sitemap URL Extractor: Get All URLs From an XML Sitemap
Use this sitemap URL extractor: enter a website or sitemap URL, or paste or upload the XML, and get every URL with lastmod, changefreq and priority in a clean list. Fetches sitemap indexes and reads .gz files. Export to CSV or TXT.
By Troopus · Updated: October 24, 2026
- Fetch by URL or domain
- Paste or upload XML and .gz
- Sitemap index support
- Filter, sort and dedupe
Extract URLs from your sitemap
| URL | Last modified | Change frequency | Priority |
|---|
How do I extract URLs from sitemap XML with a sitemap URL extractor?
To extract URLs from a sitemap, open the sitemap.xml in your browser, copy the XML, paste it into the box above and the tool lists every URL instantly. You can also upload an .xml or .xml.gz file. Then copy the list or export it as TXT or CSV.
Steps to extract URLs from sitemap files, no crawler needed:
- Open the sitemap address in a new tab, for example example.com/sitemap.xml. If your browser shows a formatted tree, use View Source or press Ctrl+A and Ctrl+C.
- Paste the XML into the box, or upload one or more files.
- Filter by a word like /blog/ or a regular expression, sort the list and remove duplicates.
- Copy the URLs, or download a TXT or CSV file.
Fastest route: type a domain such as example.com in the URL box and click Fetch sitemap. The tool checks robots.txt and the usual sitemap paths for you. Browsers cannot read other websites directly, so Troopus makes the request for you and returns the XML; the address you enter is sent to Troopus for that, and nothing is stored. If a site blocks automated requests, open the sitemap in your browser and paste or upload the XML instead. Pasted and uploaded XML is parsed on your device only.
What is inside a sitemap.xml file?
A sitemap.xml file is an XML list of a website's URLs, where each url entry holds a loc (the address) and optional lastmod, changefreq and priority tags. Search engines read it to discover pages. One sitemap file can hold up to 50,000 URLs or 50 MB uncompressed.
| Tag | Meaning | Required |
|---|---|---|
| loc | Full page URL | Yes |
| lastmod | Date of last significant change | No |
| changefreq | Hint such as daily or monthly | No |
| priority | Value from 0.0 to 1.0 within the site | No |
Google has said it ignores changefreq and priority and uses lastmod only when it is consistently accurate, so do not worry if those columns are empty. The extractor shows them anyway because audit tools and other search engines may still read them.
How does the sitemap URL extractor handle sitemap index files?
A sitemap index is a sitemap of sitemaps: it lists child sitemap files instead of page URLs. This extractor detects an index automatically and lists the child sitemap addresses. Open each one, copy its XML, and paste it in. You can paste several sitemaps at once and they are combined.
As a sitemap index extractor, it works on large sites, and most WordPress SEO plugins split their URLs into several files, such as one for posts, one for pages and one for products. The index file points to them. Paste the index and you get a list of child sitemap links plus a button to copy all of those addresses.
Then paste the content of each child file after the index, or upload the files together. The tool reads every urlset block it finds, merges the URLs and removes duplicates. The index protocol allows up to 50,000 child sitemaps, each with up to 50,000 URLs.
When you have the full URL list, spot check pages in batches with the bulk link opener.
How to find a site's sitemap
Check yoursite.com/sitemap.xml first, then look for a Sitemap line in the site's robots.txt file. WordPress sites often use /wp-sitemap.xml or /sitemap_index.xml, depending on the plugin. If none of these exist, search Google for site:domain.com filetype:xml sitemap.
| Where to look | Typical for |
|---|---|
| /sitemap.xml | Most sites and generators |
| /sitemap_index.xml | Yoast SEO and similar plugins |
| /wp-sitemap.xml | WordPress core sitemap |
| /robots.txt | A Sitemap: line with the full address |
Our robots.txt generator and validator can help you check that the Sitemap line is correct.
Export sitemap URLs to CSV or Excel
To convert a sitemap to CSV, paste the XML and press Download CSV. The file has four columns: url, lastmod, changefreq and priority. Open it in Excel or Google Sheets. The export includes every URL that matches your filter, not only the rows shown on the page.
The sitemap URL extractor works as a sitemap to list of URLs converter, and for a sitemap to text file you can pick TXT instead. The CSV is UTF-8 with a byte order mark so Excel reads accented characters correctly. Values that contain commas or quotes are escaped. Unlike a sitemap URL scraper that crawls pages, this tool only reads the XML you give it. Use the filter first if you only need one section, for example /products/, and the export will contain just those rows.
The table shows the first 200 rows to keep the page fast, but copy and download always use the full list. Use TXT when you want one bare URL per line for a crawler or a redirect map.
If your sitemap does not list a page you expect, it may be blocked by noindex, canonical settings or the plugin, or sitting in another child sitemap. A sitemap only lists what the site chooses to include.
Frequently asked questions
How do I get all URLs from sitemap files?
Open the sitemap.xml in your browser, copy the XML, paste it into the extractor and every loc URL appears instantly. You can then filter, sort, remove duplicates and copy the list, or download it as TXT or CSV.
How do I convert sitemap.xml to CSV or Excel?
Paste the sitemap XML and click Download CSV. The file contains url, lastmod, changefreq and priority columns and opens directly in Excel or Google Sheets. It is saved with UTF-8 encoding so accented characters display correctly.
How do I find a website's sitemap?
Try /sitemap.xml, /sitemap_index.xml or /wp-sitemap.xml on the domain, then check the robots.txt file for a Sitemap line. If none work, search Google for site:domain.com filetype:xml sitemap to find an indexed sitemap file.
What is a sitemap index?
A sitemap index is an XML file that lists other sitemap files instead of page URLs. Sites use it when they have more than 50,000 URLs or want to split content by type. Paste each child sitemap into this tool to see its URLs.
Can I extract URLs from a gzipped sitemap?
Yes. Upload the .xml.gz file and the tool unzips it in your browser using the built-in DecompressionStream feature. Recent versions of Chrome, Edge, Firefox and Safari support it. If your browser does not, unzip the file first and paste the XML.
Can I view lastmod, changefreq and priority?
Yes. The results table shows lastmod, changefreq and priority next to each URL when they exist in the XML, and the CSV includes them. You can also sort by last modified date to see the most recently updated pages first.
Why does my sitemap not show all pages?
A sitemap lists only what the site chooses to include, so noindex pages, redirects or pages in other child sitemaps may be missing. If you pasted an index file, paste each child sitemap as well to see the full list.
Can the tool fetch a sitemap by URL?
Yes. Enter a domain or the exact sitemap address and click Fetch sitemap. Browsers cannot read other websites directly, so Troopus requests the file for you and returns the XML, without storing it. If a site blocks automated requests, paste or upload the XML instead.