TXT · Text & Data tools

URL Extractor (Extract Links from Text)

Input
URLs
0urls0lines scanned
Go to full Text Pattern Extractor

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Paste text, an HTML source, a Markdown file or a server log and the output lists each link once, in the order it first appears. [docs](https://example.org/start) gives https://example.org/start, and <https://example.org> loses its angle brackets.

A link written into a sentence picks up the sentence’s punctuation. The extractor trims trailing . , ; : ! ? ' " *, then looks at closing brackets. A ) or ] is kept only when the link already contains a matching opener, which keeps Wikipedia’s Mercury_(planet) intact and drops the bracket from (see https://example.com).

Hosts are checked

The host must be an IPv4 or IPv6 address, localhost, or a name ending in a real top-level domain. https://intranet/wiki and http://build.zzzz are skipped, and http://10.0.0.1:8080/admin is kept with its port.

/about, ../img/logo.png and #section have no host and are not listed. Links that start with www. are listed as written, without adding a scheme.

Frequently Asked Questions

Links starting with http://, https://, ftp://, ftps://, ws:// or wss://, and links starting with www. without a scheme. The host must be an IP address or end in a real top-level domain.

A period, comma, question mark or quote at the end of a link almost always belongs to the sentence around it, so it is trimmed. A closing bracket is kept only when the link has a matching opening one, so en.wikipedia.org/wiki/Mercury_(planet) stays whole while (https://example.com) loses the outer bracket.

Yes. Paste the HTML source and every absolute link in an href, src or plain text is found, without the surrounding quotes. Relative links like /about have no host, so they are not listed.

Yes. hxxp, hxxps, [.] and [:] are read as the real characters, and the link is listed in its working form.

Explore Our Tools

Browse all tools