Extract URLs from sitemap XML by pasting one complete urlset or sitemapindex document into the Sitemap URL Extractor, then copying its verified one-URL-per-line list for comparison with crawl results.
The extractor reads direct loc values locally in your browser, so the XML is not uploaded. It also separates extraction from live-site checks: the resulting list identifies locations found in the pasted structure, but it does not test crawlability, canonical tags, redirects, robots directives, or search-engine indexation.

Choose the sitemap document that contains your URLs
A sitemap can have either of two core root structures. The distinction determines what the extracted list represents, so confirm the root type before comparing it with a crawl.
| Root type | Direct location required | Extracted list | Required next step |
|---|---|---|---|
| urlset | Each url entry has a direct loc child. | Page URLs listed in that file. | Compare with crawl and live-site results. |
| sitemapindex | Each sitemap entry has a direct loc child. | Locations of child sitemap files. | Obtain and extract each child file separately. |
Only direct loc children are read. Optional children such as lastmod do not change the extracted location. An extension location such as image:loc is not substituted for a missing page loc because it represents a different resource role. The common default namespace and a consistent prefix such as sm:urlset, sm:url, and sm:loc are supported.
A sitemapindex is a directory of sitemap files, not a recursive bundle of every page beneath it. Its extracted locations point to child sitemap files. Those child files must be obtained and processed separately if you need their page URLs.
Prepare one paste-ready XML document
Paste the complete XML text from one urlset or sitemapindex document at a time. The editor does not download a sitemap when you paste a remote address, and compressed .gz data must be decompressed outside the tool before use. Because parsing happens in the browser, private staging URLs and prelaunch inventories remain on the device unless you copy them elsewhere.
Make sure the document has a complete root and closing structure. XML declarations and comments are ignored, but the parser does not repair malformed XML or guess where a missing closing tag belongs. A DTD declaration, including a custom entity declaration, causes the run to fail.
- Use either the common default namespace or one consistent namespace prefix throughout the document.
- Keep the full loc value as plain text; nested markup inside loc is rejected.
- For a large paste, review the large-sitemap text-paste workflow before beginning the run.
Extract URLs from sitemap XML step by step
- Paste one complete XML document into the editor. Copy the source contents of a single urlset or sitemapindex file. Do not paste the sitemap’s web address expecting the tool to retrieve it, and do not submit compressed content that has not been decompressed.
- Run the extraction and review the result panel. Check the detected root type, accepted unique URL count, normalized duplicate count, and complete output. The root type tells you whether the list contains page URLs or child sitemap locations.
- Copy the complete one-URL-per-line list. The copy button places the entire verified list on the clipboard. Use it for a crawler checklist, spreadsheet import, redirect audit, log comparison, or migration review, then perform any required live-site checks separately.
The output keeps the first occurrence of each normalized URL, so its order remains easy to compare with the source document. Normalized duplicates are removed rather than returned as repeated lines, which makes unexpected changes visible when the same page appears with different host-case or default-port forms.
Read the extracted list and its counts
The parser validates each decoded loc with browser-standard URL rules based on the WHATWG URL Standard. Every accepted location must be an absolute HTTP or HTTPS URL, and the serialized result must contain fewer than 2,048 characters.
- Credentials, fragments, raw whitespace, malformed percent escapes, backslashes, relative paths, and non-HTTP schemes are rejected.
- Host names are lowercased and validated, default ports are removed, and non-ASCII path characters are percent-encoded when required.
- Two source locations that serialize to the same URL are duplicates; only the first one is returned.
The reported unique count reflects accepted, serialized URLs, while the duplicate count reflects normalized duplicates removed. Because serialization can change the textual form of a valid URL, compare differences carefully instead of assuming that every changed character represents a new page.
Build a crawl-comparison checklist
The extractor produces the sitemap-side inventory; it does not fetch the site or compare crawl logs itself. Complete the comparison as a separate workflow after copying the list.
- Place the extracted list in a spreadsheet or crawler checklist. Keep the one-URL-per-line structure intact so it can be matched against a crawl export or log-derived list.
- Add the crawl results and classify the differences. Group locations into categories such as present in both lists, sitemap-only, crawl-only, and absent from both. These categories are comparison labels, not automatic indexation findings.
- Investigate mismatches with separate evidence. Check redirects, HTTP status, canonical tags, robots directives, noindex directives, and relevant page content. A sitemap-only URL may still be blocked, redirected, non-canonical, or otherwise uncrawled.
- Record the evidence for each important difference. Compare the list with canonical URLs from a database, crawl results, analytics landing pages, or a previous release. Unexpected normalized duplicates can point to default-port or host-case variants worth investigating.
Do not treat a crawl mismatch as proof of an indexing problem. A valid sitemap location can be absent from a crawl, while a crawled page can legitimately be absent from the sitemap. The extracted list provides evidence for the audit, not a final diagnosis.
Fix parse errors and rejected loc values
The extractor favors a complete, predictable result over a partial one. If an item or root is incomplete, the entire run fails instead of presenting the remaining URLs as a complete list. Parser errors identify the numbered loc or item so the source can be corrected.
- Add the required direct loc child when an url or sitemap entry is missing its location.
- Replace nested markup inside loc with a plain text URL.
- Remove DTD and custom entity declarations; they are deliberately unsupported.
- Replace unknown entities with one of the five built-in XML entities or a valid decimal or hexadecimal Unicode character reference.
- Correct invalid Unicode scalar values, malformed XML, and missing closing tags rather than expecting the parser to repair them.
- Resolve URL restrictions such as credentials, fragments, whitespace, malformed escapes, unsupported schemes, and overlong serialized locations in the source XML.
The extractor accepts at most 50,000 unique URLs and five million UTF-16 input code units. Crossing either bound fails the entire operation without truncation. If a production sitemap is near protocol limits, validate its actual uncompressed byte size separately and consider splitting it into smaller files referenced by a sitemap index.
Keep extraction separate from live-site checks
Successful extraction confirms that a valid loc appeared in the pasted XML and passed the disclosed validation rules. It does not check HTTP status, redirects, canonical tags, robots or noindex directives, page content, ownership, sitemap placement, the uncompressed file size on disk, or whether a search engine accepted the source file.
The Google Search Central sitemap documentation describes sitemaps as discovery aids rather than indexing guarantees. Use the extracted list to choose what to inspect, then inspect the live sitemap response and the relevant destination pages directly.
- Verify the live response, status, and redirect destination for important URLs.
- Review canonical, robots, and noindex signals at the page level.
- Confirm sitemap placement, access, and the actual response served to users and crawlers.
- Record separate findings before drawing conclusions about discovery, crawling, or indexation.
This separation keeps the workflow accurate: the sitemap supplies a structured inventory, the extractor reads that inventory, and independent live checks establish how the site and its URLs actually behave.
Related reading: UTM Builder on Android: Build Campaign URLs in Browser.