Domain Extractor

Reduce a list of URLs to the domains behind them.

SEO Tools Free, no sign-up Runs in your browser

Domain Extractor tool

About the Domain Extractor

Domain Extractor takes a list of URLs and gives you back the domains. That sounds trivial until you have three thousand links and need to know how many distinct sites they come from, which is the question that actually matters when you are looking at a backlink export.

You can keep the full hostname, which treats blog.example.com and shop.example.com as different, or reduce to the root domain, which treats them as the same site. The root-domain mode understands multi-part public suffixes such as .co.uk and .com.au, so example.co.uk is not mistakenly shortened to co.uk.

The output can be deduplicated and sorted, and a count column shows how many URLs in your list pointed at each domain. That turns a flat list of links into a ranked picture of where they actually come from.

How to use the Domain Extractor

  1. Paste your URLsOne per line. Mixed protocols and stray whitespace are fine.
  2. Choose the levelFull hostname, or root domain with subdomains collapsed.
  3. Set your optionsRemove the www prefix, deduplicate, sort, and show counts.
  4. Copy or downloadTake the plain domain list, or a CSV with counts.

Features

  • Full hostname or root domain extraction
  • Handles multi-part suffixes such as .co.uk correctly
  • Optional removal of the www prefix
  • Deduplicate and sort
  • Count of how many URLs point at each domain
  • Reports lines that were not valid URLs
  • Copy as a list or download as CSV

Who uses this tool

The domain extractor is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:

  • Counting referring domains in a backlink export
  • Reducing a long link list to the sites behind it
  • Building a list of domains to contact for outreach
  • Checking which sites a page links out to most
  • Preparing a domain allow or block list

Frequently asked questions

What is the difference between a hostname and a root domain?

The hostname is everything before the path, including any subdomain, so blog.example.com. The root domain is the registrable part, example.com. Which you want depends on whether you count a subdomain as a separate site.

How does it handle .co.uk and similar suffixes?

Those are multi-part public suffixes, so the registrable domain is one level deeper. The tool recognises the common ones, which is why example.co.uk stays intact rather than collapsing to co.uk.

Should I strip the www prefix?

Usually yes when counting distinct sites, because www.example.com and example.com are almost always the same property. Keep it when you specifically care about which hostname was used.

What does the count column tell me?

How many URLs in your input pointed at each domain. In a backlink context that is the difference between a hundred links and a hundred different sites linking to you, which is a very different picture.

Are invalid lines dropped silently?

No. They are skipped and counted, and the message says how many could not be read as URLs.

Is this a DNS or WHOIS lookup?

No. It only reads the text of the addresses you paste. Nothing is requested over the network, so no information about your list leaves your device.

If the domain extractor is not quite what you need, these other free tools solve closely related problems.

URL Extractor

Extract all URLs from text or HTML, with anchor text and filtering options.

SEO Tools Use tool

Duplicate URL Remover

Remove repeated URLs, treating trailing slashes and tracking parameters as the same.

SEO Tools Use tool

URL Cleaner

Remove utm and click-tracking parameters, fragments and stray characters from URLs.

SEO Tools Use tool

URL Parser

Split a URL into every component, including a table of query parameters.

Developer Tools Use tool

Bulk Hyperlink Generator

Convert a whole list of URLs and anchor texts into HTML or Markdown links.

SEO Tools Use tool