About the Domain Extractor
A long list of links becomes much easier to understand once you know which sites they come from. This domain extractor takes a list of URLs and returns their domains, either the full hostname or the root domain, removes duplicates and counts how many times each appears, so a backlink export of thousands of rows becomes a short list of distinct sites. It handles multi-part suffixes such as .co.uk correctly when finding the root domain, and it can drop the www prefix. Use it for link audits, competitor research or cleaning up email lists by domain. To gather URLs from text first, use the URL Extractor, and for removing repeats, the Duplicate URL Remover.
Two levels of detail are offered. Hostname mode keeps every subdomain distinct; root mode folds a company's blog, shop and help centre into one entry. Choose hostname mode for technical work, such as checking which subdomains carry links, and root mode for counting organisations. Country endings made of two parts, like .co.uk or .com.au, are recognised in root mode, so a site such as example.co.uk keeps its own name.
Repeats can be collapsed, the list put in order, and a tally added beside each site. Suddenly thousands of links become a short league table of sources, the view that link audits and outreach plans depend on. Download it as CSV and the counts open straight into a spreadsheet for sorting or charting. A list of domains is also far shorter than the list of links it came from, which makes it much easier to review by eye.
How to use the Domain Extractor
- Paste the addressesOne per line; mixed http and https, trailing slashes and stray spaces are all fine.
- Pick the levelKeep the full hostname, or reduce everything to the root domain so each organisation appears once.
- Set the optionsRemove www, drop duplicates, sort the list alphabetically and show how often each domain appears.
- Take the listCopy the domains or download a CSV that includes the counts.
Domain Extractor features
- Full hostname or root domain
- Correct handling of endings such as .co.uk
- Optional removal of www
- Duplicates removed and the list sorted
- Count of addresses for each domain
- Lines that are not valid addresses reported
- Clipboard list or spreadsheet download
Common uses
- Totting up the distinct sites in an Ahrefs, Semrush or Search Console link export
- Reducing a long list of links to the sites behind them
- Building a list of websites to contact for outreach
- Seeing which external websites an article or page links out to most often
- Preparing an allow list or block list of domains for a firewall, email filter or disavow file
Extracting domains in practice: counting referring domains, Pakistani suffixes, email lists, outreach without duplicates and hosted subdomains
Many SEO and marketing questions are about sites rather than individual pages: how many websites link to us, which companies are on our mailing list, which referrers send traffic. Reducing long lists of URLs to domains answers them. This guide counts referring domains from a backlink export and covers Pakistani domain suffixes, email lists, outreach lists and subdomains on hosted platforms.
A worked example: counting referring domains
A site owner exports the list of sites linking to them, thousands of individual URLs from many pages on each linking site. Extracting root domains with counts shows how many distinct websites link to the site and which link most often. One domain with hundreds of links, such as a forum signature or a sitewide footer, explains a large share of the total without representing hundreds of separate endorsements.
Pakistani domain suffixes
Many Pakistani sites use two-part suffixes such as .com.pk, .edu.pk, .gov.pk and .org.pk. A root domain is the name just before that suffix, so hec.gov.pk is a site in its own right, not part of gov.pk. Check that results treat these suffixes correctly, especially if your list includes less common ones, before relying on the counts.
Email lists
Extracting the domains from a list of email addresses shows how many contacts use personal providers, such as gmail.com, and how many use company domains. For business-to-business outreach, the company domains reveal which organisations are already engaged, and counting them shows where several contacts belong to the same company.
Outreach without duplicates
When contacting sites for partnerships or reviews, reducing a prospect list to unique domains avoids emailing the same site several times about different pages, which looks careless. Keep the best page for each domain as the reference in your message.
Analytics referrers
Referral reports often list full URLs of the pages that sent visitors. Extracting domains groups those visits by site, showing which websites, forums and directories genuinely send traffic. That information guides where to invest time in relationships and content.
Subdomains on hosted platforms
Subdomains on platforms such as blogspot.com belong to different people, so example.blogspot.com and another.blogspot.com are separate sites. The public suffix list, which tools use to identify root domains, marks some such platforms specially. Check how your results treat them before counting each as a separate site or merging them together.
Keeping www consistent
Treat www and non-www versions as the same site when counting, since they almost always are. Stripping www before deduplicating prevents the same site appearing twice in a report with slightly different names.
Investigating unknown domains
The extractor only processes text; it does not look up ownership or check whether a domain is active. For unfamiliar domains in a backlink list, visit them carefully or check them with search operators before deciding whether they are relevant sites or spam.
Common mistakes
- Counting backlinks instead of referring domains.
- Splitting two-part suffixes such as .com.pk incorrectly.
- Emailing several pages of the same site separately.
- Treating hosted subdomains inconsistently.
Related tools
To sort domains alphabetically or by extension, use Domain Sorter. To remove repeated domains, try Duplicate Domain Remover, and to keep or remove particular extensions, TLD Filter.
Competitor research
Exports of sites linking to competitors, from link research tools, can be reduced to domains and compared with your own referring domains. Sites that link to several competitors but not to you are natural candidates for outreach, such as industry directories, local news and association websites.
Spotting spam patterns
Backlink lists often include spammy domains: scraper sites, unrelated foreign directories and auto-generated pages. Search engines say they ignore most such links, and disavowing is rarely necessary unless there is a manual action or a clear pattern of paid links. Seeing them grouped by domain helps you judge calmly.
Counting by extension
After extracting domains, filtering by extension shows where links or contacts come from, such as how many are Pakistani sites ending in .pk compared with international ones. This helps local businesses see whether they are building relevant local presence.
International domains
Domains in non-Latin scripts may appear in their xn-- Punycode form in exports. Converting them back to readable form makes reports understandable, and confirms whether an unfamiliar xn-- domain is a legitimate international site or a look-alike.
Monthly snapshots
Saving the list of referring domains each month and comparing counts shows whether a site's link profile is growing naturally. A steady rise in relevant domains is a healthy sign, while a sudden jump from unknown sites is worth investigating.
Before importing into other tools
When importing contacts or prospects into a CRM or outreach tool, deduplicate by domain first and decide which contact represents each organisation. Clean imports avoid duplicate records that confuse follow-ups and inflate counts in reports.
Sharing results
When sharing domain counts with clients or colleagues, include the date and the source of the data, such as which report or tool export was used. Counts differ between tools, and noting the source prevents confusion when two reports appear to disagree.
Privacy
Extraction runs in your browser. Your lists are not uploaded or stored.
Frequently asked questions
How is a hostname different from a root domain?
A hostname is the full machine name ahead of the path, prefix included, such as blog.example.com. The root domain is the part you register, example.com. Which one you need depends on whether subdomains count as separate sites for your purpose.
How are endings like .co.uk dealt with?
Such endings span two labels, which pushes the buyable name one label further left. Familiar endings of this kind are built in, so a British company domain survives with its name attached.
Should www be removed?
In most counts, yes: the www and bare forms of a domain are almost always one website. Keep it when it matters which exact hostname a link used.
What does the count column show?
How many of your addresses belonged to each domain. For backlinks, it distinguishes one enthusiastic site linking many times from a broad base of different supporters.
Are invalid lines dropped without warning?
No. They are skipped and counted, and a message tells you how many lines could not be understood as addresses, so you can look for typos or stray text.
Does the tool look up DNS or WHOIS records?
No. It works purely on the characters you provide. No network requests are made, so nothing about your list, your clients or your competitors leaves your device.