Skip to main content

domain-extractor

A domain extractor takes a list of URLs and outputs the domain (or registrable domain, e.g. example.com) for each, optionally separating subdomains and computing frequency, useful for SEO link audits, security incident analysis, and consolidating large reference lists. The ZTools Domain Extractor runs entirely in the browser, uses the Public Suffix List (PSL) to correctly identify registrable domains for complex TLDs (.co.uk, .com.au), supports input as a URL list or raw text, and exports a sorted list with frequency counts.

Use cases​

Extracted URLs from your blog posts; collapse to domains. See which domains you link to most; identify imbalance.

Backlink list from Ahrefs / SEMrush; collapse to root domains. Identify how many unique referring domains you have (a key SEO metric).

Security log domain analysis​

Extract domains from suspicious URLs in a phishing log; group by registrable domain to identify campaign patterns.

Subdomain enumeration​

Given a list of URLs from a single root domain, extract all subdomains for security or content audits.

How it works​

  1. Paste URL list or raw text β€” One URL per line, or free-form text. URL extractor runs first if needed.
  2. Parse each URL β€” Extract host portion. Handle scheme (http://), port (:80), path (/foo), query (?bar) β€” drop all but host.
  3. Apply PSL β€” Public Suffix List determines the "registrable domain". For "blog.example.co.uk", PSL says co.uk is the public suffix; registrable domain = example.co.uk.
  4. Optional: separate subdomain β€” Output two columns: subdomain (blog) and registrable domain (example.co.uk).
  5. Aggregate frequency β€” Count occurrences. Sort alphabetically or by frequency.

Examples​

Input: URLs: https://blog.example.com/a, https://shop.example.com/b, https://other.org/c

Output: Registrable domains: example.com (2), other.org (1).


Input: URL: https://api.user.example.co.uk

Output: Registrable: example.co.uk; Subdomain: api.user


Input: 500 URLs across many domains

Output: Top 20 domains by frequency; long tail of single-occurrence domains.

Frequently asked questions​

What is the Public Suffix List?

A community-maintained list (publicsuffix.org) of "effective top-level domains" β€” including compound suffixes like co.uk, com.au, github.io. Used by browsers to determine cookie scope and by tools to identify registrable domains correctly.

What's the difference between subdomain, domain, and TLD?

For "blog.example.co.uk": TLD = .uk, public suffix = co.uk, registrable domain = example.co.uk, subdomain = blog. PSL handles compound TLDs correctly; naive splitting on dots does not.

Why use PSL instead of last two segments?

"sub.foo.co.uk" with "last two segments" = co.uk (wrong; that's the suffix). PSL correctly identifies foo.co.uk as the registrable domain. Critical for cookie / security boundaries.

How are IP-address URLs handled?

Recognised separately. The "domain" field is the IP itself; no subdomain split.

Is the input uploaded?

No β€” client-side only. PSL is bundled, no network call.

Can I extract path or query?

Use the URL extractor + a parsing step. This tool focuses on hostname / domain analysis.

Tips​

  • For backlink analysis, count unique registrable domains (not unique URLs) β€” the SEO metric that matters.
  • Sort by frequency to identify your most-linked partners or most-suspect malicious sources.
  • Subdomain enumeration is great for security recon β€” combine with passive DNS or scanning tools.
  • Filter out your own domains before competitive analysis β€” internal links inflate counts.
  • Use the PSL-aware mode always β€” naive dot-splitting produces wrong results for international domains.

Try it now​

The full domain-extractor runs in your browser at https://ztools.zaions.com/domain-extractor β€” no signup, no upload, no data leaves your device.

Open the tool β†—


Last updated: 2026-05-05 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub