Skip to content

Free Domain Extractor

Extract root domains or full hostnames from pasted text and local files. Group duplicates, count occurrences, filter suffixes and export results privately.

✓ Free to use✓ No sign-up✓ Browser-based

Loading tool…

How to use the domain extractor

Extract root domains or full hostnames from pasted text and local files. Group duplicates, count occurrences, filter suffixes and export results privately.

  1. Paste text or import a TXT or CSV file. Use CSV options to choose a delimiter, column and header handling.
  2. Choose root domain or full hostname output, private suffix handling and international-domain display.
  3. Apply suffix, exclusion, minimum-count and result-text filters, then select Process locally.
  4. Review results and rejected candidates, then copy values or download TXT, CSV or JSON.

Who uses a domain extractor and why

A domain extractor helps whenever a pile of text hides the websites you actually care about. A marketer may export a referral report full of long URLs and want to know which sites sent traffic. An SEO specialist may paste a backlink export and need one clean line per linking website. A support or security team may review a log file and want a short list of every host that appears in it.

It also helps with plain housekeeping. If you are building an allow list, a block list or an outreach sheet, you usually want one entry per registrable domain, not dozens of near-duplicate URLs. The tool reads pasted text or a local TXT, CSV, HTML or LOG file, finds tokens that look like URLs or hostnames, and turns them into a tidy list you can copy or export.

A worked example with real input

Suppose you paste these lines: a sentence that mentions https://shop.example.co.uk/catalog and https://blog.example.co.uk/, then https://www.example.com/a, https://example.com/b, https://bücher.de, https://alice.blogspot.com and the broken entry bad..com.

With the default settings (root domain output, shared-hosting suffixes recognized, duplicates grouped, A to Z order), the result is four domains. alice.blogspot.com appears once, because blogspot.com is treated as a shared-hosting suffix and each blog counts as its own site. example.co.uk appears twice, since both the shop and blog subdomains roll up to it. example.com also appears twice, because www.example.com and example.com share the same root. The German domain is listed as xn--bcher-kva.de, or as bücher.de if you turn on Unicode display. The entry bad..com goes to the rejected list because it contains an empty label.

Switch the output to Full hostname and the same input keeps shop.example.co.uk, blog.example.co.uk and www.example.com as separate rows. Tick the option to remove a leading www and www.example.com merges with example.com.

How the extraction works

Each line is split into tokens, and only tokens containing a dot, an at sign or a scheme separator are considered. Trailing punctuation such as a final period or comma is trimmed. Each candidate is parsed as a web address, and every hostname label must follow DNS rules: letters, digits and hyphens, no leading or trailing hyphen, and no more than 63 characters per label. IP addresses are rejected because they are not domains.

To find the registrable root, the tool compares the hostname against a bundled copy of the Public Suffix List. That list knows that co.uk is a suffix, so shop.example.co.uk becomes example.co.uk rather than co.uk. If a suffix is missing from the bundled list, the entry is rejected unless you enable the option to allow unknown suffixes. The tool can handle up to 20,000 entries and 2,000,000 characters per batch.

Common mistakes to avoid

Do not assume that every extracted domain is live or owned by the business you expect. The tool reads text only; it never visits the sites. Turning off private suffix recognition can also surprise you, because every blogspot.com or similar hosted site will then collapse into a single root.

When importing a CSV, check the column number. A value of 0 reads every column, which can pull in unrelated URLs from notes or description fields. If your file has a header row, tick the skip header option so the column title is not treated as data.

Useful tips and limitations

  • A bundled Public Suffix List handles multi-part suffixes such as co.uk and optional shared-hosting boundaries.
  • Extraction does not check whether a domain is registered, available or reachable.
  • Sort by highest frequency to see at a glance which domains dominate a long referral or backlink export.
  • Use the exclusion field to drop your own domain and its subdomains so internal links do not crowd the results.

Common questions

Does the domain extractor recognize co.uk correctly?

Yes. It uses a bundled suffix-list snapshot to separate the registrable root from subdomains; shop.example.co.uk becomes example.co.uk.

Can domain extraction keep subdomains?

Yes. Choose Full hostname instead of Root domain. You can also remove a leading www and choose Unicode display.

Why was one of my entries placed in the rejected list?

Rejected entries break a rule such as an empty label, an invalid character, an IP address instead of a name, or a suffix that is not in the bundled list. The reason is shown next to each rejected item.

What does the minimum occurrences filter do?

It hides domains that appear fewer times than the number you set, which is useful when you only want sites that show up repeatedly in a log or report.

Can I extract domains from HTML source code?

Yes. You can import an HTML file or paste markup, and any tokens that look like URLs or hostnames are picked up. For full link analysis with internal and external classification, the Link Extractor is a better fit.

Text, local files and results are processed in your browser without AI or uploads. Listed domains, links, email addresses and IPs are not contacted. Save a local export before leaving.

Read our privacy policy · About ToolWorld Online