Sitemap XML to CSV Converter

Paste sitemap XML and pull every <loc> entry into a clean CSV you can download or copy.

Sitemap XML

Paste a <urlset> sitemap or a <sitemapindex> file to extract its entries.

Processing happens locally in your browser; nothing is uploaded.

CSV tableLive table preview. Uncheck a column to drop it from the copy and download output.

0 lines in0 lines outN/A runtime

Extract a sitemap to see a preview here.

Typical sitemaps process in under 10ms on modern browsers.

How to convert a sitemap to CSV

Convert in 3 steps

Takes ~5 seconds
  1. 1
    Paste sitemap XML

    Add your sitemap or sitemap index XML in the input box.

  2. 2
    Extract

    Click "Extract to CSV" to parse every entry.

  3. 3
    Pick columns

    Uncheck any columns you don't want, then copy or download.

Sitemap index files return the child sitemap URLs, not page URLs.

Who should use this tool?

  • SEOs auditing site structure
  • Developers migrating URLs
  • Analysts reviewing site freshness

Examples

Extracts a URL with a lastmod date.

Input
<urlset><url><loc>https://example.com/</loc><lastmod>2026-01-15</lastmod></url></urlset>
Output
url,type,lastmod
https://example.com/,url,2026-01-15

Extracts a URL without a lastmod date.

Input
<urlset><url><loc>https://example.com/about</loc></url></urlset>
Output
url,type,lastmod
https://example.com/about,url,

Extracts child sitemaps from a sitemap index.

Input
<sitemapindex><sitemap><loc>https://example.com/sitemap1.xml</loc></sitemap></sitemapindex>
Output
url,type,lastmod
https://example.com/sitemap1.xml,sitemap,

Turn sitemap XML into CSV

Pull every URL out of a sitemap without writing a parser.

Use this sitemap to CSV converter to extract page URLs or child sitemap URLs from any XML sitemap. Paste a <urlset> or <sitemapindex> document, extract the entries, preview them as a table, and download a CSV with only the columns you need. Everything runs locally in your browser for fast, private conversion.

Handles both formats

Works with regular sitemaps and sitemap index files.

  • Extracts page URLs
  • Extracts child sitemap URLs
  • Captures lastmod dates
Download ready

Get a CSV you can open in a spreadsheet or import elsewhere.

  • One click download
  • Copy to clipboard
  • No server upload
Privacy first: we never send your input to a server. Everything runs locally in your browser.

Sitemap tips

Keep sitemap XML well-formed for reliable extraction.

  • Paste the full sitemap document, including the root element.
  • Check the type column to tell page URLs apart from child sitemaps.
  • Uncheck the lastmod column if you only need the URLs.
  • Re-fetch large sitemaps in sections if they exceed browser paste limits.

Frequently asked questions

Does this work with sitemap index files?>
Yes. Sitemap index files return the child sitemap URLs with type set to "sitemap".
Can I choose which columns end up in the CSV?>
Yes. Uncheck any column checkbox above the preview and the copy/download output updates to match.
Is my sitemap data sent anywhere?>
No. All parsing happens locally in your browser.
What if a URL has no lastmod date?>
The lastmod column is left blank for that row.
Can I fetch a sitemap URL directly instead of pasting it?>
Not yet. Download or view the sitemap XML first, then paste its contents here.

Related Data tools