Tools

Home
URL Encode/DecodeRegex TesterHash GeneratorJSON Path TesterFavicon Downloader

Sitemap to URLs Extractor

Upload sitemap.xml, paste XML, or fetch from URL — extract all URLs with tree view showing page depth

Your files never leave your browser
Drag & drop a sitemap.xml file here, or browse
Accepts .xml files
or paste XML
or fetch from URL
Sitemap Index detected. This file references sub-sitemaps. The URLs of the sub-sitemaps are listed below. To extract individual URLs, fetch each sub-sitemap separately.

Pull every URL out of a sitemap.xml in one shot — drop the file, paste the XML, or fetch it straight from a live URL. You get a clean list, CSV with depth columns, JSON, or a tree view that mirrors your site hierarchy, which is handy for audits, migrations, or spotting pages buried four clicks deep. And everything runs in your browser. Nothing gets uploaded.

How to Use

Upload a sitemap.xml file by dragging and dropping it, or paste XML content directly, or enter a sitemap URL and click Fetch.

Click Extract URLs to parse all <loc> entries from the sitemap. The tool also detects sitemap index files that reference sub-sitemaps.

Switch between output tabs — plain URL list, CSV with depth data, JSON array, or an interactive tree view showing your site structure.

Copy or download the extracted URLs in your preferred format.

Frequently Asked Questions

What sitemap formats are supported?

This tool supports standard XML sitemaps following the sitemaps.org protocol, including both <urlset> sitemaps (containing <url><loc> entries) and <sitemapindex> files (containing <sitemap><loc> entries referencing sub-sitemaps). It works with any well-formed XML sitemap regardless of namespace prefixes.

What does the tree view show?

The tree view parses each URL's path into segments and builds a visual hierarchy. The root domain is depth 0 (homepage), each path segment adds one level. For example, /blog/2024/my-post/ is depth 3. This helps you understand your site's information architecture and identify deep pages that may be hard for users to reach.

Can I fetch a sitemap from a live URL?

Yes, you can enter any publicly accessible sitemap URL and click Fetch. The request goes through a CORS proxy to bypass browser restrictions. Note that very large sitemaps may take a moment to download. For private or authenticated sitemaps, download the file first and upload it directly.

How are sitemap index files handled?

When a sitemap index file is detected (containing <sitemapindex> and <sitemap> tags), the tool extracts the URLs of all referenced sub-sitemaps and displays them. You can then fetch each sub-sitemap individually to extract the actual page URLs.

Is there a size limit?

Since everything runs in your browser, there's no server-imposed limit. The practical limit depends on your device's memory. Most modern browsers handle sitemaps with tens of thousands of URLs without issues. For very large sitemaps (100k+ URLs), the tree view may take a moment to render.

Share: