SEO ToolsA little help for every day

Search by name or task, such as JSON or percentage.

SEO Tools

Domain Extractor for URL Lists

Extract hostnames, root domains, subdomains and suffixes from a list of URLs, handling co.uk, com.au and similar. Output unique lists or counts per domain.

View all tools
ResultUpdates as you type
Lines5
Parsed5
Unique domains5
InputHostnameRegistrable domainSubdomainSuffixNote
https://www.example.com/pathwww.example.comexample.comwwwcom
https://tools.chatgpt.org.uk/tools/json-formattertools.chatgpt.org.ukchatgpt.org.uktoolsorg.uk
blog.example.co.uk/post?id=1blog.example.co.ukexample.co.ukblogco.uk
https://news.example.com.cn:8080/anews.example.com.cnexample.com.cnnewscom.cn
https://someone.github.io/projectsomeone.github.iosomeone.github.io—github.ioHosting-platform subdomain, counted as its own site

Registrable domains use common multi-part suffixes (such as co.uk, com.cn, com.au) and some hosting platforms, not the full Public Suffix List; check rare suffixes by hand.

How to use Domain Extractor for URL Lists

Paste URLs or bare domains, one per line; paths, ports and mailto: addresses are fine. Choose a detailed table, unique domains, unique hostnames or counts per domain. Results update as you type.

  1. Paste the URL listPaste up to 5,000 lines of URLs, domains or mailto: links, for example from a backlink or log export.
  2. Choose the outputPick the per-line table, unique registrable domains, unique hostnames or a count per domain.
  3. Copy and check the resultsCopy the list or table, and look over rows marked IP address, public suffix or could not parse.

Hostname, registrable domain and suffix explained

In https://tools.chatgpt.org.uk/tools/json-formatter the hostname is tools.chatgpt.org.uk, the suffix is org.uk, the registrable (root) domain is chatgpt.org.uk and the subdomain is tools. A simple “last two labels” rule would wrongly return org.uk, so the extractor recognises common two-part suffixes such as co.uk, org.uk, com.au and com.cn. Hosting platforms such as github.io, netlify.app and vercel.app are treated as suffixes too, so someone.github.io counts as a site of its own. IP addresses are kept as they are and labelled.

Typical uses and limits

Use it to de-duplicate referring domains from a backlink export, group crawl or log data by site, or count how many links point to each domain: the count view lists each registrable domain with its number of lines and the hostnames seen. Ports, paths, query strings and trailing dots are ignored, and mailto: addresses give the email domain. The suffix list covers common country and platform suffixes rather than the full Public Suffix List, so check unusual ones by hand. Internationalised domains appear in their xn-- Punycode form.

Accuracy and data handling

Generated tags and rules must match the real page content and the site's deployment environment. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

How do I extract the root domain from a URL?

Paste the URL and read the Registrable domain column, or choose Registrable domains (unique) for a de-duplicated list. https://www.bbc.co.uk/news gives bbc.co.uk.

Does it handle co.uk and other two-part suffixes?

Yes, for common ones such as co.uk, org.uk, ac.uk, com.au, co.nz and com.cn. It doesn't use the full Public Suffix List, so rare suffixes may need checking by hand.

How many URLs can I process at once?

Up to 5,000 lines; anything beyond that is left out with a warning. Lines that can't be parsed are marked in the table instead of stopping the whole run.

More SEO Tools

Related tools