Skip to domain extractor

Domain Extractor

Extract domains from URLs, emails, text, logs, and mixed input. Deduplicate hostnames, optionally normalize to registrable root domains, and export CSV, JSON, or TXT—processing stays in your browser.

Loading tool…

By Muhammad Abdullah Rauf · Founder, EverydayTools.proUpdated 2026-09-07· Reviewed by EverydayTools Editorial Team

Extract Domains from URLs, Emails, and Text

This Domain Extractor is built for bulk, mixed input—not a single-URL parser. Paste server logs, CRM exports, URL lists, HTML snippets, markdown, or notes that mix links and addresses in one field.

The scanner finds full URLs (including protocol-relative // links), markdown links, email addresses, JSON/HTML attributes, and dotted hostnames. IPv4 and IPv6 literals are skipped so lists stay hostname-focused.

Optional registrable-root mode rolls subdomains up to the domain you could register under a public suffix (the eTLD+1)—for example api.mail.google.co.uk → google.co.uk. Fast mode uses curated multi-part suffixes; Maximum accuracy loads the Public Suffix List (PSL) once in your browser. Export as CSV, JSON, or plain text.

For email-only lists, URL-only lists, or simple prose, use the focused extractors linked below—this page owns mixed and bulk workflows.

Paste mixed URLs, emails, logs, or text → deduplicated hostnames or root domains → CSV/JSON/TXT export in your browser.

How to Use the Domain Extractor

  1. Paste or upload mixed input

    Paste URLs, emails, server logs, CSV exports, HTML, or mixed notes—or upload a .txt/.csv/.log file (up to 2 MB). Pastes are capped around 500k characters.

  2. Choose Simple or Advanced options

    Simple mode covers quick deduplication. Advanced adds registrable-root normalization, Fast vs PSL suffix mode, TLD filters, frequency view, and optional custom regex.

  3. Review hostnames or root domains

    Sort A–Z or by frequency, filter by TLD, optionally validate hostnames, and group by registrable root when normalization is on.

  4. Copy or export

    Copy a newline list, or download TXT, CSV (optional count/root/TLD columns), or JSON. Clear the field when finished on a shared machine.

What This Domain Extractor Supports

Input shapes covered by the bulk/mixed scanner on this page.

InputExamplesResult
URLs and protocol-relative URLshttps://…, //cdn.example.comHostname from each link
Email addressesuser@mail.example.comDomain after @
Server logs and CSV filesAccess logs, spreadsheet exportsHosts found in cells/lines
HTML and markdownhref, src, [text](url)Linked hostnames
Hostnames and registrable domainsapi.blog.example.co.ukHostname, or eTLD+1 when normalized

Need only emails, only URLs, or only plain prose? Use the focused extractors in the comparison below.

Hostname vs Root Domain

How this tool treats DNS names versus registrable (eTLD+1) roots.

TermMeaningExample
HostnameFull DNS name as extractedwww.blog.example.com
SubdomainLabels left of the registrable domainwww.blog
Registrable / root domain (eTLD+1)Domain registrable under a public suffixexample.com
Public suffix / eTLDSuffix you cannot register alone.com, .co.uk, .github.io

Enable Normalize to registrable domain to collapse subdomains; choose Fast or Maximum accuracy (PSL) for suffix rules.

Fast vs Maximum Accuracy (PSL)

Choose root-domain mode based on accuracy needs and offline use.

ModeBest forTrade-off
Fast (curated list)Everyday .co.uk, .com.au, and common multi-part TLDsWorks offline after page load; may miss rare provider domains
Maximum accuracy (PSL)github.io, regional nic TLDs, unusual public suffixesDownloads Public Suffix List once in-browser; slightly slower first run

Domain Extractor vs Focused Extractors

This page owns mixed/bulk input; focused pages stay format-specific.

ToolInput shapeWhen to use
Domain Extractor (this page)Logs, emails, URLs, CSV, HTML, mixed textBulk paste; dedupe; root mode; CSV/JSON/TXT export
Extract Domain from EmailEmail address listsCRM or mailing-list exports only
Extract Domain from URLLine-oriented URLsSitemap or URL list imports
Extract Domains from TextPlain prose and snippetsBeginner text-only extraction

Domain Extraction Examples

Mixed CRM export (URLs + emails)

Input

Leads: alice@mail.partner.co.uk
See //cdn.partner.co.uk/assets
Article https://www.partner.co.uk/blog?id=1

Output

mail.partner.co.uk
cdn.partner.co.uk
www.partner.co.uk

Three hostnames from email, protocol-relative URL, and https link. With Normalize to registrable domain enabled, output collapses to partner.co.uk.

Server access log snippet

Input

203.0.113.42 - "GET https://api.service.co.uk/v1/data" 201
user@mail.example.com - "GET https://docs.example.com" 200

Output

api.service.co.uk
docs.example.com
mail.example.com

IP literals are ignored; URLs and email domains are extracted and deduplicated for allowlists or vendor audits.

HTML / markdown mix

Input

<a href="https://docs.example.com/guide">Docs</a>
[CDN](https://cdn.assets.example.com/app.js)
Contact ops@mail.example.com

Output

docs.example.com
cdn.assets.example.com
mail.example.com

Href attributes, markdown links, and email domains are collected in one pass—typical of mixed documentation pastes.

Who Is This Domain Extractor For?

SEO & content

SEO and content audits

Dedupe crawl or backlink exports to unique sites before reporting—collapse www and subdomains with registrable-root mode.

Sales & RevOps

Sales and RevOps lists

Pull company domains from mixed email exports and CRM dumps without writing a script.

Engineering & SRE

Engineering and SRE

Harvest hosts from logs, configs, or JSON when formats vary—faster than one-off regex.

Security

Security triage

List hostnames from tickets or paste-ins; analysis stays offline in your browser tab.

Workflow guides

Step-by-step chains that connect related tools for common tasks.

Audit a server access log for external domains

  1. Paste or upload access log lines—the extractor finds URLs in Referer and request fields.
  2. Cross-check single URLs with Extract Domain from URL for a URL-list-focused workflow. Extract Domain from URL
  3. Export the deduplicated domain list as CSV for spreadsheet analysis.

Plain-text notes → website names

  1. Paste informal prose, bullet lists, or meeting notes that mention sites in passing.
  2. Use Extract Domains from Text when you only need website names from prose—not full mixed-input hostnames. Extract Domains from Text
  3. Return here when the paste mixes URLs, emails, and logs for bulk deduplication and CSV/JSON export.

Email list → unique company domains

  1. Paste CRM or newsletter export with mixed columns.
  2. For email-only exports, Extract Domain from Email offers a focused one-click workflow. Extract Domain from Email
  3. Enable Normalize to registrable domain to collapse mail.* and www.* to one root per company.
  4. Export CSV with a count column to prioritize domains by frequency.

When to use Domain Extractor vs related tools

Use this Domain Extractor for mixed URLs, emails, logs, and exports. Switch to a focused tool when the input is already a single format.

Related toolUse this tool whenUse related tool when
Extract Domain from EmailYour paste mixes emails with URLs, logs, or CSV columns and you need bulk dedupe plus export.You only have an email address list and want a focused email-domain workflow.
Extract Domain from URLInput includes emails, HTML, logs, or messy multi-format text alongside links.You have a clean URL list (one link per line) and only need domain/hostname cleanup.
Extract Domains from TextYou need hostnames from mixed technical pastes with CSV/JSON export and PSL root mode.You only have plain prose or notes and want a simple registrable-domain list.

Common mistakes to avoid

Expecting raw Unicode domain labels in free text to always match

URL-shaped input and ASCII punycode (xn--…) work reliably. For IDN, paste the canonical https link or punycode hostname.

Using Fast mode for github.io or unusual suffixes

Switch to Maximum accuracy (PSL) under Advanced so registrable roots match the Public Suffix List.

Pasting multi-megabyte files without splitting

Uploads are capped at 2 MB and pastes around 500k characters; split very large logs and process in chunks.

Using this hub when you only have one input format

For email-only, URL-only, or plain-text-only lists, the focused extractors are simpler—keep this page for mixed/bulk work.

Frequently Asked Questions

How do I extract domains from URLs and emails in one paste?

Paste logs, CRM exports, or URL lists into the box—the scanner finds http(s) links, protocol-relative // URLs, email addresses, and bare hostnames. Results are deduplicated; turn on Normalize to registrable domain if you want one root per site (for example api.mail.google.co.uk → google.co.uk).

What is the difference between a hostname and a registrable (root) domain?

A hostname is the full DNS name (www.blog.example.com). The registrable domain is what you could register under a public suffix—often called the eTLD+1 (example.com, example.co.uk). This tool can show hostnames as extracted, then optionally roll subdomains up to that registrable root.

What input formats does the domain extractor support?

Mixed text: bare URLs, protocol-relative links, markdown links, email addresses, HTML/JSON attributes, server logs, CSV exports, and plain hostnames. That mixed/bulk coverage is what this page is for.

What is registrable-root domain extraction?

Registrable-root mode strips subdomains and returns the domain you would register (eTLD+1). For example, blog.company.co.uk becomes company.co.uk when suffix rules match. Use Fast mode for common multi-part TLDs or Maximum accuracy (PSL) for edge cases like github.io.

Can I extract domains from email lists?

Yes—paste addresses here as part of mixed input. If your file is email-only, Extract Domain from Email is the focused alternative; use this Domain Extractor when emails are mixed with URLs or logs.

How do I export the extracted domains?

Export as CSV (optional count, root, and TLD columns), JSON, or plain newline-separated TXT. CSV counts help prioritize domains that appeared most often.

Does it handle international domains (IDN) and punycode?

Yes when the input is URL-shaped or uses ASCII punycode labels (xn--…). The browser’s URL parser normalizes hostnames like the address bar. Raw Unicode labels only in prose may be missed—prefer pasted links or punycode.

Why are some domains missing from my results?

The extractor skips IPv4/IPv6 literals, drops candidates that fail hostname validation, and ignores strings that never look like a URL, email, or dotted hostname. Enable Maximum accuracy (PSL) under Advanced for unusual TLDs and provider domains like github.io.

How accurate is Fast (curated list) vs Maximum accuracy (PSL)?

Fast mode uses a curated set of multi-part suffixes (e.g. .co.uk, .com.au) for speed and offline use. PSL mode downloads public-suffix data and matches the longest registrable suffix—better for edge cases. Both modes stay in your browser.

Are www and non-www treated as the same domain?

By default www can be kept as part of the hostname. Options let you include or strip www, dedupe www vs non-www, and normalize case.

Is pasted text uploaded when I use this domain extractor?

No. Parsing, filtering, and export run in your browser tab. Nothing is sent to EverydayTools servers for this tool. Optional PSL mode only fetches a static suffix file from the site CDN.

What are the size limits?

Uploads are limited to about 2 MB (.txt/.csv/.log). Pastes are capped around 500k characters so tabs stay responsive. Split very large files if the UI warns you.

When should I use the email, URL, or text extractors instead?

Use Extract Domain from Email for email-only lists, Extract Domain from URL for clean URL lists, and Extract Domains from Text for plain prose. Stay on this Domain Extractor for mixed/bulk input with dedupe, root mode, and multi-format export.

Privacy, accuracy, and trust

Privacy

Domain Extractor (/domain-extractor) runs in your browser when supported—pasted text and uploads are not sent to EverydayTools servers for extraction.

Accuracy

Hostname validation follows browser URL parsing and conservative hostname rules. Registrable-root output depends on Fast curated suffixes or Public Suffix List (PSL) mode as selected.

Results are for planning and analysis. Verify critical allowlists or security decisions against authoritative DNS and policy sources.

Advertisement

Reviewed by EverydayTools Editorial Team on 2026-09-07.

Same workflow or intent — pick the next step without leaving the site.

Frequently opened tools from the same category.

People also use

Cross-category tools others open in the same session.

Continue learning

Guides and walkthroughs that reference this tool.

Explore categories

Browse full tool collections by topic.