Paste a list of links, a backlink export or any text that mentions websites, and get a clean list of domains. Keep full hostnames like blog.example.com or reduce everything to root domains like example.com (co.uk and other two-part endings handled), with duplicates removed and a count for each domain.
Last updated:
Extract
Enter your values to see the result.
Advertisement
Advertisement
How to use the Extract Domains from URLs
Paste your URLs or any text containing links into the box.
Choose what to extract: full hostnames or root domains.
Set the options for www, duplicates, counts and email addresses.
Pick a sort order and format (one per line, comma-separated or CSV).
Click Copy results to copy the domain list, or download the count table as CSV.
A web address follows the pattern scheme://user@host:port/path?query#fragment (defined in RFC 3986). Only the host identifies the website, so the tool drops the scheme, any login part before @, the port, and everything from the first /, ? or #. Host names are not case-sensitive, so they are lower-cased before counting: Example.COM and example.com are the same domain.
To find the root domain, the tool reads the host from the right. The last label is the top-level domain (.com, .org, .de). If the last two labels form a known public suffix such as co.uk, one more label is kept. Everything to the left of the root (like www, blog or shop) is a subdomain.
Common uses
Backlink audits: turn thousands of linking URLs into a list of unique referring domains and see which sites link most.
Disavow or block lists: collect root domains to add as domain: entries or firewall rules.
Analytics and referrer clean-up: group referral URLs by site.
Email lists: see which companies or providers your contacts use.
Frequently asked questions
What is the difference between a hostname and a root domain?
The hostname is the full name of the server in the URL, such as blog.example.com or www.example.com. The root (registrable) domain is the part someone actually registers, such as example.com. Choose root domain mode when you want to know which websites link to you, and hostname mode when subdomains matter.
How does it handle domains like bbc.co.uk?
Some country endings have two parts (co.uk, com.au, co.jp, com.br and many more). The tool keeps three labels for those, so news.bbc.co.uk becomes bbc.co.uk instead of the meaningless co.uk. It also treats shared hosting suffixes such as github.io, pages.dev and blogspot.com as endings, so each site on them stays separate.
Do the URLs need to start with http:// or https://?
No. Links like www.example.com/page, example.org/about and even domains written inside a sentence are recognised. URLs with other schemes such as ftp:// work too.
Will it pick up email addresses?
Yes by default: [email protected] gives example.com. Untick “Include domains from email addresses” to skip emails and only count web links.
Why is a line marked as having no domain?
The line did not contain anything that looks like a host name with a valid ending, for example plain words or a file name like report.pdf. Those lines are listed so you can check them; they do not stop the rest of the list from being processed.
Is the root domain list 100% accurate for every country?
It covers the common two-part endings and popular hosting platforms, which handles the vast majority of real link lists. The full Public Suffix List has thousands of rare entries, so a very unusual regional ending may be shortened to two labels. Hostname mode always keeps the exact host.
Is my URL list uploaded anywhere?
No. The extraction runs with JavaScript in your browser, so client lists, backlink exports and private links never leave your device.
Are all the tools on FreeToolCabin tested for quality and accuracy?
Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.