Extract domain from URL
Transformed in your browser · nothing is uploaded
Reduces a list of URLs to their hostnames, drops the `www.` prefix and removes duplicates. The usual first step in auditing what a page or a document links to.
How to use the extract domain from url
Stripping www. is a judgement call and the right one for auditing: www.example.com and example.com are the same site to everyone except a DNS resolver, and keeping them separate makes a link audit twice as long for no benefit. Subdomains are kept, because blog.example.com and shop.example.com genuinely are different properties and often different teams. Note that the hostname is not the same as the registrable domain; reducing blog.example.co.uk to example.co.uk needs the public suffix list, which is a large data file and a different job.
Questions
It is the same site to everyone but a resolver, and keeping it separate doubles the length of a link audit for nothing.
Yes. A blog subdomain and a shop subdomain are genuinely different properties.
No, that needs the public suffix list to know that .co.uk is a suffix rather than a domain. Different job, much larger data.
Yes, it finds the URLs first and then reduces them.
No.