Text & data TOOL

Extract domains

Collect domains from URLs in text.

01

Enter your text

On-device processing
Input · Up to 2 MB
02

Output options

No account. No uploads.

Extract domains · How to use

Collect domains from URLs in text.

Example

https://example.com/docs https://sub.example.org/page → example.com, sub.example.org

Things to know

Parses URLs in the supplied text. It does not look up domain registration or DNS.

Your files and results are never sent to a server. Everything is processed in this browser.

How to extract the domains from URLs in a block of text

Use it to see which sites appear in a bibliography, a log excerpt or a chat full of links. Paths, query strings and ports are dropped so only hostnames remain, which makes link sources easy to compare.

When to use this tool

  • List the websites cited in a bibliography or article roundup
  • Check which domains a set of ad landing URLs points to
  • Collect the source sites of links shared in chats or notes
  • Shortlist hostnames for an allowlist or blocklist

Step-by-step instructions

  1. Paste the text that contains URLs into the input box.
  2. Choose Convert to extract the domains.
  3. Review the hostnames in the result, one per line.
  4. Copy the list or download it as a text file.

Frequently asked questions

Are www and subdomains merged into the main domain?

No. Hostnames are kept as written, so www.example.com, example.com and sub.example.com stay on separate lines, and uppercase letters are lowercased. Group them by registered domain yourself if you need that.

How are internationalized domain names shown?

The browser's URL parser converts non-Latin domain names to Punycode, so they appear in a form starting with xn--. Port numbers, paths and query strings are not included in the result.

Can words that are not URLs end up in the result?

Any dotted word that looks like an address can match, so file names such as report.pdf and the domain part of email addresses may appear. The tool does not check registration or DNS, so skim the list before using it.

Save only the tools you need.