Link Extractor

Extract all links and URLs from text or HTML

Text Content
linkExtracted links will appear here...
info

About Link Extractor

Link Extractor is a free online tool that scans any text or HTML source you paste and pulls out every URL it finds — displaying them in a numbered table you can filter, search, and export in seconds. In Text mode it matches bare URLs starting with http://, https://, ftp://, or www. In HTML mode it parses anchor tags with the browser DOMParser, so you also get each link's anchor text and its rel attribute (dofollow or nofollow) alongside the raw URL.

The tool is aimed at the specific moments when you need a list of links quickly: auditing the outbound links on a page before publishing, collecting citation URLs scattered across a long document, or checking which links on a competitor's page carry nofollow. The built-in stats bar shows totals for unique URLs, dofollow links, and nofollow links at a glance, and you can remove duplicates with a single checkbox before exporting.

Every extraction runs entirely in your browser with no server calls. You can safely paste internal dashboards, draft content, or confidential HTML source — nothing is uploaded, logged, or stored. The tool is free to use with no account required and no limits on how much content you process.

star

Key Features

check_circle

Two extraction modes

Text mode uses a URL regex to find bare links in prose. HTML mode parses anchor tags with the browser DOMParser, returning the href, anchor text, and rel attribute for each link.

check_circle

Dofollow / nofollow classification

In HTML mode every link is automatically labeled dofollow or nofollow based on its rel attribute, so you can filter the table to just one type without reading the raw markup.

check_circle

Duplicate removal

Toggle "Unique only" to collapse all repeated URLs into one row before you copy or export, keeping your output clean without manual deduplication.

check_circle

Search and filter in the results table

Type any keyword into the search bar to narrow results by URL or anchor text. Combine it with the dofollow/nofollow filter for precise subsets.

check_circle

CSV and TXT export

Download filtered results as a CSV file with columns for URL, anchor text, rel value, and link type, or as a plain TXT file with one URL per line for scripting.

check_circle

100% client-side and private

Parsing happens in your browser. Your pasted content is never sent to a server, so you can safely use it on draft pages, internal docs, or any HTML you would rather keep off the internet.

help

How to Use

01

Paste Your Content

Paste plain text containing URLs or HTML source code into the input area. Select the appropriate extraction mode (Text or HTML).

02

Extract Links

Click the Extract Links button to find all URLs in your content. View results in a sortable table with URL, anchor text, and link type.

03

Filter & Export

Use filters to narrow results by type or search terms. Export your extracted links as CSV, TXT, or copy them to your clipboard.

code_blocks

Example

HTML mode parses anchor tags and returns the URL, anchor text, and rel attribute for each link found on the page.

HTML input
<p>Check out our <a href="https://hazuu.tools/tools/utm-builder">UTM Builder</a> or
visit <a href="https://example.com/guide" rel="nofollow">this guide</a> for more tips.
Also see <a href="/categories/miscellaneous-tools">Miscellaneous Tools</a>.</p>
Extracted links (table rows)
#  URL                                          Anchor Text         Type
1  https://hazuu.tools/tools/utm-builder          UTM Builder         dofollow
2  https://example.com/guide                      this guide          nofollow
3  /categories/miscellaneous-tools                Miscellaneous Tools dofollow
lightbulb

Common Use Cases

  • arrow_circle_right

    SEO link auditing

    Paste the HTML source of any page to get a full breakdown of outbound links with their dofollow/nofollow labels. Spot unexpected nofollow tags or missing rel attributes before a page goes live.

  • arrow_circle_right

    Harvesting citations from long documents

    Research notes and academic drafts often contain dozens of URLs scattered through paragraphs. Paste the text into Text mode to collect every URL into one exportable list without reading the whole document.

  • arrow_circle_right

    Cleaning up pasted content for republishing

    When repurposing an article or press release, use the extractor to inventory all outbound links so you can decide which ones to keep, redirect, or remove before publishing on a new domain.

  • arrow_circle_right

    Checking affiliate and tracking links

    Marketing teams can verify that every affiliate URL in a newsletter template or landing page HTML is present and correctly formatted by scanning the source in HTML mode and searching the results table.

  • arrow_circle_right

    Building link datasets for scripts

    Export results as CSV or TXT to feed downstream tools — link checkers, redirect auditors, or spreadsheet reports — without writing a custom parser for each HTML source.

quiz

Frequently Asked Questions

What is Link Extractor? expand_more
Link Extractor is a free online tool that finds and extracts all URLs and hyperlinks from text or HTML content. It identifies plain text URLs, HTML anchor tags, anchor text, and link attributes like dofollow and nofollow.
What is the difference between Text and HTML mode? expand_more
Text mode uses a regular expression to find URLs (http://, https://, ftp://, www.) in plain text, returning only the URL itself. HTML mode parses HTML source with the browser DOMParser to extract every anchor tag, returning the href, anchor text, and rel attribute (dofollow/nofollow) for each link.
Can I filter the extracted links? expand_more
Yes. In HTML mode you can filter by dofollow or nofollow, search by URL or anchor text, and toggle duplicate removal. Filters apply before you copy or export, so the output only contains the links you actually want.
Is my content kept private? expand_more
Yes, all link extraction happens entirely in your browser using client-side JavaScript. Your content is never sent to any server, ensuring complete privacy even for draft pages or internal documents.
How is Link Extractor different from HTML to Text Converter? expand_more
HTML to Text Converter removes all markup and returns the readable prose a browser would display — its goal is clean reading text. Link Extractor specifically pulls out the URLs and their metadata (anchor text, rel attribute) and presents them in a filterable table for export. If you need both, run each tool separately.
How is Link Extractor different from UTM Builder? expand_more
UTM Builder constructs new tracking URLs by appending campaign parameters to a base URL. Link Extractor does the opposite — it reads existing content and pulls out URLs that are already there. They serve complementary roles: build with UTM Builder, then audit the result with Link Extractor.
Does it extract links from JavaScript or CSS? expand_more
In HTML mode the tool only extracts links inside anchor tags (the href attribute of a elements). URLs embedded in script blocks, inline styles, or data attributes are not captured. For plain-text or JSON sources, use Text mode, which matches any bare URL string.
Can I remove duplicate links from the output? expand_more
Yes. Check the "Unique only" box before extracting (or after) to collapse repeated URLs. Case differences in URLs are normalized to lowercase during deduplication, so http://Example.com and http://example.com count as the same URL.