To get a sitemap for a website, check its robots.txt file or a standard XML endpoint, then copy the complete XML if you need its URLs as a list.

A sitemap is not the same thing as robots.txt. The robots file may point to one or more XML sitemap documents; the XML document is what lists locations for discovery. If you only need the sitemap file, save the response. If you need URLs for a spreadsheet, crawler checklist, redirect audit, log comparison, or migration review, convert the XML into a one-URL-per-line list.

The browser tool described below extracts pasted XML text. It does not discover a sitemap from a domain, crawl the site, or submit anything to a search engine.

get sitemap for website
Get Sitemap for Website: XML Retrieval Checklist

Start at robots.txt or a sitemap endpoint

Begin with files the site publishes. Open the site's robots.txt and look for a Sitemap directive, which gives the location of a sitemap document. If no directive appears, try /sitemap.xml. That path is a common convention, not a guarantee.

  • robots.txt may list a sitemap even when the XML file is not named sitemap.xml.
  • /sitemap.xml may contain either a urlset or a sitemapindex, so inspect the XML root.
  • Some indexes use another path, including /sitemap_index.xml; filenames are not standardized.

Site owners can also check CMS settings, deployment configuration, or server files for the generated sitemap path. If a public URL returns HTML, a login page, or an error, it is not usable as the XML document to paste.

Confirm which XML structure you found

A standard XML sitemap uses one of two root structures. The difference determines whether the extraction produces page locations or links to more sitemap files.

XML root Required location structure Extracted result Next step
urlset Each url item contains a direct loc child Page URLs listed in that sitemap file Check the live pages separately
sitemapindex Each sitemap item contains a direct loc child Child sitemap file locations Retrieve and process every child file separately

A sitemapindex is a directory, not a recursive bundle of every page URL. The extractor returns its direct sitemap locations; it does not fetch those files or expand their contents.

Retrieve and extract the sitemap

  1. Open the sitemap location found in robots.txt or at the site's XML endpoint. Confirm that the response is XML and identify whether its root is urlset or sitemapindex.
  2. Use the browser's page-source view or save the response to obtain the complete XML text. If the downloaded data is gzip-compressed .gz content, decompress it outside the tool before continuing.
  3. Copy the XML from one complete urlset or sitemapindex document. Do not paste only a remote sitemap URL, because the editor does not download it.
  4. Open the Sitemap URL Extractor, paste the complete XML into the editor, and run the extraction. It makes no network request, and parsing happens in the browser, so the XML is not uploaded.
  5. Review the detected root type, unique URL count, duplicate count, and complete output before copying anything.
  6. Copy the one-URL-per-line list for the audit. If the input was a sitemapindex, retrieve each child sitemap separately and repeat the process before treating the result as a page inventory.

Keep the source XML beside the extracted list. The side-by-side evidence helps you investigate a missing location, an unexpected duplicate, or a failed item instead of relying on an incomplete result.

Input rules that affect extraction

One successful run depends on valid document structure, valid loc values, and an input within the parser's disclosed limits.

  • Direct locations: In a urlset, each url item must contain a direct loc child; in a sitemapindex, each sitemap item must contain a direct loc child. An extension location such as image:loc is not substituted for a missing page loc.
  • Namespaces and optional fields: The default namespace form and a consistent prefix such as sm:urlset, sm:url, and sm:loc are supported. XML declarations and comments are ignored, and optional children such as lastmod do not change the extracted location.
  • Character references: The five predefined XML entities and valid decimal or hexadecimal numeric character references are decoded. Unknown entities, invalid Unicode scalar values, DTD declarations, and custom entity declarations cause the extraction to fail.
  • Complete markup: Nested markup inside loc, malformed XML, an incomplete item, or an incomplete root fails the whole run. The parser does not repair missing tags or return a partial list as complete, and errors identify the affected loc or item rather than silently skipping it.
  • URL requirements: Every loc must be 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.
Limit Rule
Document per run One urlset or sitemapindex XML document
Unique URLs At most 50,000 accepted URLs
Input size At most five million UTF-16 input code units
Serialized loc length Fewer than 2,048 characters per URL
Bound exceeded The entire operation fails; there is no truncation

After decoding, browser-standard serialization lowercases and validates hosts, removes default ports, and percent-encodes non-ASCII path characters when required. URLs that serialize to the same value are duplicates, and only the first occurrence is returned. This browser behavior follows the URL parsing model documented in the WHATWG URL Standard.

Interpret counts and normalized duplicates

The unique count is the number of accepted, deduplicated locations. The duplicate count is the number removed after URL normalization. First-seen order is preserved, so the output remains comparable with the source rather than being alphabetized.

Unexpected duplicates can expose default-port or host-case variants. Review those entries against the original XML, then compare the complete list with canonical URLs in your database, crawl results, analytics landing pages, or the previous release.

Run checks the extractor cannot perform

Use the list as a starting inventory, then verify the live site separately.

  1. Check each URL's live status and redirect behavior.
  2. Compare the page's canonical signal with the extracted location.
  3. Review robots directives and noindex directives for each relevant URL.
  4. Perform a separate indexing check rather than assuming inclusion means indexation.
  5. Inspect the live sitemap response, its placement, and whether it was accepted as a source file.

The extractor also does not check page content, ownership, sitemap placement, UTF-8 bytes on disk, or search-engine acceptance. If a production sitemap is close to protocol limits, validate the actual uncompressed byte size and consider splitting it into smaller files referenced by a sitemap index. The tool's UTF-16 input ceiling is not a substitute for checking the file's real uncompressed size.

Use the extracted list as audit evidence

Successful extraction confirms only that a location appeared in the pasted structure and passed the disclosed validation. It does not prove that the URL is crawlable, canonical, valuable, indexed, or ranked.

Google's sitemap build and submission guide presents XML sitemaps as discovery aids rather than indexing guarantees. Compare the extracted inventory with other site records, investigate mismatches, and document why each exception remains or should be corrected.

Because the widget is client-only, private staging locations or prelaunch URL inventories remain on the device unless you copy them elsewhere. The practical result is a clean list to support a broader SEO audit, not a claim that every listed page is searchable.

If you're weighing options, Do I Need an Email Address HTML Obfuscator? A Checklist covers this in detail.