Extract URLs from Text

Pull every link out of any text.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Extract URLs from text

Whether you’re auditing the links in a document, harvesting sources from an article, or pulling referring domains out of a log, finding every URL by eye is tedious. This tool scans any text — prose, HTML, logs or exports — and lists every link it contains, with options to clean and reshape the result.

How it works

The extractor matches full http:// and https:// URLs plus bare www. addresses, then trims trailing punctuation and unbalanced brackets so a link at the end of a sentence or inside parentheses comes out clean. From there your options apply: de-duplicate keeps each link once; domain only parses each URL with the browser’s built-in URL parser and keeps just the hostname; sort orders them alphabetically; and the separator toggle joins them with newlines or commas. A count shows how many links were found.

Example

Paste:

See (https://example.com/page). Also visit www.example.com and https://docs.example.com.

With domain-only, de-duplicate and sort on, the output is:

docs.example.com
example.com

The trailing ) and . are trimmed, the two example.com links collapse to one domain, and docs.example.com is kept separately. Everything runs in your browser — nothing is uploaded.

Ad placeholder (rectangle)