Sitemap URL Extractor
Extract every URL from a pasted XML sitemap or sitemap index into a clean list. Dedupe, sort, count and download as TXT or CSV — all locally in your browser.
What is the Sitemap URL Extractor?
The Sitemap URL Extractor pulls every <loc> entry out of a pasted XML sitemap into a plain, one-URL-per-line list you can actually work with — paste it into a crawler, a redirect map, a spreadsheet or a bulk-analysis tool.
- Extracts every <loc> from urlset and sitemapindex files
- De-duplication and A–Z sorting toggles
- Total and unique URL counts at a glance
- Newline or CSV output with proper field quoting
- Fallback extraction for slightly malformed XML
- One-click copy and .txt / .csv download
How to use the Sitemap URL Extractor
- 1
Copy the XML source of your sitemap or sitemap index file.
- 2
Paste it into the input box.
- 3
Toggle de-duplication or sorting if you want a cleaned list.
- 4
Copy the result, or download it as a .txt or .csv file.
About the Sitemap URL Extractor
The Sitemap URL Extractor pulls every <loc> entry out of a pasted XML sitemap into a plain, one-URL-per-line list you can actually work with — paste it into a crawler, a redirect map, a spreadsheet or a bulk-analysis tool. Sitemap index files work too, giving you the list of child sitemap locations.
Options let you de-duplicate, sort alphabetically and switch between newline-separated text and CSV output, with a live count of total and unique URLs. If the XML is slightly broken, a fallback extractor still recovers the URLs with pattern matching and tells you it did so.
This tool reads pasted XML only — it never fetches your sitemap from a URL. Everything happens 100% locally in your browser, so even sitemaps for private or staging sites are safe to paste; nothing is uploaded.
Frequently asked questions
How do I get a list of all URLs in my sitemap?
Open your sitemap.xml, copy its source, and paste it here — the tool lists every URL from the <loc> tags, one per line. That list can go straight into a crawler like Screaming Frog's list mode, a spreadsheet, or a bulk status-code checker.
Does it work with sitemap index files?
Yes. A sitemap index lists child sitemaps rather than pages, and the extractor returns those child sitemap URLs. Paste each child sitemap afterwards to collect the page URLs — the tool tells you whether it detected a urlset or a sitemapindex.
Why is my extracted URL count different from Google Search Console?
Search Console reports how many submitted URLs are indexed, not how many exist in the file. This tool counts every <loc> entry in what you pasted. A large gap between the two numbers usually means indexing issues, not extraction issues.
Can I extract URLs from a live sitemap URL?
Not directly — this tool runs entirely in your browser and cannot fetch other domains. Open the sitemap URL in a browser tab, view its source, copy everything and paste it here. Nothing you paste is uploaded; processing is fully local.
What happens if my sitemap XML has errors?
If strict parsing fails, the extractor falls back to pattern-matching the <loc> tags and flags that it did so. You still get your URL list, but you should also run the sitemap through our XML Sitemap Validator to find and fix the underlying error.
Related tools
XML Sitemap Validator
Paste an XML sitemap to validate structure, namespace, URLs, lastmod dates, changefreq and priority values, plus the 50,000-URL limit. 100% in your browser.
XML Sitemap Splitter
Split a large pasted XML sitemap into chunks under the 50,000-URL limit and generate the matching sitemap index file. Each part is downloadable, all offline.
XML Sitemap Generator
Paste a list of URLs and generate a valid XML sitemap with lastmod, changefreq and priority. Validates URLs and downloads sitemap.xml instantly.
Extract URLs
Extract all URLs and links from any text online. Detect http, https and www addresses, remove duplicates, sort them, and export one per line or comma-separated.