FREE TOOL · NO SIGNUP

Extract Every Link From HTML in Seconds

Paste any HTML or block of text and pull out every link with its anchor text, rel attribute, and internal vs external classification — with counts and one-click CSV/JSON export.

Link source

Resolves relative links to absolute URLs and classifies internal vs external.

Example — paste your own HTML or text on the left to extract its links.
9 links foundexample.com

Overview

9
Total
9
Unique
3
Internal
2
External
5
Dofollow
1
Nofollow
4
Domains
1
Empty anchor

Top linked domains

example.com3ahrefs.com1blog.example.com1moz.com1

Links (9)

The Complete Guide

Link Extractor: How to Pull and Audit Every Link on a Page

5 MIN READ

Understand with AI

Discuss with your preferred AI assistant

Instant
Faster audits

Extract and classify every link the moment you paste — no crawl, no install, no signup.

6+
Link attributes read

URL, anchor text, rel, target, domain, and internal/external scope for each link.

CSV + JSON
Export formats

One-click download to drop the results straight into your workflow.

A link extractor pulls every hyperlink out of a page or a block of text and lays them out in one clean list — each link paired with its anchor text, its rel attribute, and whether it points inside your own site or out to another domain. It turns the tangle of markup behind a web page into a structured audit you can actually read and act on.

Whether you are auditing internal linking, mapping where a page sends its authority, checking a competitor's outbound links, or hunting for broken or empty-anchor links, extracting the links first is the fast, reliable starting point. This guide explains what a link extractor does, how to use one well, and how to read the results like an SEO.

A link extractor is a tool that scans HTML (or plain text) and returns every <a href> link it finds. Instead of squinting at raw source code, you get a tidy table: the destination URL, the visible anchor text, the rel value, the target, and a classification of internal versus external.

It is the manual, on-demand cousin of what a crawler does at scale. You paste the markup for a single page — copied from "View Source" or an email, doc, or export — and get an instant breakdown without installing software or running a full site crawl.

Links are how both users and search engines move through your site and the wider web. The way a page links tells search engines what it considers important and where its authority should flow. Pulling the links out makes several SEO checks trivial:

  • Internal linking — confirm important pages are linked, with descriptive anchor text, from the pages that matter.
  • Outbound links — see exactly which external domains a page references and whether those links are nofollow, sponsored, or followed.
  • Anchor text — spot generic "click here" anchors and empty image links that waste relevance signals.
  • Link sculpting — understand how many followed links a page emits before you add more.
  • Competitor research — map who a ranking competitor links out to and how.

1. Grab the HTML

On the page you want to inspect, right-click and choose "View Page Source" (or press Ctrl/Cmd + U), then copy the markup. You can also paste a chunk of HTML from an email, CMS export, or document — anything containing links works.

2. Paste it in and add a base URL

Drop the HTML into the tool. If the page uses relative links such as /pricing or ../blog, enter the page's base URL (for example, https://example.com). The extractor then resolves those relative paths into full absolute URLs and can correctly label each link internal or external.

3. Read the classification

Every link is tagged internal, external, subdomain, anchor, email, or phone. Internal links stay on your registrable domain; external links leave it; subdomain links sit on a related host like blog.example.com. This split is the foundation of any link audit.

4. Check rel and follow status

The tool reads each link's rel attribute and flags nofollow, sponsored, and ugc. Followed links pass ranking signals; nofollow and its variants generally do not. Knowing the ratio helps you manage how authority leaves the page.

5. Export and act

Copy the URL list, or download the full data as CSV or JSON, then fold it into your audit spreadsheet, a broken-link checker, or your reporting.

What the Extracted Data Tells You

Beyond the raw list, the counts and breakdown surface patterns at a glance:

SignalWhat to look for
Internal vs external ratioMost editorial pages should lean internal; a page that is almost all outbound may be leaking authority.
Nofollow countPaid, affiliate, and untrusted links should carry sponsored or nofollow; missing those is a risk.
Empty anchor textImage-only or blank links give search engines no context — add descriptive text or alt attributes.
Top linked domainsReveals which external sites a page (or competitor) repeatedly endorses.
  • Always set a base URL when a page uses relative links, or the internal/external split will be wrong.
  • Audit anchor text, not just URLs — descriptive anchors are a real ranking signal.
  • Treat empty-anchor and image-only links as fixes, not noise.
  • Run extracted external links through a broken-link checker to catch 404s.
  • For a whole site rather than one page, graduate from manual extraction to a crawler.

Expert Tips

Always set a base URL

Relative links like /pricing only classify correctly when the tool knows the page domain. A base URL resolves them to absolute URLs and powers an accurate internal-versus-external split.

Audit the anchor text, not just the URL

Descriptive anchor text is a ranking signal. Scan for generic "click here" anchors and empty image links, then rewrite them with keyword-relevant, human-readable text.

Frequently Asked Questions

What is a link extractor used for?

A link extractor pulls every hyperlink out of HTML or text so you can audit them. It is used to review internal linking, map outbound links, check anchor text and nofollow status, and gather URLs for further analysis — all without crawling an entire site.

How do I extract links from a web page?

Open the page, view its source (right-click → View Page Source, or Ctrl/Cmd + U), copy the HTML, and paste it into the extractor. Add the page's base URL so relative links resolve correctly, then read or export the resulting list.

What is the difference between internal and external links?

Internal links point to other pages on the same domain; external links point to a different domain. A base URL lets the extractor compare each link's host to your site and classify it. Links on a related subdomain are flagged separately.

Does the link extractor detect nofollow links?

Yes. It reads each link's rel attribute and flags nofollow, sponsored, and ugc values, marking everything else as dofollow. That makes it easy to confirm paid or untrusted links are tagged correctly and to see how much link equity a page passes.

Related guides

Related tools