The Sitemap URL Extractor converts one pasted XML urlset or sitemapindex into a validated, deduplicated list with one URL per line.
A urlset supplies page locations, while a sitemapindex supplies locations of child sitemap files. The tool does not fetch those children or expand them into the page URLs stored inside them.
Parsing takes place in your browser, and the XML is not uploaded. The extractor makes no network request, so it does not fetch a remote sitemap, follow child files, decompress gzip data, or inspect live pages.

Identify urlset and sitemapindex Inputs
Check the root element before pasting. The root determines whether the extractor is working with page URLs or a directory of sitemap files.
| Input | What the direct loc represents | What the output contains | Required next step |
|---|---|---|---|
| urlset | A page location in a url entry | The page locations, normalized and deduplicated | Use the list for the intended review |
| sitemapindex | A child sitemap file location in a sitemap entry | Only the direct child sitemap locations | Obtain each child file separately to extract its page URLs |
The result reports which root type was found. A common default namespace and a consistent prefix such as sm:urlset, sm:url, and sm:loc are supported. In a urlset, every url entry needs its direct loc child; in a sitemapindex, every sitemap entry needs its direct loc child.
Optional children such as lastmod do not alter the extracted location. An extension location such as image:loc is not substituted for a missing page loc because it describes a different resource role.
Prepare One Complete XML Document
Use the full text from one saved XML document. If the sitemap is stored as a compressed .gz file, decompress it outside the tool before pasting the resulting XML. Pasting a web address into the editor does not download it because the extractor makes no network request.
Do not combine a sitemap index and its child files into one XML paste. The index lists child files; each child must be obtained separately and checked independently. This distinction prevents a list of sitemap filenames from being mistaken for a list of indexable pages.
XML declarations, comments, and a leading byte-order mark are removed before parsing. A DTD or custom entity declaration is different and causes the extraction to fail. Keep the source document available so you can correct numbered item or loc errors and compare the final list with the original structure.
Extract URLs from Sitemap XML
- Paste the complete XML text. Use the contents of one urlset or one sitemapindex, not a remote address and not compressed bytes. Make sure the paste contains the complete document rather than a copied loc element by itself.
- Run the extraction and review the result. Confirm the detected root type, unique count, duplicate count, and complete output. The unique count represents accepted URLs after normalization and deduplication. The duplicate count shows how many normalized duplicates were removed, and the output retains first-seen order.
- Copy the complete one-URL-per-line list. Use the copy button to place the full list on the clipboard. It can support a crawler checklist, spreadsheet import, redirect audit, log comparison, or migration review. Perform separate live status, canonical, robots, and indexing checks when those questions matter to the audit.
See How loc Values Are Normalized
Text decoding is conservative. The extractor accepts the five predefined named XML entities and valid decimal or hexadecimal numeric character references. Unknown named entities and references that produce invalid Unicode scalar values are rejected.
Decoded locations are processed through browser-standard URL serialization, consistent with the WHATWG URL Standard. Hosts are lowercased and validated, default ports are removed, and non-ASCII path characters are percent-encoded when required. Every accepted location must still be an absolute HTTP or HTTPS URL.
Two loc values that serialize to the same value are duplicates, and only the first occurrence remains in the output. For example, source entries that differ only by host capitalization or an explicit default port can collapse into one normalized URL. The duplicate count tells you how many normalized collisions were removed; comparing those locations with the source helps explain the differences.
Resolve Conditions That Fail the Whole Run
The parser is intentionally strict. When it cannot establish a complete, valid document, the entire extraction fails instead of presenting a partial list as complete. Error messages identify the numbered loc or item so the source can be corrected.
- XML structure: Malformed XML, a missing closing tag, an incomplete root or item, a missing direct loc child, or nested markup inside a loc causes failure. The parser does not repair malformed XML or guess where a closing tag belongs.
- Entities and declarations: Unknown entities, invalid Unicode scalar values, DTD declarations, and custom entity declarations cause failure. The five predefined XML entities and valid numeric character references remain supported.
- URL validation: Credentials, fragments, raw whitespace, malformed percent escapes, backslashes, relative paths, and non-HTTP schemes are rejected. Each serialized URL must contain fewer than 2,048 characters, matching the protocol’s loc constraint.
- Processing capacity: A run accepts at most 50,000 unique URLs and five million UTF-16 input code units. Crossing either bound fails the whole operation without truncating the output.
If a production sitemap is close to protocol limits, validate its actual uncompressed byte size and consider splitting it into smaller files referenced by a sitemap index. That production file-size decision is separate from the extractor’s URL-count and pasted-input limits.
Separate Extraction from Live-Site Checks
A successful extraction establishes one limited fact: a direct loc appeared in the pasted structure and passed the tool’s disclosed validation. It does not answer every question that an SEO audit may raise.
| Question | What extraction establishes | Separate evidence to collect |
|---|---|---|
| Was the location present in the pasted XML? | Yes, when extraction succeeds | Compare the source with the complete output and reported counts |
| Is the page available at that address? | No | Run a live HTTP status and redirect check |
| Is it the preferred canonical URL? | No | Inspect canonical signals and compare them with URL records |
| Can it be crawled or indexed? | No | Inspect robots and noindex directives, then check crawl or index data |
| Did a search engine accept the sitemap? | No | Inspect the live sitemap response, its placement, and available platform data |
The parser also makes no claim about page content, ownership, sitemap placement, UTF-8 bytes on disk, or whether a search engine accepted the source file. Google’s Build and submit your sitemap guidance describes sitemaps as discovery hints rather than indexing guarantees.
Use the extracted list as evidence within a larger review. Compare it with canonical URLs from your database, crawl results, analytics landing pages, or a previous release. Unexpected duplicates can expose default-port or host-case variants. Because the widget is client-only, private staging locations and prelaunch URL inventories remain on the device unless you copy them elsewhere.
Related reading: Link Extractor on Windows: Copy Source, Review Links.
Related reading: Sitemap URL Extractor Alternative: Local XML Workflow.