Link Extractor

Pull every link out of an HTML document as anchor text and URL, one per line.

HTML
Links
Runs locally in your browser

About the Link Extractor

Auditing a page's links, building a redirect map, or checking which URLs an email template points at all start with a list of links. This tool parses the HTML and lists each <a href> as its visible text followed by a tab and the URL, which pastes into a spreadsheet as two columns. Links with no text, such as icon links, are shown as "(no text)" so they are not lost.

URLs are reported exactly as written in the markup, relative or absolute, because resolving them needs the page's base URL which the tool does not have. Paste the resulting list into the URL Parser to inspect a single link, or use the Sort Lines tool to group by domain.

For the plain text of the page without links, use HTML to Text.

How to use

  1. Paste the HTML source.
  2. Copy the list; the status shows how many links were found.
  3. Paste into a spreadsheet for two columns.

Common questions

Does it fetch the page for me?
No. Paste the source yourself (Ctrl+U in most browsers shows it). Nothing is downloaded by the tool.
Are image links included?
Only anchors are listed. Use the Image Extractor for img sources.
Can it find links in JavaScript?
No, only links present in the HTML markup.