Zahid Awais Get a free audit

Free sitemap URL extractor

Paste the XML of a sitemap or sitemap index and get every URL with its lastmod date, plus duplicates and risky URLs flagged.

By Zahid Awais · Technical SEO tools · Free, private, no sign-up

This page cannot download a sitemap for you: browsers block reading other sites (CORS). Open the sitemap address in a new tab, view the page source, copy all of it and paste it here. Gzip (.gz) files are not supported, so unzip them first.

Result
0Entries
0Unique URLs
0Duplicates
0Flagged
#URLlastmodFlags
    Sitemap URL Extractor: what it does and an example result

    The free sitemap URL extractor turns the XML of a sitemap or sitemap index into a clean list of URLs with their lastmod dates. It also flags duplicates, http URLs, URLs on another host and badly formatted dates, and it runs entirely in your browser.

    Quick answer

    A sitemap URL extractor reads the loc and lastmod values from sitemap XML and gives you a plain list or CSV of every URL. Paste the XML source, because browsers cannot fetch other sites. The tool also flags duplicates, http URLs and URLs on another host, which Google may reject.

    What is a sitemap URL extractor?

    A sitemap URL extractor is a tool that pulls the page addresses out of an XML sitemap so you can work with them as a list. Every page in a sitemap sits inside a <url> element with a required <loc> and an optional <lastmod>. A sitemap index uses <sitemap> elements instead, one per child sitemap. This tool reads both, using a real XML parser rather than a text search, so it copes with namespace prefixes and skips image, video and news extension tags while still counting them.

    A clean list is useful for audits: paste it into a crawler, compare it with the URLs Search Console reports, or check which old pages are still listed. Google says to "use fully-qualified, absolute URLs" because it will try to crawl them "exactly as listed", so the flags help you spot entries that waste that crawl. To check the structure of the file itself, use the sitemap XML validator.

    How do you use the Sitemap URL Extractor?

    How to use the Sitemap URL Extractor: enter details, see the result and copy it
    Real screenshot of the Sitemap URL Extractor with the example input from this page.
    1. Open your sitemap address, for example /sitemap.xml or /sitemap_index.xml, in a new browser tab.
    2. View the page source (Ctrl+U or Cmd+Option+U), select all and copy it. Unzip .gz files first.
    3. Paste the XML into the box. Add the sitemap address if you want the host check to compare against it.
    4. Read the counts and flags: duplicates, not https, other host, bad lastmod and very long URLs.
    5. Choose a plain list or CSV, then copy the result or download it as a .txt or .csv file.

    Why can't the tool fetch my sitemap URL directly?

    Because browsers block a web page from reading files on another site unless that site allows it, a rule called cross-origin resource sharing (CORS). Most sites do not allow it for their sitemaps, so a browser tool would fail or need a server in between. Pasting the source keeps everything on your device and works for any site, including staging sites behind a login.

    Which URLs in a sitemap are a problem?

    URLs that are duplicated, use a different protocol or sit on a different host are the usual problems. The sitemaps.org protocol says all URLs in a sitemap must come from a single host and use the same protocol as the sitemap location. Search Console reports a "URL not allowed" error when a sitemap includes URLs "at a higher level or different domain than the sitemap file". Duplicates are not an error, but they add noise and usually point to a plugin or export problem.

    Does the extractor read image, video and news sitemaps?

    Yes. It lists the page URL of each entry and counts the extension tags inside it, such as image:image, video:video, news:news and hreflang xhtml:link elements. Image URLs inside image:loc are not mixed into the page list, because they are not pages. Google's image sitemap documentation allows up to 1,000 image:image tags in one url entry.

    Quick reference: what each flag means

    FlagWhat it meansWhat to do
    duplicateThe same loc appears more than onceRemove the repeat at the source (plugin or export)
    not httpsThe URL starts with http://List the https version if the site redirects to it
    other hostHost differs from the sitemap addressMove it to that host's own sitemap
    bad lastmodDate is not in W3C Datetime formatUse YYYY-MM-DD or a full date and time
    2,048+ charactersloc is too long for the protocolShorten the URL or leave it out

    Worked example

    Example

    Example: the default sample is a sitemap for www.example.com with 7 <url> entries. The extractor finds 6 unique URLs because /services/ is listed twice. It flags 2 URLs: http://www.example.com/old-page/ (not https) and https://shop.example.net/product/blue-mug/ (other host). 4 entries have a lastmod date, and 1 image tag is counted but kept out of the URL list. The escaped &amp; in the contact URL comes out as a normal &.

    Learn more

    Frequently asked questions

    How do I get the XML source of my sitemap?

    Open the sitemap address in your browser, then use View page source or press Ctrl+U. Select everything and copy it. Some sites style sitemaps with XSL, so the source view is the reliable way to get the raw XML.

    Can I paste a sitemap index?

    Yes. The tool detects a sitemapindex root and lists the child sitemap addresses with their lastmod dates. To get the page URLs, open each child sitemap, copy its source and paste it in turn.

    Why are gzip sitemaps not supported?

    A .gz file is compressed binary data, and pasted text cannot carry it intact. Download the file, unzip it with any archive tool, open the XML in a text editor and paste the contents here.

    Is my sitemap data uploaded anywhere?

    No. The XML is parsed by your own browser with its built in DOMParser, and the download buttons create files on your device. Nothing is sent to a server or stored.

    What date format should lastmod use?

    Sitemaps.org says lastmod should use the W3C Datetime format, which allows a plain date such as 2026-10-20 or a full date and time with a time zone. Google says it should reflect the last significant update of the page.

    How many URLs can the tool handle?

    It handles tens of thousands of entries in a modern browser. The table shows the first 500 rows to stay fast, while the output box and downloads include every URL found in the pasted XML.

    Sources

    Checked 23 Oct 2026. Facts checked against these official pages. Read how I check facts in my editorial policy.

    Related free tools

    All free tools

    Sitemap XML Validator

    A sitemap validator is a tool that parses sitemap XML and checks it against the sitemap protocol and Google's…

    Sitemap Index Generator

    A sitemap index generator is a tool that wraps each sitemap URL in a sitemap element with a loc and optional…

    XML Sitemap Splitter

    Splits a URL list or sitemap into files under 50,000 URLs and 50MB, plus a sitemap index.

    URL Parser

    A URL parser is a tool that reads a URL according to the URL standard and separates it into components. This…

    Want a full audit instead?

    Send your website and I will check it for you, free.

    Get my free audit
    Chat on WhatsApp
    Free updates

    Get new tools, guides and coupons first

    One short email when something new goes live: articles, free SEO tools, package updates, discounts and price alerts. No spam, unsubscribe in one click.