Subdomain Extractor

Extract every subdomain from URLs, logs, or text. Useful for asset discovery, security recon, and SEO subdomain audits.

βœ“ Free foreverβœ“ No signupβœ“ Runs in your browserβœ“ 20MB / 3,000+ domains

Extract Domains Now

Step 1 β€” Choose input method

πŸ’‘ Quick load a sample to see how it works:

πŸ“

Click to upload or drag & drop

TXT Β· CSV Β· HTML Β· JSON Β· XML Β· LOG Β· MD (Max 20MB)

Step 2 β€” Configure extraction

Source Type

Domain Mode

TLD Filter

Extras

Domain Level

Step 3 β€” Extract

πŸ”
Subdomain ExtractorKeep the full hostname hierarchy for attack-surface mapping, subdomain enumeration, or CDN inventory. The opposite of root-only mode.

What This Tool Does πŸš€ Extract now

Unlike the Root Domain Extractor (which strips subdomains), this tool preserves the full hostname β€” so api.v2.example.com stays as-is rather than being reduced to example.com. Ideal when you care about which specific host was referenced.

How to Extract Subdomains πŸš€ Extract now

  1. Paste your text or URLs above (or upload a file).
  2. Check Keep subdomains in the Domain Mode option card.
  3. Leave Registrable only unchecked.
  4. Click πŸš€ Start Calculate.

Before & After Examples πŸš€ Extract now

InputWith subdomains keptRoot only
api.example.com/v2/usersapi.example.comexample.com
blog.example.com/postblog.example.comexample.com
staging.api.v3.example.comstaging.api.v3.example.comexample.com
www.example.co.ukwww.example.co.ukexample.co.uk

Common Use Cases πŸš€ Extract now

πŸ” Attack Surface Mapping

Extract every subdomain referenced in HTML/JS to catalog exposed hosts.

πŸ“ˆ SEO Subdomain Audit

Identify all blog/shop/help subdomains referenced by your site.

🌐 CDN Inventory

Enumerate every cdn., static., media. host in use.

πŸ› οΈ Infrastructure Discovery

Map api., staging., dev. hosts referenced across configs.

Related Tools πŸš€ Extract now

FAQ πŸš€ Extract now

Can I extract only third-level subdomains?
Yes. Use the Domain Level filter and select "Third Level" to keep only a.b.example.com-style hosts.
Does it detect wildcards like *.example.com?
Wildcards are stripped and not counted as valid hostnames. Only concrete hostnames appear in output.