URL Extractor

Paste text, source code or a document. All addresses that start with http, https or www are extracted and tidied, ready to copy.

Worked examples

Links in a sentence

Visit https://example.com/a, then (www.test.org/page).

https://example.com/a www.test.org/page

The comma and the closing bracket are left out of the addresses.

Domains only

https://a.com/x https://a.com/y https://b.org

a.com b.org

Duplicates are removed after the domains are taken out.

About URL Extractor

This extractor finds every web address in a block of text and lists them one per line. Paste an article draft, a page of HTML source, an email thread or a pile of notes, and all the http, https, ftp and www addresses are collected for you.

Real writing is messy, so the tool deals with the usual traps. A full stop, comma, colon or question mark that ends a sentence is trimmed from the end of the link. A closing bracket is removed only when it has no matching opening bracket, so a link written in brackets loses its bracket while an address that genuinely contains a pair, as many reference pages do, is kept whole.

Three options shape the list. Duplicates are removed by default, so a link repeated ten times appears once. You can sort the list, and you can switch from full addresses to domain names only to see which sites are mentioned. The message under the result tells you how many addresses were found and how many are listed, so you can see how much the clean-up removed.

How to use URL Extractor

  1. Paste your text or HTML into the box, or open a text file.
  2. Choose full addresses or domain names only, then tick or untick remove duplicates and sort.
  3. Pick how the entries are separated, for example one per line or a comma.
  4. Check the count in the message, then copy the list or download it.

Common uses

  • Listing every link in a draft article before it is published, so each one can be checked
  • Seeing which websites a report, press release or email thread refers to by switching to domain names
  • Pulling the links out of exported chat logs, meeting notes or a long email chain
  • Building a list of pages to feed into a link checker or a spreadsheet of references
  • Finding the addresses in the source of a page, because href and src values are picked up like any others
  • Comparing the sources cited in two versions of a document

Frequently asked questions

Which addresses does it find?

Anything that begins http://, https://, ftp:// or www. A bare address such as example.com/page, with none of those starts, is not picked up, because plain words with dots in them would be mistaken for links.

What about the full stop at the end of a sentence?

Trailing full stops, commas, semicolons, colons, exclamation marks and question marks are removed, and so is a closing bracket that has no opening bracket in the same address.

Can I get just the websites mentioned?

Choose Domain names only. Each address is reduced to its host name, such as www.example.com, and with duplicates removed every site is listed once.

Does it work on HTML source?

Yes. Addresses inside href and src attributes are found like any others. A link is taken to end at a space, a quotation mark or an angle bracket.