HTML Link Extractor

Pull every anchor link out of any HTML and see its details at a glance.

HTML Link Extractor Online

Paste any HTML source or Load from URL, and extract every <a> link it contains.
Each link is listed with its URL, visible text, type, title, rel and target.
So you can audit a page's link profile in seconds.


Load an example

Copy Download
Settings
Hides internal, anchor, mailto, tel and empty links.
Include <a> tags that have no href attribute or an empty href.
Used to tell internal from external links and to make relative links clickable.

Converts every link URL to lowercase.
Turns www.example.com into https://www.example.com.
Removes utm_*, fbclid, gclid and similar click IDs.
Keeps the first occurrence of each link.
Comma separated domains - leave empty to keep every domain.
Ready to extract.


Overview

Our HTML Link Extractor reads the markup you paste and pulls out every hyperlink created with an <a> tag, showing the full detail of each one. For every link it reports the destination URL, the visible link text, the link type, plus the title, rel and target attributes when present.

Links are automatically classified as external, internal, anchor, mailto, tel or javascript, and a live count tells you how many of each were found. Everything runs locally in your browser, so your HTML never leaves your device (the only exception is the optional "Load HTML from URL" box, which sends the URL you type to our server-side proxy so it can fetch that page's source).


What this Tool Does?

The tool scans your input looking for <a> opening tags, reads each tag's attributes, then records the link in a table. Unlike a plain URL finder, it understands the structure of the markup: a link to /about is recognised as internal (when you provide a Base URL), a link to #top is an anchor, and mailto: or tel: links are captured rather than dropped.

Because it works on real HTML, it is perfect for auditing a page before publishing, checking that every call-to-action points where it should, or building a quick inventory of outbound links for SEO and compliance reviews.


Features and Settings

Full attribute capture: For each link the table shows the URL, the visible link text, the detected type, and the title, rel and target attributes. That makes it easy to spot a missing title or a stray target="_blank" without reading raw markup.

Link-type classification: Every link is tagged external, internal, anchor (#), mailto, tel or javascript, with a live tally of each type. Set a Base URL so relative paths like /blog/latest are counted as internal and rendered as clickable absolute URLs.

Show only external links: Tick this to filter the table down to outbound URLs, hiding internal, anchor, mailto, tel, javascript and empty links - handy when you only care about third-party references.

Show empty links: Include <a> tags that have no href attribute or an empty href value, tagged as "empty" so you can find placeholder or broken links.

Lowercase URLs: Converts every link URL to lowercase for consistent lists. Note that URL paths can be case-sensitive on some servers - uncheck this if exact casing matters.

Add missing scheme: Rewrites shorthand www links into full clickable URLs. With this option checked, www.shop.example.com/deals becomes https://www.shop.example.com/deals.

Strip tracking parameters: Removes marketing click-tracking from query strings - utm_source, utm_medium and friends, plus click IDs like gclid, fbclid, msclkid, dclid, twclid, igshid, mc_cid and mc_eid - so the URLs you export are clean.

Unique only: Removes duplicate links so each destination appears once. Matching is by the processed URL, so scheme-stripped and tracking-stripped variants collapse together.

Domain filter: Enter one or more domains, comma separated, then choose Keep only to hold on to those domains or Exclude to throw them away. Leave the field empty to disable filtering.

Load HTML from URL: Type a web page address into the "Load HTML from URL" box and click "Load URL" to pull that page's markup straight into the input. The page is fetched through our server-side proxy (browsers cannot read other sites directly), then extraction runs locally exactly like pasted text.

Upload a file: Load a .html, .htm, .txt or similar text file straight into the input area instead of copy-pasting. The file is read locally by your browser and never uploaded anywhere.

Load an example: Inserts sample HTML containing a mix of link types - an external URL with tracking params, a relative internal path, an anchor, mailto and tel links, a javascript link and an empty tag - then extracts the list immediately.


FAQs

FAQ 1: Is this HTML link extractor free?
Answer: Yes, it is completely free with no sign-up, and there are no limits on how much HTML you can scan or how often you can use it.

FAQ 2: Is my HTML or my extracted links stored anywhere?
Answer: No. The extraction runs entirely in your browser - nothing you paste, upload or extract is sent to or saved on any server. Once you close or refresh the page, everything is gone. The one exception is the optional "Load HTML from URL" box: the URL you enter is sent to our server-side proxy so it can fetch that page's source (browsers cannot read other sites directly), after which the actual parsing still happens locally on your device.

FAQ 3: What is the difference between external and internal links?
Answer: External links point to other websites (full http/https URLs on a different host), while internal links stay on the same site (relative paths like /about, or absolute URLs on the same Base URL). Set a Base URL so the tool can tell them apart and render relative links as clickable absolute URLs.

FAQ 4: Can this tool read a website by URL?
Answer: Yes. Type a web page address in the "Load HTML from URL" box and click "Load URL" to fetch that page's markup straight into the input. The page is retrieved through our server-side proxy (browsers block cross-site reading directly), the source is loaded into the Input box, and you can then extract immediately.

FAQ 5: Does it also catch mailto, tel and anchor links?
Answer: Yes. As long as they appear inside an <a> tag, mailto: and tel: links are captured and tagged with their own types, #fragment links are tagged as anchor, and javascript: links are tagged as javascript. Empty <a> tags appear only when "Show empty links" is ticked.

FAQ 6: How do I export the results?
Answer: Use the Copy or Download buttons under the table. Both export a tab-separated table (URL, link text, type, title, target, rel) that opens cleanly in Excel, Google Sheets or any spreadsheet.

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.