To generate a sitemap for a website, create an XML file from a reviewed list of URLs, then verify its structure; a sitemap URL extractor can perform that verification but cannot create the XML.
A sitemap gives search engines a set of URLs to discover, but it does not guarantee that those pages will be crawled, indexed, or ranked. The safest workflow separates creation from validation: build the file from known, intentional URLs, inspect the completed XML, and then check the live site.

Choose the correct starting point
Your starting point determines which workflow makes sense. A plain URL list requires XML generation, while existing sitemap XML requires extraction and review. Do not treat a sitemap index as though it contains every page on the site.
| Your starting point | Correct workflow | Important boundary |
|---|---|---|
| Reviewed list of page URLs | Generate XML, then extract and verify it | The list should reflect intentional, discoverable destinations |
| Existing urlset XML | Extract its direct loc values | The result confirms valid locations, not live indexation |
| Existing sitemapindex XML | Extract the child sitemap file locations | Obtain and inspect each child file separately |
| Remote or compressed sitemap | Retrieve and decompress it outside the extractor | Paste XML text, not a remote address or .gz data |
For the creation stage, the XML Sitemap Generator is outside the Sitemap URL Extractor's documented functionality. Create the XML separately, then paste one complete urlset or sitemapindex document into the extractor to review its direct loc values.
Build a reviewable URL inventory
Begin with a list that reflects what the website is intended to expose for discovery. A sitemap is not a replacement for deciding which pages belong in it, and a large URL count does not make the inventory more accurate.
- Confirm that each candidate has a stable, intended destination rather than a known redirect or accidental variant.
- Exclude private, blocked, or noindex pages when they are not meant to appear in search results.
- Review parameter, casing, trailing-slash, and host variants so only the preferred form is listed.
- Keep the original inventory so a later sitemap can be compared with database records, analytics landing pages, or an earlier release.
Keep the source list under version control or in the same project records as the generated XML. That makes later changes reviewable and helps distinguish an intentional URL addition from an accidental inclusion. Live canonical and robots decisions should be confirmed separately because URL extraction does not make those judgments.
Create the XML sitemap
Choose the structure that matches the file’s purpose. A urlset directly lists page URLs. A sitemapindex lists sitemap file locations and acts as a directory rather than a recursive bundle of every page. In either structure, each entry must contain its own direct loc child.
Create the XML separately, then save the complete document so it can be pasted into the extraction step. Save the complete document so it can be pasted into the validation step. Keep one urlset or sitemapindex document per extraction run; the extractor does not combine separate XML files automatically.
Use a normal default namespace or one consistent prefixed form such as sm:urlset, sm:url, and sm:loc. Optional children such as lastmod do not change the location extracted from an entry. An extension location such as image:loc describes another resource role and is not substituted for a missing page loc.
Extract and verify the generated file
- Obtain the complete XML text. Work with one complete urlset or sitemapindex document. If the sitemap is compressed, decompress the .gz file before continuing. If it is available at a URL, retrieve the XML separately because the extractor does not download remote files.
- Paste the XML into the editor. Open the Sitemap URL Extractor, paste the full document, and run the extraction. Parsing happens in the browser, and the pasted XML is not uploaded. Private staging locations therefore remain on the device unless you copy them elsewhere.
- Check the detected structure and counts. Review whether the root is a urlset or sitemapindex, how many unique URLs were accepted, how many normalized duplicates were removed, and whether the complete output appears below the results.
- Review the extracted locations. Confirm that the output contains the intended pages or child sitemap files. The extractor preserves first-seen order, removes URLs that serialize to the same value, and reports normalized duplicates rather than silently keeping every occurrence.
- Correct any source error. The parser identifies the numbered item or location associated with many failures. It does not repair malformed XML, guess where a missing closing tag belongs, or present a partial list when the document is incomplete. Correct the XML and run the extraction again.
- Copy the complete one-URL-per-line output. Use it for a crawler checklist, spreadsheet import, redirect audit, log comparison, or migration review. Then perform separate checks for live status, redirects, canonical tags, robots directives, and indexing.
Understand the extraction boundaries
The extractor is intentionally strict. Understanding its accepted formats and limits helps distinguish a source problem from a genuine validation result.
| Check | Accepted condition | Result if the condition is not met |
|---|---|---|
| Document structure | One closed urlset or sitemapindex with complete entries and direct loc children | The whole extraction fails rather than returning a partial list |
| Namespace | The default namespace or one consistent optional prefix | Inconsistent or unsupported markup causes a parsing failure |
| XML declarations and comments | These may be present | They are ignored and do not alter extracted locations |
| Entities | The five predefined named XML entities and valid decimal or hexadecimal numeric character references | Unknown entities, invalid Unicode scalar values, DTDs, and custom entity declarations fail the run |
| loc content | Plain text without nested markup | Nested markup or a missing direct loc fails; extension locations are not substituted |
| URL form | An absolute HTTP or HTTPS URL shorter than 2,048 characters | Credentials, fragments, raw whitespace, malformed percent escapes, backslashes, relative paths, and other schemes are rejected |
| Unique URL count | At most 50,000 unique URLs | The entire operation fails without truncation |
| Input size | At most five million UTF-16 input code units | The entire operation fails without truncation |
Browser-standard serialization lowercases and validates hosts, removes default ports, and percent-encodes non-ASCII path characters when required. URLs that become the same serialized value count as duplicates, and only the first occurrence is returned. Unexpected duplicates can therefore reveal host-case or default-port variants rather than repeated pages with genuinely different addresses.
The tool also refuses to repair malformed XML or infer missing structure. That behavior is useful for an audit because it prevents a damaged document from being presented as a complete sitemap. If a production file approaches protocol limits, validate its actual uncompressed byte size and consider splitting it into smaller files referenced through a sitemap index.
Check the live site before claiming success
Successful extraction establishes only that a location appeared in the pasted structure and passed the tool’s disclosed validation. It does not prove that the URL is crawlable, canonical, valuable, indexed, or ranked. Inspect the live sitemap response and the relevant pages separately.
- Check the sitemap’s live response, actual uncompressed size, HTTP status, and redirects.
- Compare each important page’s canonical tag, robots directives, and noindex signals with the extracted inventory.
- Compare the list with canonical URLs in a database, crawl results, analytics landing pages, or the previous release.
- For a sitemapindex, retrieve every referenced child sitemap and repeat the XML and live checks separately.
Google’s Build and submit a sitemap guidance provides the broader publishing context. Sitemaps remain discovery aids rather than indexing guarantees, so search-engine acceptance, inclusion, and indexing must each be evaluated independently.
After publishing, retain the reviewed URL list, the generated XML, and the extraction results together. Update the sitemap when the intended inventory changes, compare unexpected additions or removals with source records, and repeat the live checks whenever canonical or robots behavior may have changed. This turns sitemap generation into a controlled release process rather than a one-time file export.
For a deeper look, see Link Extractor From Website Source: SEO Workflow.
For a deeper look, see XML Sitemap Generator Alternative for Local URL Lists.