Sitemap URL extraction reads direct values from one or document; it does not check indexing or expand a sitemap index into its child files.

A useful extraction has three separate stages: parse the XML, validate the locations, and inspect the live pages. Mixing those stages creates misleading audit results. For example, a valid sitemap location may redirect, point to a non-canonical page, or be blocked from indexing even though it passed the parser.

The Sitemap URL Extractor handles the parsing and location-validation stage in your browser. It produces a clean, deduplicated list without uploading the XML, but live search-engine checks remain a separate task.

extract urls from sitemap tips and common mistakes
Extract URLs From Sitemap: Tips and Common Mistakes

Know which sitemap structure you are extracting

Every extraction starts with the root element because it determines what the output represents. A urlset is a collection of page entries. A sitemapindex is a directory of other sitemap files.

XML root Required direct structure What the output represents
urlset Each url entry contains a direct loc child. The page URLs listed in that sitemap document.
sitemapindex Each sitemap entry contains a direct loc child. The locations of child sitemap files, not their page URLs.

Process only one document per run. If you paste a sitemap index, the result is a list of child sitemap locations. Obtain each child file separately and extract it separately when you need the complete page inventory.

You also need the actual XML text rather than a sitemap address. If you do not have that text yet, get a website sitemap XML as plain text before opening the extractor. Pasting a remote address into the editor does not download or follow it.

Prepare the XML without changing its meaning

Good preparation prevents false parser errors and prevents extension data from being mistaken for page locations.

  • Paste one complete document. Include the root element, every relevant entry, and all closing tags. Do not paste only a fragment of the sitemap.
  • Preserve the direct hierarchy. A page location must appear in the direct child of a entry. A child sitemap location must appear in the direct child of a entry.
  • Use a supported namespace form. The default namespace and one consistent prefix, such as sm:urlset, sm:url, and sm:loc, are supported.
  • Do not replace a missing page location with an extension location. An image:loc identifies an image resource, not the missing page URL, so it is not substituted automatically.
  • Keep optional children intact. Elements such as do not change the extracted location, and XML declarations and comments are ignored.

XML decoding is conservative. The five predefined XML entities and valid decimal or hexadecimal numeric character references are accepted. Unknown entities, invalid Unicode scalar values, nested markup inside a element, DTD declarations, and custom entity declarations cause the extraction to fail. The parser does not repair malformed XML or guess where a missing closing tag belongs.

Extract URLs from one sitemap document

  1. Open the Sitemap URL Extractor and paste the complete XML text from one or document into the editor.
  2. Extract the direct values, then review the detected root type, unique URL count, duplicate count, and complete output before copying anything.
  3. Copy the complete one-URL-per-line list, then perform separate live status, canonical, robots, and indexing checks for the URLs that need review.

The copy action places the full output on the clipboard for a crawler checklist, spreadsheet import, redirect audit, log comparison, or migration review. First-seen order is preserved, making it easier to compare the output with the source document.

All parsing happens locally in the browser, and the XML is not uploaded. That also means private staging locations and prelaunch inventories remain on the device unless you copy them somewhere else.

Understand validation, normalization, and limits

Every decoded location must be an absolute HTTP or HTTPS URL. The parser rejects relative paths, other schemes, credentials, fragments, raw whitespace, malformed percent escapes, and backslashes. A serialized URL must also contain fewer than 2,048 characters.

Valid locations are normalized using browser-standard URL handling, as described by the WHATWG URL Standard. Hosts are lowercased and validated, default ports are removed, and non-ASCII path characters are percent-encoded when required. If two source locations serialize to the same value, the first occurrence is retained and the later occurrence is reported as a normalized duplicate.

Unexpected duplicates deserve attention. They can expose source variations such as host-case or default-port differences, but they do not automatically identify a ranking or indexation problem.

The extractor accepts at most 50,000 unique URLs and five million UTF-16 input code units. Crossing either bound fails the complete operation without truncation. These are tool boundaries, not recommended sitemap sizes; a production sitemap may still need to be split for other protocol or operational reasons.

Mistakes that produce incomplete or misleading lists

Most sitemap extraction problems come from expecting the parser to perform tasks it was not designed to perform. Review these failure patterns before interpreting the output.

Common mistake Why it causes problems Better practice
Pasting a sitemap URL instead of XML The editor does not make a network request or fetch the referenced file. Retrieve the complete XML text and paste that instead.
Treating sitemapindex output as a page inventory The list contains direct child sitemap locations, not URLs inside those files. Obtain and process every referenced child sitemap separately.
Pasting compressed .gz data The extractor does not decompress files. Decompress the sitemap outside the tool, then paste the uncompressed XML.
Using image:loc when the page loc is missing The extension location describes a different resource role and cannot replace the page location. Correct the source entry or provide its valid direct page loc.
Deleting broken entries to obtain a partial list An incomplete item or root causes the whole extraction to fail. Fix the numbered source error indicated by the parser and run the extraction again.
Ignoring the duplicate count Normalized duplicates may conceal source variations across otherwise identical locations. Compare duplicate locations with the original XML and normalize the source deliberately.
Assuming a successful extraction means successful indexing Parsing confirms that a location appeared and passed the disclosed validation. Check live status, canonicals, robots directives, and indexing separately.

The parser reports errors specifically enough to identify the numbered or item. Treat that message as a source-correction signal rather than something to bypass by silently skipping the affected entry.

Separate extraction from live-site verification

The finished list is useful audit evidence, but it is not proof that every URL is crawlable, canonical, valuable, indexed, or ranked. Sitemaps are discovery aids rather than indexing guarantees, as explained in Google’s sitemap guidance.

Review the extracted locations against the live site using separate checks:

  • Check HTTP status codes and redirect chains.
  • Compare the requested URL with its canonical tag and preferred site URL.
  • Inspect robots directives and noindex directives.
  • Confirm that the page content is present and belongs to the expected site.
  • Verify sitemap placement and inspect the live sitemap response.
  • Check the actual uncompressed file encoding and size on disk.
  • Confirm whether a search engine accepted the source file when that information is available.

For migration or redirect reviews, compare the extracted list with canonical URLs from your database, crawl results, analytics landing pages, or the previous release. Differences can reveal missing pages, unexpected redirects, or inventory changes, but each source should still be evaluated for its own purpose.

Handle large production sitemaps carefully

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. A sitemap index is only a directory: extracting it identifies those child files but does not fetch or combine them.

Likewise, keep tool limits separate from sitemap design decisions. Reaching 50,000 unique URLs is not a recommendation to fill the extractor, and exceeding either tool bound causes a complete failure rather than a partial list. Validate the real document size, review the source, and split only when the underlying sitemap structure and deployment plan support it.

For a deeper look, see UTM Builder Large Text: Build Readable Campaign URLs.