# Sitemap URL extractor

Pull every unique URL out of a sitemap as plain text or a CSV file.

Canonical page: https://aismarty.com/tools/sitemap-url-extractor

## Purpose

Turn a sitemap into a clean list of unique URLs, as plain text or a CSV file with lastmod, changefreq and priority columns.

## How to use this tool

1. Paste your sitemap XML or open an .xml file from your device.
2. Choose Extract URLs. Everything runs in your browser.
3. Copy the list or download it as text or CSV.

## Example inputs

- Sitemap XML: <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
    <lastmod>2026-09-28</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://www.example.com/pricing</loc>
    <lastmod>2026-09-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://www.example.com/blog/</loc>
    <lastmod>2026-09-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.7</priority>
  </url>
  <url>
    <loc>https://www.example.com/blog/opening-hours-update</loc>
    <lastmod>2026-04-02</lastmod>
    <changefreq>daily</changefreq>
  </url>
  <url>
    <loc>https://www.example.com/blog/how-to-book-online</loc>
    <lastmod>2025-11-20</lastmod>
    <changefreq>yearly</changefreq>
  </url>
  <url>
    <loc>https://www.example.com/contact</loc>
    <changefreq>yearly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://www.example.com/search?q=shoes&amp;page=2</loc>
  </url>
</urlset>


## Limits and what to check

It runs entirely in your browser and nothing is uploaded. Each sitemap is limited to 2 MB and 50,000 entries, and larger input is refused rather than cut short. URLs are listed as written, in their original order. Spreadsheet formula characters are neutralised in the CSV.

## Frequently asked questions

### Are the URLs normalised?

Duplicates are removed by comparing URLs with a lowercase scheme and host and without fragments. Each URL is listed as written in the sitemap, in its original order.

### Is the CSV safe to open in a spreadsheet?

Yes. Values that a spreadsheet could treat as a formula are prefixed with an apostrophe.

### Does the URL extractor send my sitemap anywhere?

No. URLs are extracted in your browser and nothing is sent to AI Smarty. Inputs are limited to 2 MB and 50,000 entries.

### Can I extract URLs from a live sitemap address?

Paste the XML or open a saved file. To fetch a live sitemap by its address, use the sitemap checker first.

## Related tools

- [Sitemap URL comparison](https://aismarty.com/tools/sitemap-urls-comparison)
- [Sitemap analyzer](https://aismarty.com/tools/sitemap-analytics)
- [Sitemap frequency analyzer](https://aismarty.com/tools/sitemap-frequency-analyzer)
- [All tools](https://aismarty.com/tools)
