HomeBlogLinkHarvest Guides › Extract URLs From a Sitemap.xml
EN中文日本語DeutschESFR

How to Extract All URLs From a Sitemap.xml (SEO Audit, 2026)

Your sitemap has 2,000 URLs. You open sitemap.xml in a text editor, see a wall of <loc> tags, and start scrolling. Twenty minutes later you're at URL 143 with tired eyes and no plan. This is where SEO audits go to die.

The truth is that a sitemap is already a machine-readable list of every URL you consider important — you just need to pull those URLs out of the XML and into a format you can actually work with. In this guide you'll learn three ways to do it, from a 60-second browser method to heavyweight crawlers, plus a short checklist that turns a raw URL list into a real audit.

Why Extract a Sitemap's URLs?

Before the how, the why. A flattened URL list from your sitemap unlocks several core SEO tasks:

Method 1: Open sitemap.xml in the Browser + Extractor Extension (Recommended)

Here's the trick most people miss: a sitemap is just a list of links. Every URL lives inside a <loc> tag, and browsers render those as clickable links on the page. That means any tool that extracts links from a webpage also extracts URLs from a sitemap — no XML parsing required.

This is where VKT LinkHarvest comes in. It's a Chrome and Edge extension that extracts all links from any webpage, including dynamically rendered pages. Open your sitemap URL, click the LinkHarvest icon, and it captures every URL on the rendered page — with filtering, sorting, internal/external classification, and occurrence counting.

Two practical notes:

Method 2: Screaming Frog / Online Parsers

Desktop crawlers like Screaming Frog SEO Spider have a dedicated sitemap mode: paste the sitemap URL, choose "List Mode," and the crawler fetches every URL and reports status codes, redirects, and metadata. Online XML parsers work similarly in your browser.

Use this method when you need full crawling data — response codes, titles, canonical tags — not just the URL list. The trade-off is setup and resources: desktop crawlers need installation and can be slow or memory-hungry on very large sitemaps, and many online parsers cap how many URLs they'll process for free. If your goal is simply "give me the list of URLs," Method 1 is faster.

Method 3: Spreadsheet + XML Import

Excel and Google Sheets can import XML directly. In Excel it's Data → Get Data → From XML File; in Google Sheets you can use the =IMPORTXML() function with an XPath like //loc pointed at the sitemap URL.

This works for small, flat sitemaps, but it gets brittle fast: IMPORTXML has cell and length limits that large sitemaps blow past, sitemap index files need a second query per child sitemap, and XML namespaces occasionally make the import silently return nothing. It's fine for a one-off on a 50-URL sitemap; for anything bigger or nested, use Method 1.

Quick Audit Checklist After Extraction

Once the URLs are in one list, the audit is mostly mechanical:

  1. Dedupe. Combine child sitemaps and remove duplicates — LinkHarvest's occurrence count shows each URL once with the number of times it appeared.
  2. Check status codes. Crawl the list (or spot-check) for 404s and 301/302 chains. URLs in the sitemap should return 200.
  3. Compare against indexed counts. Run a site: query or check your search console coverage. A large gap between submitted and indexed URLs is your top priority.
  4. Spot orphaned patterns. URL patterns present in the sitemap but linked from nowhere on the site (or vice versa) reveal navigation and internal-linking gaps.
  5. Flag junk. Tag pages, parameterized URLs, and staging subdomains shouldn't be in a production sitemap. Filter by keyword in LinkHarvest to find them in seconds.

Step-by-Step: Extract Sitemap URLs With LinkHarvest

  1. Install VKT LinkHarvest from the Chrome Web Store or Edge Add-ons.
  2. Type your sitemap address (typically yourdomain.com/sitemap.xml) into the address bar and open it. If unsure, check robots.txt for a Sitemap directive.
  3. Click the LinkHarvest icon. It captures every URL rendered on the page and shows them with occurrence counts.
  4. If it's a sitemap index, open each child sitemap link and repeat the extraction, then merge the lists.
  5. Use the keyword filter to remove noise (for example, exclude URLs containing tag or page) and sort the results.
  6. Copy the filtered links to your clipboard or export as TXT (both free). For spreadsheets, upgrade to CSV export on the pricing page.

If you've never used a link extractor before, our guide on how to extract all links from a webpage walks through the interface in more detail.

Method Comparison at a Glance

MethodBest forSetupHandles nested sitemaps
Browser + LinkHarvestFast URL lists, filtering, free exportOne-time install✅ Visit each child sitemap
Screaming Frog / crawlersStatus codes, titles, full crawl dataInstall + configuration✅ Automatic
Spreadsheet XML importSmall, one-off flat sitemapsNone⚠️ Manual per child

Frequently Asked Questions

Can I extract URLs from a sitemap index file?

Yes, but a sitemap index file contains links to child sitemaps rather than page URLs. Extract the URLs from the index first, then visit each child sitemap and extract its URLs the same way, combining everything into one master list. An extension like VKT LinkHarvest captures the child sitemap URLs from the rendered index page automatically.

How do I open sitemap.xml?

Type the sitemap address — usually yourdomain.com/sitemap.xml — directly into your browser's address bar. Modern browsers render the XML as a clickable list of links instead of raw markup. If it does not load, check robots.txt for a Sitemap: directive that points to the real location, since sitemaps can live at any URL the site owner chooses.

Is LinkHarvest free to use?

The core of VKT LinkHarvest is free: extracting all links from a page, filtering and sorting them, copying filtered links to the clipboard, and exporting as TXT. The only paid feature is CSV export with UTF-8 BOM encoding for spreadsheet tools, which is a one-time $9.99 lifetime upgrade — no subscription.

What is the difference between TXT and CSV export?

TXT export produces a plain, one-URL-per-line list that is ideal for quick comparisons, merge tools, and scripts. CSV export produces a table you can open in Excel or Google Sheets with proper columns, and LinkHarvest adds a UTF-8 BOM so special characters in URLs display correctly instead of turning into garbled text.

How often should I extract and audit my sitemap URLs?

There is no fixed rule, but sensible moments are after a site migration or redesign, after large content additions or deletions, and on a regular maintenance cadence such as quarterly. The goal is to catch 404s, redirect chains, and URLs that should not be in the sitemap before search engines and users find them.

Turn your sitemap into a clean URL list in minutes: VKT LinkHarvest extracts every link from the rendered page — filtering, sorting, classification, occurrence counts. Free core; Premium (one-time $9.99, lifetime) adds Excel-friendly CSV export. Chrome Web Store · Edge Add-ons.

Explore more tools in the VKT Extensions catalog, or reach us at [email protected].

Keep reading

How to Extract All Links From a Webpage — Chrome Extension Guide (2026)
Link Klipper vs LinkHarvest — Best Link Extractor for Chrome in 2026