Extract domains from URLs and emails

Paste a list of URLs, a page of text or a column of email addresses and get the domain names in it. Paths, ports and logins are dropped, and the list can be made unique and sorted.

Found: 5 · Listed: 5

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Paste the links, addresses or text.
  2. Keep “Remove duplicates” on for a unique list, and sort it if you like.
  3. Switch off “Also find bare domains” if file names are showing up in the list.
  4. Press Copy.

How it works

The text is scanned once for three shapes: a link that starts with a scheme such as https://, an email address, and (optionally) a bare name with dots. In each, the host is taken, lowercased and, if the option is on, stripped of a leading www. A sentence-ending dot is not part of the name.

Worked example

From “Visit https://www.Example.com/a?x=1 and http://blog.site.org:8080/p” the list is example.com and blog.site.org: the www, the path, the query and the port are gone.

Tips

To collect only the links first, use the URL extractor and then paste its result here. Remember that subdomains stay separate, so shop.example.com and example.com are two lines; if you need to merge them, trim by hand or with find and replace.

Frequently asked questions

Does it find the main domain, such as example.co.uk?

No. It returns the full host name as written, such as blog.example.co.uk, because telling the registrable domain from its subdomains needs the public suffix list, which this tool does not use. Subdomains are therefore listed as separate entries.

What does it take from a link?

The host between the :// and the next slash, question mark or hash. A port and a user:password@ part before the host are dropped, and the host is lowercased.

What about email addresses?

The part after the @ is taken as the domain. This works for plain addresses; the tool does not check that the mailbox or the domain exists.

Why are file names like report.pdf listed as domains?

With "Also find bare domains" on, anything shaped like name.letters is taken for a domain, and file names look the same. Turn that option off to take domains only from links with a scheme such as https:// and from email addresses.

Are IP addresses listed?

No. Only names whose last part is made of letters count, so 192.168.0.1 is skipped. Internationalized names are returned as typed and are not converted to punycode.

More in Text

All tools in this category: Text ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.