URL extractor

Extract every http and https URL from text, HTML, emails or documents and get a clean, counted list of links. Free online URL and link extractor.

Pull every link out of a block of text

The URL extractor scans whatever you paste, whether that's plain text, an email, a chat log, a document or raw HTML, and pulls out every web address that starts with http:// or https://. You get a clean list and a count of how many links were found.

It's a big time-saver for SEO audits, content reviews, research and migrations, when you need to see every link a page or document contains without clicking through it.

Because it reads the text pattern, it works on page source code too, catching links in href and src attributes.

How to use the url extractor

  1. Paste the text or HTML.
  2. Submit to extract the URLs.
  3. Review the count and list.
  4. Copy the links for your spreadsheet, crawler or report.

Examples

Links in a paragraph

Input:

Read https://mybotsy.com/blog, then http://example.org/a?b=1&c=2. Also see www.example.net and (https://en.wikipedia.org/wiki/URL).

Output:

https://mybotsy.com/blog
http://example.org/a?b=1&c=2
https://en.wikipedia.org/wiki/URL

Count: 3. Commas, periods and closing brackets after a link are left out, and the query string stays intact. www.example.net is skipped because it has no http:// or https://.

Links in HTML source

Input: <img src="https://example.com/logo.png"> <a href="/about">About</a>

Output: https://example.com/logo.png

The relative link /about has no domain, so it isn't listed.

A tracking link

Input:

Book now: https://example.com/offer?utm_source=newsletter&utm_medium=email#pricing

Output:

https://example.com/offer?utm_source=newsletter&utm_medium=email#pricing

Parameters and the #fragment are kept, so you can paste the result straight into the URL parser to read each part.

Common uses

  • Listing every outbound link in an article or page source.
  • Gathering sources and references from research notes.
  • Collecting links shared in a chat or email thread.
  • Building a list of URLs to redirect or check during a website migration.
  • Auditing links in a newsletter before you send it.

Tips and things to know

Edge cases and limitations

  • Only http and https links count. ftp://, mailto: and tel: links are ignored.
  • The host needs at least one dot, so http://localhost:3000 isn't found.
  • Repeated links appear once per occurrence; dedupe them afterwards.
  • A link that ends in a period or comma loses it. That's usually right, but a URL that really ends in a dot will be cut.

Frequently asked questions

Does it extract links from HTML?

Yes. Paste the HTML source and it finds the http and https URLs inside it.

Why are some links missing?

Only links that start with http:// or https:// are detected. Relative links like /about don't include a domain.

Can I extract links from a PDF?

Copy the text from the PDF and paste it here.

Does it check whether links work?

No, it only extracts them. Use the redirect checker to test individual links.

Why is a link cut off at the end?

The extractor stops before trailing punctuation such as a period, comma or closing bracket, because those usually belong to the sentence. If the real URL ends in one of those characters, add it back by hand.

Related tools

Popular free tools