Extract links (URLs) from text

Paste any text and get every link it contains, without the surrounding words. Remove repeats, sort them, or keep only the domains to see which sites are mentioned.

  • Free
  • No sign-up
  • Runs in your browser
extract-urls

100% private — your text is processed in your browser and never sent to any server.

How it works

Paste your text

An email, a document, a chat, a report or the text of a web page.

Choose what to extract

The full address, or only the domain, with or without repeats.

Copy the list

One per line, or separated by commas or semicolons.

A list of links from a wall of text

Links are scattered through most long texts: the sources of a report, the references of an article, the addresses shared in a group chat, the hyperlinks in a newsletter or the URLs of a page you copied. Collecting them by hand means reading everything and selecting each one without dragging in the comma or the bracket that follows. This tool does it in a moment and hands you back a clean list.

What counts as a link

The tool finds addresses that start with http:// or https://, and also those that start with www. even without a scheme. It stops at the end of the address, at a space or a line break, and it trims the punctuation that usually trails a link in a sentence, such as a full stop, a comma, a closing bracket or a quotation mark. A bracket that belongs to the address, as in some encyclopaedia pages, is kept when it is balanced.

Full addresses or just the domains

The default is the full address, with its path and parameters. If you only want to know which sites are mentioned, choose "Only the domain": every address is reduced to its host name, the leading www. is dropped and the repeats are removed, so a document with a hundred links to the same site becomes a single line. The counters show how many links were found and how many different domains they cover, which is a quick way to audit the sources of a text.

Tidy the result

Sort the list alphabetically to spot near-duplicates, remove exact repeats, and choose how the entries are separated. Repeats are compared ignoring capital letters in the address.

What it does not do

The tool does not visit the links, so it cannot say whether a link works, where it redirects or whether it is safe. Addresses written without http or www, such as a bare example.com, are not recognised, since ordinary words with a dot in them would be mistaken for addresses. For a list of addresses you have already extracted, use the link cleaner to remove tracking parameters.

Frequently asked questions

How do I extract links from a text?
Paste the text and the list of links appears next to it. Copy it wherever you need it.
Can I get only the domains?
Yes. Choose "Only the domain" under Extract. Each link is reduced to its host name and repeats are removed.
Does it find addresses without http?
It finds those that start with www. A bare domain like example.com is not recognised, to avoid mistaking ordinary words for addresses.
Does it include the full stop at the end of a sentence?
No. Trailing punctuation such as full stops, commas, quotation marks and unbalanced brackets is trimmed.
Does it check that the links work?
No. It only finds the text of the links; it never visits them.
Is my text uploaded anywhere?
No. Everything happens in your browser.