TTKTheTextKit

Extract URLs from Text

Paste any text that contains links and get a clean list of the URLs. The tool finds http, https, ftp and ftps addresses, and addresses that start with www. and have no scheme, including paths, query strings, fragments, ports, user names and IPv6 hosts. The punctuation around a link is left out: full stops, commas, brackets, straight and curly quotes, Markdown asterisks and the punctuation of Chinese, Japanese and Korean text. Repeats are removed, and you can copy the list in one click.

0URLs found

Related Tools

[3 suggestions]

Guides for the Extract URLs from Text

About the Extract URLs from Text

The tool scans your text for a scheme followed by a host, or for www. followed by a name and an ending, and reads on until a character that cannot be part of a link: a space, an angle bracket, a quote, a curly or angle quote, an ellipsis character, a bracket, or CJK punctuation such as the ideographic full stop or comma. It then removes sentence punctuation from the end of the match. A closing parenthesis stays when the link has an opening one, so a Wikipedia address such as .../Foo_(bar) is kept whole while (see https://example.com/page) loses its bracket. A scheme with no host after it, such as https:// on its own, is not a URL. Addresses that start with www. are listed as written, without a scheme added, and you can switch them off. Email addresses and bare domains such as example.com are not matched, because ordinary text is full of look-alikes such as file names and version numbers. Repeats are removed by exact comparison, so addresses that differ in capitals or by a trailing slash are kept as two. Content teams use this to audit the links in a draft, developers to collect endpoints from documentation, and researchers to gather references. It runs in your browser and your text is not uploaded.

Does it find addresses without http, such as www.example.com?▾

Yes, when the box for www. addresses is ticked, which it is by default. The address is listed as written, so www.example.com stays without a scheme. Bare domains such as example.com are not matched, because file names, version numbers and ordinary words would give many false results.

Why is the quote or full stop at the end of my link missing?▾

Those characters belong to the sentence, not the address. The tool drops full stops, commas, colons, exclamation marks, question marks, apostrophes, Markdown asterisks and closing curly quotes from the end of a link, and it stops at straight and curly quotes, angle quotes and Chinese, Japanese and Korean punctuation.

How does it handle links with brackets in them?▾

A closing parenthesis stays when there is a matching opening one inside the link, as in Wikipedia addresses such as .../Foo_(bar). A bracket that only wraps the link, as in (see https://example.com/a), is removed. An IPv6 host in square brackets, such as http://[::1]:8080/, is kept.

Are duplicate URLs removed?▾

Yes. The list shows each address once, and the counter tells you how many repeats were removed. The comparison is exact, so https://example.com/a and https://example.com/a/ count as different addresses.