On a Mac, you can extract URLs from a sitemap by copying its complete, uncompressed XML into the Sitemap URL Extractor, running the extraction, and copying a clean one-URL-per-line list. The browser-based tool accepts either a urlset document—which lists page URLs—or a sitemapindex document—which lists sitemap file URLs. It parses only direct loc children, decodes supported XML entities, normalizes valid web URLs, removes duplicate serialized values, and preserves the order in which each URL first appeared. Parsing stays in the browser, so the pasted XML is not uploaded to a server. This practical Mac workflow turns sitemap text into a crawler checklist, spreadsheet column, redirect-audit input, log-comparison file, or migration-review list. The key distinction is that extraction confirms a URL appeared in the pasted XML and passed the tool's validation; it does not confirm that the page is live, canonical, crawlable, valuable, or indexed. For a sitemap index, obtain and paste each referenced sitemap separately to collect all of its page URLs. The editor also does not download a sitemap from a URL or decompress a .gz file, so the source XML must be available as text first.

Prepare the Sitemap XML on Your Mac
Start by getting one sitemap document into plain-text form. The extractor does not fetch the file, so copy the XML before opening the tool. If the response needs special handling, this guide to getting a website sitemap XML as plain text provides a useful source-capture reference.
- Open one sitemap document. Open its address in the browser and use the browser's View Page Source command if the XML is displayed as a document. Select the entire source and copy it. Work with either a urlset file or a sitemapindex file, not the HTML page that surrounds the XML.
- Decompress a .gz file outside the tool. Save the file, open Terminal, and run gunzip sitemap.xml.gz. Open the resulting sitemap.xml in a plain-text editor and copy its contents. The browser tool does not fetch, decompress, or follow sitemap files.
- Copy one complete XML document. Include the opening and closing root, every item, and every required tag. If the root is sitemapindex, paste the index at this stage and plan to paste each child sitemap separately; its loc values point to sitemap files, not directly to pages.
Before extraction, confirm the root is urlset or sitemapindex and that each url or sitemap item has a direct loc child. The parser does not repair malformed XML or guess where a missing closing tag belongs. An incomplete paste can therefore fail the entire run instead of yielding a partial list.
Extract Sitemap URLs on Mac
- Paste the complete XML text. Paste the contents of one urlset or sitemapindex document into the editor. Make sure the opening root, all items, and the closing root are included.
- Run the extraction and inspect the result. Review the detected root type, unique URL count, duplicate count, and complete output before proceeding.
- Copy the one-URL-per-line list. Use the copy button to place the complete list on the clipboard. Then perform separate live status, canonical, robots, and indexing checks as needed.
When the parser identifies an error, use the reported loc or item to correct the source, then rerun the whole document. The result is intentionally all-or-nothing, which helps prevent an incomplete list from being mistaken for the complete sitemap.
Read the Counts and Root Type Before Copying
After a successful run, the output identifies the detected root type, the number of unique URLs accepted, and the number of normalized duplicates removed. The copy button places the complete list on the clipboard in first-seen order. This ordering makes the result easy to compare with the source rather than losing the sequence in which entries appeared.
| Root type | Direct loc value represents | Extracted result | Required next step |
|---|---|---|---|
| urlset | A page location | A one-URL-per-line page list | Check the live pages separately |
| sitemapindex | A child sitemap file location | A list of sitemap file URLs | Obtain and paste each child file separately |
The duplicate count is based on serialized URL values, so two source entries that normalize to the same value count as a duplicate and only the first is returned. Unexpected duplicates can reveal host-case or default-port variants. The resulting text is suitable for a crawler checklist, spreadsheet import, redirect audit, log comparison, or migration review; optional sitemap metadata such as lastmod is not carried into the URL-only output.
Understand the Parser's Validation Boundaries
Extraction uses deliberate structural and URL checks. They are not warnings to ignore: if a rule is broken, the operation fails instead of silently skipping the affected entry or presenting partial data as complete.
| Resource | Exact boundary | Over-limit behavior |
|---|---|---|
| Serialized URL length | Fewer than 2,048 characters | The URL is rejected |
| Unique URL count | At most 50,000 | The whole run fails without truncation |
| Input size | At most five million UTF-16 code units | The whole run fails without truncation |
Every decoded loc must be an absolute HTTP or HTTPS URL. Credentials, fragments, raw whitespace, malformed percent escapes, backslashes, relative paths, and other schemes are rejected. Browser-standard serialization lowercases and validates hosts, removes default ports, and percent-encodes non-ASCII path characters when required. That normalization follows the WHATWG URL Standard. If two decoded locations serialize to the same value, the first-seen entry remains and the later one is counted as a duplicate.
The parser accepts the common default namespace form or one consistent optional prefix, such as sm for sm:urlset, sm:url, and sm:loc. XML declarations and comments are ignored, as are optional children such as lastmod when locating the direct URL. An extension location such as image:loc is not substituted for a missing page loc because it describes a different resource role. Decoding accepts the five predefined named XML entities and valid decimal or hexadecimal numeric character references. Unknown entities, invalid Unicode scalar values, nested markup inside loc, DTD declarations, and custom entity declarations cause extraction to fail. An incomplete item or root also fails the entire run.
The input-size ceiling is measured in UTF-16 code units, not bytes on disk. 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. The extractor will not shorten an oversized input to fit.
Verify the URLs Against the Live Site
Extraction confirms structure, not indexation. Google's Build and submit a sitemap guidance describes sitemaps as discovery hints rather than indexing guarantees, so use the list as one input to a broader audit.
- Status and redirects: Verify the live HTTP response and redirect chain for each extracted URL.
- Canonical signals: Compare the page's canonical tag with the extracted URL and the preferred URL for that content.
- Robots directives: Review robots.txt, meta robots directives, and X-Robots-Tag headers separately.
- Indexing state: Use available site-owner indexing records and confirm that the page still serves the intended content.
- Sitemap delivery: Inspect the live sitemap response, sitemap placement, UTF-8 bytes on disk, and whether a search engine accepted the source file.
The extractor itself does not check HTTP status, redirects, canonical tags, robots or noindex directives, page content, ownership, sitemap placement, file encoding on disk, or search-engine acceptance. Keep those findings in separate columns or notes so a syntactic pass is never mistaken for a live-site approval.
Keep the Extracted List Audit-Ready
For a repeatable Mac audit, retain the original XML, record the detected root and unique and duplicate counts, copy the complete list, and attach the live-check results to the same inventory. Compare the URLs with canonical URLs from your database, crawl results, analytics landing pages, or a previous release. Because the widget is client-only, private staging or prelaunch URL inventories remain on the device unless you copy them elsewhere. This sequence gives you every direct loc value the tool can validate while keeping sitemap discovery separate from crawlability, canonicalization, and indexing decisions.
For a deeper look, see UTM Builder for Google Ads: Tag Campaign URLs.