Home › Developer Tools › Sitemap URL Extractor

Sitemap URL Extractor

Paste a sitemap.xml, upload one or more sitemap files (including .xml.gz) or a sitemap index, and get a clean, searchable list of every URL with its lastmod date. The extractor also checks the sitemap against the sitemaps.org protocol and exports to CSV or TXT.

Last updated:

Advertisement
Advertisement

How to use the Sitemap URL Extractor

  1. Add your sitemap: paste the XML, upload one or more files (.xml, .xml.gz or .txt), or try fetching it by URL.
  2. Click Extract URLs. Every URL appears in the table with its lastmod, changefreq and priority.
  3. Check the validation panel for errors such as relative URLs, duplicates or invalid dates.
  4. For a sitemap index, load the child sitemaps listed (fetch them or upload them) and they are merged into one list.
  5. Filter and export: search for a path, then download the list as CSV or TXT, or copy all URLs.

Sitemap tags at a glance

TagRequiredRules
<urlset>YesRoot element of a sitemap, with xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
<url> / <loc>YesOne entry per page; loc is the absolute URL, under 2,048 characters, with & written as &amp;
<lastmod>NoW3C Datetime: 2026-10-20 or 2026-10-20T14:30:00+00:00; the date the content last changed meaningfully
<changefreq>Noalways, hourly, daily, weekly, monthly, yearly or never (ignored by Google)
<priority>No0.0 to 1.0, default 0.5 (ignored by Google)
<sitemapindex> / <sitemap>For indexesLists child sitemap files, each with its own loc and optional lastmod

Sitemap limits

  • 50,000 URLs and 50 MB (52,428,800 bytes) uncompressed per sitemap file. Gzip compression reduces transfer size but not the limit.
  • 50,000 sitemaps per sitemap index. Indexes cannot contain other indexes.
  • Same host: a sitemap at example.com/sitemap.xml should only list URLs on example.com, unless you verified the other hosts in search engine tools.
  • Canonical URLs only: leave out redirects, error pages, noindex pages and duplicate parameter variants.

Typical uses for the extracted list

Use the TXT export to crawl or audit every listed page, to compare the sitemap with your analytics or Search Console coverage, or to find pages that are missing or should not be there. Sort by lastmod to see stale content, filter by folder to count pages per section, and test important paths against your crawler rules with the Robots.txt Tester. To build a new file from a list of URLs, use the Sitemap Generator.

Frequently asked questions

How do I extract all URLs from a sitemap?

Open the sitemap in your browser (usually yoursite.com/sitemap.xml), copy its source and paste it here, or save it and upload the file. Click Extract URLs to get the full list, then download it as TXT (one URL per line) or CSV with lastmod and other fields.

What is a sitemap index?

A sitemap index is a sitemap of sitemaps: its root element is sitemapindex and each entry points to another sitemap file. Large sites use it because a single sitemap may contain at most 50,000 URLs and 50 MB uncompressed. Load the child files to see all page URLs.

Why does fetching a sitemap by URL fail?

Browsers only let a page read files from another site when that site sends a CORS header allowing it, and most sites do not for sitemap.xml. When fetching fails, open the sitemap in a new tab, save it or copy its source, and upload or paste it instead. Nothing is sent to FreeToolCabin either way.

What does the validator check?

It checks the root element and the sitemaps.org namespace, that every entry has an absolute http or https loc, URL length, duplicate URLs, URLs on different hosts, W3C datetime format of lastmod, valid changefreq and priority values, and the 50,000 URL and 50 MB size limits.

Does Google use changefreq and priority?

No. Google has said it ignores changefreq and priority values, and uses lastmod only when it is consistently accurate. Keeping lastmod correct is worth more than tuning the other two tags.

Can it read compressed .xml.gz sitemaps?

Yes. Gzip files are decompressed in your browser with the built-in DecompressionStream API, supported by all current major browsers.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Sitemap GeneratorTurn a list of URLs into a valid XML sitemap file.Robots.txt TesterTest whether a URL is allowed or blocked by robots.txt for Googlebot and other crawlers.URL ExtractorExtract every link from text or HTML, remove duplicates, filter by domain or protocol.XML FormatterBeautify, validate and minify XML with a collapsible tree view.Privacy Policy GeneratorCreate a privacy policy for your website or app with CCPA, CalOPPA, COPPA and AdSense sections.UTM Campaign URL BuilderAdd UTM tracking parameters to links and make a QR code.Meta Tag GeneratorCreate SEO, Open Graph and X meta tags with live previews.Robots.txt GeneratorBuild a robots.txt file with rules, sitemap lines and AI-bot blocking presets.SERP Snippet PreviewPreview your title tag and meta description with pixel-accurate truncation on desktop and mobile.Hreflang Tag GeneratorCreate hreflang tags, sitemap entries and Link headers for every language and region, validated.Canonical Tag GeneratorNormalize URLs and create rel=canonical tags and HTTP headers, for one page or a whole list.Content Security Policy GeneratorBuild a CSP header or meta tag with nonces, hashes, presets and report-only mode.Meta Tag AnalyzerPaste page HTML to audit title, description, canonical, robots, Open Graph and hreflang tags.Cookie Consent Banner GeneratorDesign a cookie banner with accept, reject and settings buttons and copy the HTML/CSS/JS.FAQ Schema GeneratorTurn questions and answers into FAQPage JSON-LD markup with validation and a preview.Google Review Link GeneratorTurn a Google Place ID into a direct review link, QR code and printable review card.Keyword Suggestion ToolTurn one seed keyword into hundreds of Google and YouTube autocomplete keyword ideas.Local Business Schema GeneratorCreate LocalBusiness JSON-LD with address, geo, opening hours, holiday hours and sameAs links.Structured Data ValidatorCheck JSON-LD, microdata and RDFa against schema.org and Google rich result requirements.Terms and Conditions GeneratorCreate terms of service for a website, store, SaaS or app, with payments and governing law.Breadcrumb Schema GeneratorBuild BreadcrumbList JSON-LD plus the matching HTML breadcrumb from names and URLs.Cookie Policy GeneratorCreate a cookie policy with a ready cookie table for Google Analytics, AdSense, Meta Pixel and more.Disclaimer GeneratorWrite a website disclaimer for affiliate, health, finance or blog sites, with short post notices.Keyword CombinerCombine up to 4 keyword lists into every combination in broad, phrase and exact match.Long Tail Keyword GeneratorTurn a seed keyword into long-tail keywords with best, how to, near me, year and for X modifiers.On-Page SEO CheckerPaste page HTML and a keyword to audit title, meta, headings, alt text and keyword use.App Privacy Policy GeneratorCreate a privacy policy for your iOS or Android app from its SDKs, permissions and data.URL Tracking RemoverStrip utm, fbclid, gclid and other tracking parameters from one link or hundreds at once.YouTube Keyword ToolFind YouTube search suggestions for a video topic with A-Z expansion and copy them as tags.
See all 28 SEO & Marketing Tools →