Domain Extractor
Extract hostnames from URLs or text. Remove duplicates and www, sort the list, and copy a clean list of domains.
Extract hostnames from URLs or text. Remove duplicates and www, sort the list, and copy a clean list of domains.
When you only need the website behind a list of links, extracting the hostname is the quickest route. Paste URLs, or text that contains URLs, and get one hostname per line.
You can remove duplicates and the www prefix, and sort the list alphabetically.
A URL has several parts: scheme, optional credentials, hostname, optional port, path, query and fragment. The hostname is the portion that DNS resolves, and this tool returns only that part, lowercased by the URL parser. A hostname can include subdomains, so blog.example.org and shop.example.org are different results, even though both belong to example.org. The tool relies on the browser URL parser, which also handles uppercase input and strips ports and credentials.
Getting the registrable domain, often called the root or eTLD+1, is harder than it looks. For example.co.uk, the public suffix is co.uk, not uk, so a simple rule of taking the last two labels would give the wrong answer. Correct handling needs the Public Suffix List, which is maintained by Mozilla and updated often. Because this tool does not bundle that list, it returns full hostnames, and you can group them yourself with a spreadsheet or a dedicated library.
The full hostname, for example blog.example.org. Finding the root domain needs a list of public suffixes, which this tool does not include.
They are dropped. Only the hostname is returned.
Yes. Any http or https links in the text are used. Lines without a scheme are treated as one URL each.
No. It is processed in your browser.
Yes. They are valid hostnames to the URL parser, so an address like 192.168.1.1 or localhost is returned as it is, without port or path.
The tool returns the full hostname. To get only the root domain you would need the Public Suffix List, so remove subdomains afterwards with a spreadsheet or script.