Skip to content

Link Extractor

Extract every link from pasted HTML or a local file with its text, href, type, rel and target. Flags duplicates, empty text or hrefs, unsafe schemes and target="_blank" without noopener. Filter, search and export CSV.

Web & SEO Runs client-side Free to use
Jump to the tool
Share: X WhatsApp
Loading Link Extractor…

About the Link Extractor

Link Extractor reads every <a href> link from the HTML you paste or open and lists its link text, href value, type, rel and target attributes. Links are classified as internal or external (when you enter your site origin), relative, anchor (#), email (mailto:), phone (tel:), empty, or unsafe/unsupported for schemes such as javascript: and data:. Links made only of an image use the image’s alt text as their label.

Each link is checked for duplicate hrefs, empty link text, empty hrefs, unsafe or unsupported schemes, and target="_blank" without rel="noopener" or rel="noreferrer". You can filter by type, search text and URLs, show only links with warnings, and copy or download the filtered list as CSV. The HTML is parsed as inert data — nothing is run, loaded or visited — so the tool does not test whether links work, redirect, are indexed or lead to safe destinations.

How to use

  1. Paste HTML, or click Open .html file to load a local .html or .htm file.
  2. Optionally enter your site origin, such as https://www.example.com, to label links internal or external.
  3. Click Extract links.
  4. Use the type filter, search box and “only warnings” option to narrow the list.
  5. Copy the results or download them as CSV.

Key features

  • Extracts link text, href, rel and target from every <a href>.
  • Types: internal, external, relative, anchor, mailto, tel, empty and unsafe/unsupported.
  • Warnings for duplicates, empty text or href, unsafe schemes and _blank without noopener/noreferrer.
  • Filter by type, search, and show only links with warnings.
  • Safe, inert parsing of pasted or local HTML.
  • Copy Results and Download CSV of the filtered list.

Best practices

  • Enter your exact site origin (including www if you use it) for accurate internal/external labels.
  • Give every link descriptive text, or an aria-label or image alt text for icon links.
  • Add rel="noopener" to links that open in a new tab.
  • Remove javascript: links where a button or a real URL would be better.
  • Check important external links separately to confirm they still work.

Benefits

  • A full inventory of the links on a page in seconds.
  • Quick spotting of risky or low-quality links.
  • Spreadsheet-ready CSV for audits.
  • Private: HTML and URLs never leave your browser.

Frequently asked questions

Does the tool check whether links work?

No. It only reads links from the HTML you provide. It never visits URLs, so it cannot tell whether a link works, redirects, is indexed or leads to a safe page.

How are internal and external links decided?

If you enter a site origin, absolute links with the same host are internal and others are external. The origin is compared as text and never fetched. Without an origin, absolute links are labelled “Absolute”. Relative links are always labelled relative.

Which links are marked unsafe or unsupported?

Links using javascript:, data: or vbscript: are marked unsafe. Other schemes that are not http, https, mailto or tel (such as ftp: or file:) are marked unsupported.

Why is target="_blank" flagged?

Links that open a new tab without rel="noopener" (or rel="noreferrer") can give the new page access to the original window in older browsers. Adding rel="noopener" is a simple safeguard.

What does the CSV contain?

The links that match the current filter and search, with number, link text, href, type, rel, target and warnings.

Is pasted HTML run or loaded?

No. It is parsed as inert data: scripts, event handlers, images, styles and frames are never run or loaded, and link text is always displayed as plain text.