Skip to content
UniKit

Domain extractor and counter

Extract the registrable domain from a list of URLs and count how often each appears, with a multi-label public suffix list (com.cn, co.uk, com.tw …) and per-line error reporting.

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

URL list

Domain counts

Each line prints "registrable domain + count". Multi-label suffixes are handled: news.sina.com.cn counts as sina.com.cn and www.bbc.co.uk as bbc.co.uk.

Paste a URL list to see the domain counts

URLs: 0 · Domains: 0 · With subdomain: 0 · Skipped lines: 0

What this tool does

  • Compress an access log, backlink list or ad report into "registrable domain + count" to see where traffic concentrates.
  • Count how often a brand domain appears during a competitor or channel review, while dropping bad rows.
  • Merge multi-label suffixes correctly: news.sina.com.cn and sina.com.cn become the same domain.
  • Measure how dirty a URL list is — unparseable lines are listed separately on the page.

Example

Input

https://www.baidu.com/s?wd=uni
http://m.baidu.com/index
https://news.sina.com.cn/a
https://www.bbc.co.uk/news

Output

baidu.com	2
bbc.co.uk	1
sina.com.cn	1

Lines are tab separated so they paste straight into a spreadsheet; equal counts are ordered alphabetically.

Frequently asked questions

How is the registrable domain chosen?

The URL hostname is normalised (lower case, no port), then checked against a public suffix list: when the last two labels are themselves a public suffix (com.cn, co.uk, com.tw, co.kr and 30+ more), one extra label is included. So news.sina.com.cn becomes sina.com.cn and example.com.tw stays example.com.tw instead of the wrong com.tw.

What happens to unparseable lines?

They are skipped and counted; up to 20 original lines are listed on the page so you can fix them. As long as one line parses, the batch still succeeds — an error is raised only when nothing can be parsed.

Which lines count as invalid?

Hostnames without a dot that are not localhost (such as not-a-url), URLs containing user credentials, and lines whose scheme cannot be parsed. IP addresses (including IPv6) and localhost are accepted and kept as they are.

Are subdomains merged?

Yes: www.baidu.com and m.baidu.com both count towards baidu.com and their counts add up. A separate statistic reports how many URLs originally carried a subdomain.

How many lines can I process?

Up to 2000 lines per run; longer lists should be split to keep the browser responsive. Everything runs locally, so the URLs are never uploaded.

Keywords:domain extractorcount domains in url listregistrable domain

Related tools