Skip to content
UniKit

Deduplicate URLs by Registrable Domain

Merge subdomains and deduplicate links by registrable domain, recognising 196 common second-level suffixes such as co.uk and com.cn, keeping either the first or the last occurrence.

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

URL list

Deduplicated by registrable domain: www.example.com, blog.example.com and example.com count as one domain. Invalid lines are dropped and counted.

Deduplicated URLs

One link per registrable domain; everything else is copied through unchanged.

Enter a URL list to deduplicate it

What this tool does

  • Deduplicate links from a search result or ad report by registrable domain before reviewing the sites one by one
  • Collapse a crawl where a single site appears under dozens of subdomains down to one representative link per site
  • Clean a submission or backlink list: a.example.com and b.example.com count as the same company

Example

Input

https://www.example.com/a
https://blog.example.com/b
https://other.test/c

Output

https://www.example.com/a
https://other.test/c

The first occurrence is kept by default; the two example.com subdomains collapse into one entry while other.test stays separate.

Frequently asked questions

How is the registrable domain determined?

The last two labels of the hostname are checked against a built-in table of 196 common second-level suffixes (co.uk, com.cn, com.hk, com.au …). On a match the last three labels are used — shop.example.com.cn belongs to example.com.cn — otherwise the last two are used, so a.b.example.com belongs to example.com.

Why are some domains merged more aggressively than expected?

The built-in table is a hand-curated list of common public suffixes, not the full Public Suffix List. Private suffixes such as github.io or vercel.app are not included, so a.github.io and b.github.io are treated as the single domain github.io. Use a dedicated PSL library when exact rules matter.

What happens to invalid lines?

Lines that cannot be parsed as http/https links (plain text, ftp:// links, missing hostname) are dropped and counted as invalid lines instead of failing the whole batch. Only when no valid link remains does the tool report that nothing was found.

Is the original link kept or rewritten?

The kept link is normalised by the URL parser: the hostname is lower-cased while path, query string and #hash are preserved. Duplicate links are dropped entirely — no redirects are followed and no short links are resolved.

Are my links uploaded?

No. Deduplication is a pure function running in your browser: no requests and no stored data.

Keywords:registrable domaindeduplicate urlsdomain dedupe

Related tools