Domain Extractor from URLs

Extract the unique domain names from a list of URLs and count each one.

The Domain Extractor from URLs takes any collection of links and pulls out just the domain name from each one, discarding the protocol, path, query string, port, and any user information along the way. The result is a clean table of unique domains, each shown with the number of URLs that pointed to it, so you can see at a glance which sites a list actually references.

It is designed for SEO analysts, developers, security researchers, and marketers who regularly work with large URL lists from crawls, logs, backlink exports, or scraped pages. Rather than editing each link by hand or writing a throwaway script, you paste the whole list and immediately get a deduplicated domain inventory that is ready to sort, review, or export.

All parsing happens in your browser using JavaScript, so nothing you paste is uploaded or retained. An optional setting removes the leading www so that a domain and its www variant are counted as one, giving you an accurate picture of the distinct sites represented in your data.

Features

  • Extracts the host portion from each URL, stripping the protocol, path, query string, fragment, and port.
  • Handles links that begin with http, https, or a bare www prefix, so mixed lists are parsed consistently.
  • Deduplicates domains and counts how many URLs reference each one, revealing the most common sites.
  • Offers an optional remove-www setting so a domain and its www subdomain are treated as a single entry.
  • Ignores user information before an at sign in a URL so credentials never leak into the domain list.
  • Sorts results by frequency, surfacing the domains that appear most often at the top of the table.
  • Exports the domain table to CSV or XLSX, or copies it to the clipboard for further analysis.

How to use Domain Extractor from URLs

  1. Paste your list of URLs into the input box, one per line or separated by spaces.
  2. Decide whether to remove the leading www, merging www and non-www variants of the same domain.
  3. Read the table, where each row shows a unique domain and the number of URLs pointing to it.
  4. Use the stats to see how many URLs were processed and how many distinct domains they cover.
  5. Sort or scan the results to identify the most frequently referenced sites in your dataset.
  6. Export the domains to CSV or XLSX, or copy them, for reporting, filtering, or import elsewhere.

Benefits

  • SEO analysts turn a backlink or crawl export into a clean list of referring domains in seconds.
  • Developers extract the hosts from log files to understand which external services an app calls.
  • Security researchers quickly summarise the domains present in a suspicious or scraped URL list.
  • Marketers audit a set of tracked links to confirm which destinations campaigns are pointing to.
  • Anyone deduplicating URLs gets a concise domain inventory instead of a long, repetitive link list.
  • Local processing keeps sensitive URLs, including internal endpoints, private to your own device.

A URL packs several pieces of information into a single string: a scheme, optional credentials, a host, an optional port, a path, a query string, and a fragment. When you only care about which site a link points to, all of that surrounding detail is noise. This tool isolates the host and discards the rest, so a long tracked link and a short bare URL to the same site both collapse to the identical domain.

The www prefix is a frequent source of double counting. Many sites are reachable at both example.com and www.example.com, and treating them as separate domains inflates your unique count and clutters reports. The optional remove-www setting normalises these into one entry so your inventory reflects distinct sites rather than technical variants of the same address.

Because everything runs locally in your browser, your URL list is never uploaded, which matters when the links include internal endpoints, signed URLs, or private analytics. Note that the tool extracts the host exactly as written rather than resolving it, so it does not know about registrable-domain boundaries; if you need to group subdomains under their parent site, pair it with the Subdomain Extractor for a fuller picture.

Frequently asked questions

Related tools