URL Extractor

Pull every link out of a block of text or HTML.

SEO Tools Free, no sign-up Runs in your browser

URL Extractor tool

Used to mark links internal or external.

URLAnchor textTyperel

About the URL Extractor

URL Extractor finds every web address in whatever you paste. Give it plain text and it picks out anything that looks like a URL. Give it HTML and it reads the actual anchor tags, which means you also get the anchor text and the rel attribute of each link rather than just the address.

That second mode is the useful one for auditing a page. Paste the source of an article and you get a table of every link it contains, with its anchor text, whether it is internal or external relative to a domain you nominate, and whether it carries nofollow or sponsored. Scanning that table takes seconds; scanning the raw HTML does not.

Filters let you keep only external links, only internal ones, or only those matching a pattern, and the result can be copied as a plain list or downloaded as CSV for a spreadsheet.

How to use the URL Extractor

  1. Paste text or HTMLEither works. HTML gives you anchor text and rel values too.
  2. Set your own domainOptional, and it is what lets the tool mark links as internal or external.
  3. Filter the resultKeep everything, only external links, only internal ones, or only matches for a pattern.
  4. Copy or downloadTake a plain list of URLs, or a CSV with every column.

Features

  • Finds URLs in plain text and anchor tags in HTML
  • Captures anchor text, rel and target for HTML links
  • Marks links internal or external against a domain you set
  • Filter by internal, external or a text pattern
  • Optional deduplication
  • Counts of total, unique, internal and external links
  • Copy as a list or download as CSV

Who uses this tool

The url extractor is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:

  • Auditing the outbound links on an article
  • Pulling a list of sources out of a document
  • Finding every nofollow link on a page
  • Collecting URLs from an email or a chat export
  • Checking that internal links point where you expect

Frequently asked questions

What is the difference between the text and HTML modes?

Text mode matches anything that looks like a URL anywhere in the input, including inside plain prose. HTML mode parses the markup and reads real anchor elements, so it also gives you the anchor text, the rel value and the target of each link.

How are relative links handled?

In HTML mode, a relative address such as /about is resolved against the domain you supply, so it appears as a full URL and is correctly marked as internal. Without a domain it is listed as it was written.

Does it fetch the page for me?

No. A page running in your browser cannot request another site's HTML, because browsers block cross-origin requests. Use your browser's view-source or developer tools to copy the HTML, then paste it here.

Will it find URLs without a protocol?

Text mode also matches addresses beginning with www, which covers most of what appears in plain prose. Addresses written without either, such as a bare example.com, are too easily confused with ordinary words to match reliably.

Can I extract only links to one domain?

Yes. Use the pattern filter with the domain name, and only matching URLs are kept.

Is my HTML uploaded anywhere?

No. Parsing happens in your browser, which matters when the page you are auditing is not published yet.

If the url extractor is not quite what you need, these other free tools solve closely related problems.

Domain Extractor

Strip URLs down to domains or root domains, with counts and deduplication.

SEO Tools Use tool

Duplicate URL Remover

Remove repeated URLs, treating trailing slashes and tracking parameters as the same.

SEO Tools Use tool

URL Cleaner

Remove utm and click-tracking parameters, fragments and stray characters from URLs.

SEO Tools Use tool

Bulk Hyperlink Generator

Convert a whole list of URLs and anchor texts into HTML or Markdown links.

SEO Tools Use tool

URL Parser

Split a URL into every component, including a table of query parameters.

Developer Tools Use tool