Home
Contact Terms Privacy Catalog About

Sitemap URL Extractor

Sitemap URL Extractor SEO Utility

Effortlessly extract all URLs from any XML sitemap or sitemap index file. Paste a sitemap URL, and this tool will parse it, including recursively fetching linked sitemaps, to provide a clean list of all discoverable URLs. All processing is done client-side for privacy.

Initializing... 0%

Extracted URLs (0)

No URLs extracted yet. Enter a sitemap URL above.

How the Sitemap Extractor Works

This tool operates entirely within your browser. When you provide a sitemap URL, it uses the browser's built-in fetch API to retrieve the XML content. Once fetched, a DOMParser is used to parse the XML structure and locate all <loc> tags, which contain the actual URLs.

For sitemap index files (which link to other sitemaps), the extractor intelligently identifies these nested sitemap URLs and adds them to a processing queue. It then recursively fetches and parses each linked sitemap, ensuring that every URL referenced within the entire sitemap hierarchy is collected. All unique URLs are then compiled and displayed, ready for download.

Because no data is sent to a server, your sitemap URLs and their contents remain private to your browser session.

Frequently Asked Questions

What is a sitemap?

A sitemap is an XML file that lists all the URLs of a website. It helps search engines like Google, Bing, and others discover all the pages on your site, including those that might not be easily found through regular crawling. It's essentially a roadmap for search engine bots.

Why am I getting a "CORS policy" error?

CORS (Cross-Origin Resource Sharing) is a security feature in browsers that prevents web pages from making requests to a different domain than the one the page originated from, unless the target domain explicitly allows it. If a sitemap's server does not send the necessary CORS headers, your browser will block the request. This tool cannot bypass CORS restrictions directly. If you encounter this, you might need to host the sitemap on the same domain as this tool, or use a sitemap that has CORS enabled.

Does it handle sitemap index files?

Yes, absolutely! If you provide a sitemap index file (e.g., sitemap_index.xml), the tool will automatically identify and recursively fetch all the individual sitemaps linked within it, aggregating all URLs from the entire hierarchy.

Is my data safe and private?

Yes, your data is completely private. This tool is 100% client-side JavaScript. Your sitemap URLs and the extracted data are processed directly within your browser and are never sent to any external server, database, or API.

Tools You Might Like

Handpicked utilities everyone is using right now