Domain Extractor

Pull just the domain out of a list of URLs.

This tool runs entirely in your browser. Your files are never uploaded to a server.

What this tool does

Pulls just the hostname out of a list of URLs — paste any number of full or partial URLs and get a table pairing each original line with its extracted domain, plus a separate deduplicated list of every unique domain found.

How to use it

Paste one URL or path per line into the box. The table below updates as you type, and the deduplicated domain list underneath has its own copy button so you can grab just the unique hostnames.

Worked example

Pasting https://shop.example.com:8080/cart, blog.example.org/post/1, and https://shop.example.com/checkout produces the domains shop.example.com, blog.example.org, and shop.example.com — the unique list below shows only shop.example.com and blog.example.org, since the port is not part of the extracted hostname.

How protocol-less lines are handled

A line with no scheme, such as plain-domain.com/path, is treated as if https:// were in front of it before parsing, so you don't need to type the protocol for every line — only a line that already starts with a recognized scheme like http:// is left as-is.

Unique domains list

The deduplicated list below the table collects every distinct hostname across all lines, in the order each one was first seen, with no count of how many times each appeared.

Limitations

A line that still can't be parsed as a URL after the https:// prefix is added — for example an empty line or one with only spaces — shows a dash in the domain column instead of an error. The extracted value is the hostname only; an explicit port, like :8080, is not included in either the table or the unique list.

Privacy and processing

Parsing runs entirely in your browser with the native URL constructor. Nothing you paste is sent to a server or logged.

Frequently Asked Questions

Do I need to include https:// for every line?
No, if a line has no protocol, https:// is assumed automatically, so plain domains and paths work fine.
Does it remove duplicate domains?
The main table shows every original line paired with its domain, and a separate list below shows only the deduplicated unique domains found.
What happens with an invalid line?
A line that can't be parsed as a URL shows a dash in the domain column instead of causing an error, so the rest of your list still processes normally.