1. Home
  2. Developer
  3. Domain Extractor

Domain Extractor

Extract domains from URLs and text, deduplicate them and count each one.

Runs in your browser · No upload
Finds https:// addresses, email addresses and domains written without a scheme. IP addresses are skipped.
Domains found
6
Distinct domains
5
IP addresses skipped
1
Domain list
example.com blog.example.com example.net m.shop.example.co.kr mail.example.org
DomainCount
example.com2
blog.example.com1
example.net1
m.shop.example.co.kr1
mail.example.org1

The registrable-domain level uses a built-in list of suffixes such as co.kr and co.uk, so it is an approximation and does not cover shared suffixes like github.io.

How to use

  1. Paste a list of URLs, a log or any block of text into the input box. Line breaks are not required.
  2. Choose the Extract as level. Full host keeps blog.example.com; registrable domain reduces it to example.com.
  3. Toggle the options (strip www, include email domains, find domains without a scheme, remove duplicates) and the result updates at once.
  4. Copy the result box or download it as a txt file. The table below shows how often each domain appeared.

What counts as a domain

Input form Example Handling
URL with a scheme https://user:pw@Blog.Example.com:8443/a?q=1 only the host blog.example.com is kept; port, user info, path and query are dropped
Email address help@mail.example.org the part after @ (can be switched off)
Domain without a scheme example.net accepted only if the top-level domain is a known one
IP address 192.168.0.1, [::1] not a domain, so it is skipped and only counted

In plain text a name like index.html or app.js must not be mistaken for a domain, so schemeless names are accepted only when they end in a known top-level domain such as .com or .kr. TLDs that collide with file extensions (.md, .sh, .py, .rs, .pl, .cc, .so) are left out in that mode, so README.md and run.sh are ignored. Those TLDs are still recognized inside an https:// address or an email address.

Registrable domain level

The registrable domain is the shortest name you can actually buy: news.bbc.co.uk belongs to bbc.co.uk, and blog.naver.com to naver.com. Two-level suffixes such as co.uk, com.au, co.jp and the Korean co.kr, or.kr, go.kr, ne.kr, re.kr, pe.kr, ac.kr, hs.kr, ms.kr, es.kr, kg.kr are handled, so m.shop.example.co.kr becomes example.co.kr.

The list is a built-in approximation. It is not the full Public Suffix List and does not cover suffixes where a provider hands out subdomains, such as github.io, so verify the result if you need exact registration boundaries.

With the sample input, https://www.example.com/news/1, https://blog.example.com/post?id=7 and https://www.example.com/about give example.com twice and blog.example.com once at the full-host level; at the registrable level example.com counts three times.

Frequently asked questions

Can I process a column of URLs from a spreadsheet?

Copy the column and paste it; each cell lands on its own line and is processed as is. The result is also line-separated, so you can paste it back into the sheet.

Can I see how many times each domain appears?

Yes. The default sort is most frequent first and the table shows counts. Turn on Include counts in the result to get domain, count lines in the copied output as well.

www and non-www addresses show up separately.

Keep Strip www. on and www.example.com merges with example.com. Turn it off if you want them as separate hosts.

Does it handle internationalized domains?

Yes. 한글.com and 도메인.한국 are recognized as they are, and so are xn-- punycode names. Use the Punycode Converter to convert between the two.

If you need whole email addresses use the Email Extractor, to drop duplicate lines only use Remove Duplicate Lines, and to order a list use Sort Lines. Text you enter is processed in your browser and never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.