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.
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.
- Paste the URL listPaste up to 5,000 lines of URLs, domains or mailto: links, for example from a backlink or log export.
- Choose the outputPick the per-line table, unique registrable domains, unique hostnames or a count per domain.
- 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.
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 toolsExtract all URLs from sitemap XML as a list, table or CSV
Test which URLs a robots.txt allows or blocks for a given crawler
Check URL length, parameters and tracking tags, and get a cleaner version
Turn letters or an emoji into favicon.ico, SVG and PNG icons with head code
Generate robots.txt rules, a sitemap line and AI crawler blocks as you type.
Convert a list of URLs into sitemap.xml with lastmod dates and duplicates removed