Sitemap URL Extractor

Paste an XML sitemap (<urlset>) or sitemap index (<sitemapindex>) and pull out every URL from its <loc> elements, with the lastmod date when present. Runs in your browser; nothing is uploaded.

URLs

About this tool

The Sitemap URL Extractor parses an XML sitemap and gives you a plain list of every URL it contains. Paste the contents of a sitemap.xml file (a <urlset> of page URLs) or a sitemap index (<sitemapindex>, a list of child sitemaps) and the tool reads each <loc> element, pairing it with the <lastmod> date when one is present.

It auto-detects which kind of document you pasted, handles XML namespace prefixes, and is tolerant of minor formatting. The result is one URL per line, with the last-modified date in a second tab-separated column when available — ready to copy into a spreadsheet, a crawler, or a script.

Everything runs locally in your browser via WebAssembly. Your sitemap is never uploaded to a server.

Common uses

FAQ

I pasted a sitemap index — where are the page URLs?

A <sitemapindex> doesn't contain page URLs; it lists child sitemaps. The tool detects the document kind and returns those child-sitemap URLs. Open each one and paste its <urlset> content back in to get the actual page URLs.

Can I paste a compressed sitemap.xml.gz?

Not directly — the extractor parses XML text, so a gzipped file must be decompressed first (gunzip sitemap.xml.gz, or just open the URL in your browser, which usually decompresses it for you, and copy the XML).

Why do extracted URLs contain "&" where the file said "&"?

<loc> values are XML-unescaped on the way out, so entities like &amp; come back as the literal characters the URL really uses. That means the list is directly usable in a crawler, spreadsheet, or script without further decoding.

Can it download the sitemap from my domain for me?

No — it runs entirely in your browser with no network access, which is also why the sitemap content never leaves your machine. Fetch https://example.com/sitemap.xml yourself (browser or curl) and paste the XML here.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool sitemap-url-extractor "Paste your sitemap.xml contents here…"

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/sitemap-url-extractor/?xml=Paste%20your%20sitemap.xml%20contents%20here%E2%80%A6

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.