Link Extractor — Get All Links from a Web Page

Extract all links from a web page's HTML: anchor text, URL, internal or external, nofollow. Download as CSV. Free.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

This link extractor lists every link in a web page's HTML, along with its anchor text, URL, and rel attribute. It also marks each link as internal or external. It is built for SEOs, editors, and site owners who want a quick audit of a page's links, and it is free to use.

How to extract links from a web page

You need two things: the page address and the page's HTML source. The tool works from the source you paste, so you stay in control of exactly what gets checked.

  1. Enter the page URL in the first field. The tool uses it to decide which links are internal and which are external.
  2. Open the page in your browser, view its source, and copy the HTML.
  3. Paste the HTML into the source box.
  4. Click Extract links.
  5. Read the results, filter them if you need to, or download the CSV.
How to use the Link Extractor on OneHubTools: 5 steps with a real screenshot of the tool
How to use the Link Extractor, step by step.

Related jobs are one click away: try the SEO Analyzer, the Heading Tag Checker or the Hreflang Tag Generator.

Your HTML is processed in your browser. Nothing is uploaded.

What you get for each link

Every row in the results shows the details you usually have to hunt for by hand.

  • Anchor text: the clickable words a visitor sees.
  • URL: where the link points.
  • Internal or external: whether the link stays on the same site or leaves it.
  • Rel attribute: nofollow, sponsored, or ugc, when present.
  • Empty anchor flag: links with no visible text, such as an image link with nothing describing it.
Result from the Link Extractor on OneHubTools
What the Link Extractor gives you.

What is a link extractor good for?

A link extractor saves you from clicking through a page or reading raw code. Here are the jobs it handles well.

Internal-linking audits

Filter to internal links and check where a page sends people. Are your key service pages linked from your best articles? Is the anchor text descriptive, or is it just "click here"? A list makes gaps obvious.

Checking outgoing links

Switch to external links and review every site you point to. This is useful before publishing a guest post or after a long editing session, when stray links slip in.

Reviewing rel attributes

Paid placements should usually carry sponsored. Links in comments or forum posts often use ugc. The tool shows which links have these attributes, so you can spot ones that are missing or applied by mistake.

Finding empty anchors

A link with no anchor text gives visitors and search engines little to go on. Empty anchor detection points to these links so you can add proper text or a label.

Quick guide to rel values

Rel valueTypically used for
nofollowLinks you do not want to vouch for
sponsoredPaid or sponsored links
ugcLinks added by users, such as comments

Tips for better results

  • Copy the full source. If you paste only part of the page, the link list will be incomplete.
  • Enter the right URL. A wrong address can make internal links look external.
  • Use the filters first. Look at internal links and external links separately. The two lists answer different questions.
  • Sort out duplicates in the CSV. Menus and footers repeat links. Open the file in a spreadsheet and sort by URL to see how often each one appears.
  • Review the page you see in the browser. Source from a logged-in or customised view may differ from what visitors get.

Common problems and fixes

The results list is empty

Check that you pasted HTML source, not the visible page text. The source should contain tags like <a href="...">.

Some links seem to be missing

Links added by scripts after the page loads may not appear in the original source. Copy the HTML from your browser's inspector instead if you need those links.

Internal links are labelled external

This usually means the page URL you entered does not match the site's address. Correct it and run the extraction again.

Download links as CSV

After you extract links, you can export the results as a CSV file. It opens in any spreadsheet app. From there you can sort by anchor text, count links to a single URL, or share the list with a client or writer. For a large page, the spreadsheet is often easier to work with than the on-screen list.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it on real web pages, including pages of this site.

Sources

According to MDN Web Docs, the File API lets web pages read files you choose on your own device without uploading them, and all major browsers have supported it for more than 10 years.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

What is a link extractor?

A link extractor is a tool that reads a page's HTML and lists every link it finds. This one shows the anchor text, URL, whether the link is internal or external, and any nofollow, sponsored, or ugc attribute.

How do I extract all links from a web page?

Enter the page URL, paste the page's HTML source, and click Extract links. You can then filter the list or download it as a CSV file.

Can I see which links are nofollow?

Yes, the results show the rel attribute for each link. Nofollow, sponsored, and ugc values are all listed, so you can check them at a glance.

Does the tool find links with no anchor text?

Yes, it has empty anchor detection. Links with no visible text are flagged so you can fix them.

Is my HTML uploaded anywhere?

No, the HTML you paste is processed in your browser and is not uploaded. The tool is also free to use.

Can I export the links to a spreadsheet?

Yes, you can download the results as a CSV file. It opens in common spreadsheet programs, where you can sort and filter further.

Related tools

All seo tools →