Sitemap Extractor
Submit a sitemap URL and extract all listed URLs
Sitemap URL
Enter a full sitemap URL that starts with http:// or https://
Download Format
Pick the export format
Explore More Tools
No tools match your search.
What the Sitemap Extractor Does
The sitemap extractor fetches an XML sitemap from a URL you provide and reads every page link listed inside it. It parses the raw XML, pulls the address out of each
<loc>
element, then returns a clean list of URLs. Namespace prefixes are stripped from tag names so the parser reads standard and non-standard files the same way.
This is the one tool on the site that runs a request on the server, because it needs to reach an external file on the web. Everything else runs in your browser.
How the Extraction Works Under the Hood
When you submit a link, the backend fetches the file, checks that it is valid XML, and walks the document tree. A standard sitemap uses a
<urlset>
root with many
<url>
entries. A sitemap index uses a
<sitemapindex>
root that points to other sitemaps instead of listing pages directly.
If the file is an index, the tool follows each child sitemap and collects their links too. The final list is deduplicated and sorted alphabetically, so repeated entries collapse into one and the order stays predictable.
-
Handles both
<urlset>files and<sitemapindex>files - Follows up to 25 sitemaps in total, including index children
- Returns up to 50,000 URLs from a single run
- Times out a fetch after 12 seconds if a server does not respond
To keep requests safe, the tool blocks private, loopback, link-local, reserved, and multicast addresses. You cannot point it at localhost or an internal IP range.
How to Extract URLs From a Sitemap
The flow is short. You paste a link, run the extraction, then copy or download the result in the format you need.
- Open Web Dev Tools and select "Sitemap Extractor".
-
Enter a full sitemap URL that starts with
http://orhttps://in the input field. The limit is 2,048 characters. - Click the "Extract URLs" button.
- Read the extracted links in the textarea, with a result count showing how many were found.
- Pick a download format: Text, JSON, or CSV.
- Click "Copy All" to send every link to your clipboard, or "Download" to save the file.
If something goes wrong, the tool returns a plain message such as "Invalid sitemap URL", "This host is not allowed", "Invalid XML response", or "Failed to fetch sitemap". These tell you whether the address, the host, or the file itself is the problem.
Why Extract URLs From a Sitemap
A sitemap is a machine-readable index of a site. Pulling the links out of it gives you the full page inventory without crawling the whole site by hand. That list feeds many routine jobs.
- Audit which pages a site actually declares to search engines
- Build a checklist before a migration or redesign
- Feed URLs into a link checker or a content review
- Compare a competitor's declared pages against your own
- Spot orphaned or forgotten sections listed in the file
Because this xml sitemap extractor reads the file directly, the output reflects exactly what the site published, not what a crawler guessed.
How This Tool Differs From a Crawler
A crawler follows links from page to page and discovers URLs by visiting them. This sitemap extractor online does the opposite: it reads a single declared file and lists what the site owner chose to publish. That makes it quicker and lighter, but it only sees pages present in the sitemap.
- It reads declared URLs, not discovered ones
- It follows index files to reach nested sitemaps
- It returns a sorted, deduplicated list ready to export
When you need to verify that those pages resolve, pair the output with the Diff Checker to compare two exports, or browse more developer tools for the next step.
FAQ
It is a tool that fetches an XML sitemap from a URL and returns every page link listed inside it. The parser reads each
<loc>
element, strips namespace prefixes, then hands back a clean list. You get a plain roster of a site's declared pages without visiting each one yourself.
Paste a full sitemap URL that starts with http:// or https:// into the input field, then click "Extract URLs". The tool fetches the file, parses it, and shows every link in a textarea with a result count. From there you can copy all links or download them as Text, JSON, or CSV.
Yes. When the file uses a
<sitemapindex>
root, it points to other sitemaps rather than listing pages. The tool detects this, follows each referenced child sitemap, and gathers their links into one result. It follows up to 25 sitemaps in total, index and children combined, then merges everything into a single sorted list.
You can save the extracted links as Text, JSON, or CSV. Text gives one URL per line for quick pasting. JSON wraps the links in an array for scripts and tools that read structured data. CSV suits spreadsheets. You can also click "Copy All" to send every URL straight to your clipboard.
Yes. After parsing, the tool removes duplicate links and sorts the remaining URLs alphabetically. This matters most with index files, where the same page can appear in more than one child sitemap. The sorted order also makes the output stable, so comparing two exports later gives you a reliable difference.
The tool returns up to 50,000 URLs per run and follows a maximum of 25 sitemaps, including any index children. Each fetch times out after 12 seconds if a server does not respond. These limits keep runs bounded on large sites, so extremely deep sitemap trees may not be captured in full.
No. To keep requests safe, the tool blocks private, loopback, link-local, reserved, multicast, and unspecified addresses. That means localhost, 127.0.0.1, and private IP ranges are rejected with a "This host is not allowed" message. Only public http:// or https:// sitemap addresses can be fetched.
Each message points to a specific cause. "Only HTTP and HTTPS URLs are supported" means the scheme is wrong. "Invalid sitemap URL" means the address is malformed. "This host is not allowed" means the target is a blocked network. "Invalid XML response" means the file is not valid XML, and "Failed to fetch sitemap" means the server could not be reached.
A crawler visits pages and follows their links to discover URLs, which is heavy and depends on internal linking. This tool reads a single declared file and its child sitemaps, then lists the addresses the site published. It sees only what the sitemap contains, not orphaned pages a crawler might find, but it runs against one file rather than an entire site.
Use it as a page inventory for an audit, a migration checklist, or a content review. Export as CSV for a spreadsheet, or as JSON to feed a script. To compare an old export against a new one, paste both into the Diff Checker and see exactly which pages were added or removed.
The server fetches the sitemap to parse it, then returns the list to your browser. The extracted URLs are shown to you for copying or download and are not kept as a saved record. Because the file is public and declared for crawlers, the content is already meant to be read by machines.
Most tools here run entirely in your browser, but fetching an external file requires a request that a browser blocks across domains for security reasons. The server makes that request instead, reads the XML, and returns the parsed links. This is the only tool that reaches out to an external address, which is why the host safety checks exist.

