XML Sitemap Viewer

Inspect an XML sitemap.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste the contents of a sitemap.xml and press Run. The tool reads every loc entry and returns the URLs as a JSON list.

How to use

1
Step 1
Open your sitemap in a browser tab and copy the XML.
2
Step 2
Paste it into the input box and press Run.
3
Step 3
Read or copy the list of URLs.

How it works

The tool reads the text inside every loc tag, trims it, and returns one object per address. XML entities such as & in an address are decoded, so a ?a=1&b=2 address comes back as ?a=1&b=2. It does not parse the rest of the XML, so lastmod, changefreq and priority are not shown. A sitemap index lists child sitemap addresses in loc tags, and those are returned the same way.

Worked example

Two entries

Input
<urlset><url><loc>https://a.com/</loc><lastmod>2024-01-01</lastmod></url><url><loc> https://a.com/b </loc></url></urlset>
Output
[ { "loc": "https://a.com/" }, { "loc": "https://a.com/b" } ]
Walkthrough
Both loc values are returned and the extra spaces around the second one are trimmed. The lastmod value is ignored.

Limitations

  • Paste the XML; the tool does not fetch a sitemap from a URL.
  • Shows loc values only.
  • Does not validate the XML or check that URLs respond.

Questions

How do I read a sitemap?
Copy the XML from the sitemap page, paste it here and press Run.
Does it show last-modified dates?
No, only the addresses.
Can it read a sitemap index?
Yes, the child sitemap addresses are listed as loc values.

Features

  • Lists every loc address
  • JSON output
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Google Search Console Training trailer

    Google Search Central

    Series overview for Search Console workflows.

    Watch on YouTube
  • 3 Tips for Crawling Errors

    Google Search Central

    Crawl health pairs with slug, meta, and schema helpers.

    Watch on YouTube