XML Sitemap Viewer
Inspect an XML sitemap.
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
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?
Does it show last-modified dates?
Can it read a sitemap index?
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 YouTube3 Tips for Crawling Errors
Google Search Central
Crawl health pairs with slug, meta, and schema helpers.
Watch on YouTube
- SEO Starter Guide
Google Search Central
Official starter guide for titles, snippets, and crawl basics.
- The Open Graph protocol
ogp.me
OG tags used by social/SEO preview tools.