go-supertools
Text Tools

URL Extractor

Extract URLs from Text

Runs in your browser Your input never leaves your device.

0 characters | 0 words

Report a problem with this tool

About this tool

This tool scans pasted text and lists the web addresses it finds, one per line. It finds links that start with http, https, ftp or ftps, and bare addresses such as www.example.com or example.org/page whose ending is any 2 to 24 letter domain suffix (including long ones like .photography). Anything that is part of an email address (anything touching an @) is not returned, and trailing punctuation such as a full stop or comma after a link is removed. A bare name that ends in a common file extension, such as report.pdf or logo.png, is treated as a file name and skipped, unless it starts with www. or http. Each address is listed once, in the order it first appears. It is a pattern match, not a full link parser. Everything runs in your browser.

How to use it

  1. Paste the text that contains links.
  2. Read the list of addresses in the output.
  3. Press Copy to use them.

Example

Input
Visit https://example.com/docs?x=1 and www.test.org today.
Result
https://example.com/docs?x=1
www.test.org

Extracting URLs from a web page

The tool reads text you paste. It does not visit websites, so to pull the links out of a page, paste the page's HTML source.

  1. Open the page in your browser and press Ctrl+U (Cmd+Option+U on a Mac) to view its source.
  2. Select all (Ctrl+A) and copy.
  3. Paste it into the box. Links inside href and src attributes are listed, because quotes end a match.
  4. Relative links such as /about or images/logo.png have no domain, so they are not listed. Only full addresses and bare domains are.

What counts as a URL here

Full links
Anything starting with http://, https://, ftp:// or ftps://, up to the next space, quote or angle bracket.
Bare domains
Addresses like www.example.com or example.org/page, with an ending of 2 to 24 letters.
Not included
Email addresses, bare IP addresses, localhost, and names that end in a common file extension such as report.pdf.
Cleanup
A full stop, comma or closing bracket at the end of a link is removed. Each exact address appears once, in the order it was first found.

Working with the list

The output has one URL per line, so it pastes straight into a spreadsheet column, a text editor or a link checker. To find a domain's links only, paste the list into a spreadsheet and filter the column by that domain. To get email addresses from the same text, use Email Extractor.

Common problems

A real address is missing
A bare domain whose ending is also a file extension (for example a .md, .py or .sh address) is skipped as a file name. Write it with http:// or www. in front and it is listed.
Some links are missing
localhost addresses and bare IP addresses without http are not matched. Add http:// in front of them.
Two links look alike but both appear
Each exact address is listed once, but https://example.com and https://example.com/ (with a slash) or different capitalization are different strings and both stay.

Frequently asked questions

Can I enter a website address and get all its links?

No. The tool does not fetch pages. Open the page, view its source, and paste the HTML. You get every full link written in that source.

How much text can I paste?

Up to 1,000,000 characters at a time. For larger files, split them into parts.

Is my text uploaded?

No. The matching runs in your browser and the text is not sent to our servers.