Skip to content
UniKit

Sitemap link extractor

Extract links from a sitemap with per-host “host xN” counts so the dominant site is obvious; entities are decoded so addresses are directly usable.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Sitemap XML

Result

The result can be copied directly.

Paste a sitemap to see the link list

Characters: 0 · Lines: 0

What this tool does

  • Extract URLs from a sitemap to feed a crawler or link checker.
  • Count unique addresses and hosts covered by a sitemap.
  • Include lastmod/changefreq to audit crawl priority settings.

Example

Input

<urlset><url><loc>https://example.com/</loc><lastmod>2026-01-02</lastmod></url><url><loc>https://example.com/a</loc></url><url><loc>https://other.test/b</loc></url></urlset>

Output

https://example.com/
https://example.com/a
https://other.test/b

# 域名分组
example.com x2
other.test x1

Besides the link list it appends “host xN” counts so the dominant site is obvious.

Frequently asked questions

How is host grouping computed?

From the host part of each URL; site-relative paths fall under `(relative)`.

Is ordering stable?

The link list keeps first-seen order; grouping lines sort by count desc, then host alphabetically.

Is `&amp;` preserved?

No — entities are decoded so the addresses are directly usable.

Does it handle gzipped sitemaps?

No, this works on XML text; unzip `.xml.gz` first.

Keywords:sitemap link extractorformatconverterdeveloper

Related tools