URL Extractor

Paste text or upload a file and this tool finds every http/https URL as well as bare 'www.' and domain-like references, deduplicates them, and lets you toggle 'unique domains only' to collapse a long list of links down to the distinct hostnames behind them. Bare domains are normalized with a scheme before being parsed by the browser's built-in URL parser, so hostname extraction is accurate. Export as .txt or .csv, all processed locally in your browser with no upload.

PrivateFreeWorks offline

Reviewed by Vincenzo Manto, Founder & Lead Developer · Last updated September 27, 2026

How it works

  1. 1

    Paste text into the box, or drop/upload a .txt, .log, or .html file.

  2. 2

    The tool matches http/https URLs plus bare www./domain-like references and deduplicates them.

  3. 3

    Toggle 'Unique domains only' to collapse the list to distinct hostnames instead of full URLs.

  4. 4

    Copy the results or download as .txt or .csv.

Turning a wall of text into a link list

Whether you're auditing a scraped page, checking outbound links in an email export, or reviewing a document full of references, manually copying every URL is tedious and error-prone. This tool finds them all in one pass, deduplicates exact matches, and gives you a clean list to work from.

Why reduce to unique domains?

Sometimes you don't care about every individual page - you want to know which sites are being linked to at all, for example to audit third-party dependencies, check for suspicious outbound domains in a log, or build an allowlist. The 'unique domains only' toggle answers that question directly instead of making you eyeball a long list of full URLs.

Runs entirely in your browser

Both the regex matching and the domain parsing (via the standard URL API) execute as plain JavaScript in your browser tab. No text or file you provide is ever transmitted anywhere, which makes this safe to use on internal documents or logs.

Frequently asked questions

Does this tool upload my text or file anywhere?

No. URL matching and domain parsing both happen locally in your browser with JavaScript, so nothing is sent to a server.

Does it catch links that don't start with http:// or https://?

Yes, it also matches bare 'www.' domains and domain-like patterns (e.g. www.example.com/page) even without an explicit scheme.

How does 'unique domains only' work?

Any matched URL that doesn't already have a scheme gets 'https://' prepended, then the browser's built-in URL constructor parses it to pull out the hostname. Multiple URLs pointing at the same host (like https://example.com/a and https://example.com/b) collapse into a single 'example.com' entry.

What happens to malformed or unparsable URLs in domain mode?

If a matched string can't be parsed into a valid URL even after adding a scheme, it's silently skipped when reducing to unique domains, so the domain list only contains genuinely valid hostnames.

Can I export just the domain list as CSV?

Yes. When 'unique domains only' is on, the CSV export uses a 'domain' column header instead of 'url'.

Related tools