Back to Tools

HTML Link Extractor

Instantly parse HTML to extract all URLs, anchor text, and link attributes

0
HTML Source
1

Pull every hyperlink out of a block of HTML

Scanning source code by eye for href values is slow and easy to get wrong, especially in a long navigation menu or a newsletter with dozens of buttons. This extractor reads the HTML you paste, finds every anchor element and lists each one as a card showing its visible text and its destination. A counter in the header, labelled Links Found, tells you the total at a glance.

Getting your list

  1. Paste markup into the HTML Source editor. You can also use the Paste button, or Load Sample to see how the results look for a small list with an internal path and a mailto address.
  2. Click Extract All Links.
  3. Review the Extracted Links Result panel. Every card shows the anchor text in bold above the URL.
  4. Press the small copy icon on a card to copy just that URL, or click Copy as CSV to copy the full list with the header row Anchor Text,URL.
  5. Use Clear to empty the editor and start again with different code.

What gets counted, and what does not

  • Only anchor (a) elements are listed. Stylesheet links, script sources, image sources and form actions are ignored.
  • URLs appear exactly as written in the code. A relative path like /internal stays relative and is not turned into a full address.
  • An anchor without an href attribute is shown with a hash symbol as its destination.
  • If a link wraps only an image, the card displays a placeholder saying no anchor text exists.
  • Duplicates are not merged, so a link used three times appears three times.

Practical uses

  • Checking an email template before sending to make sure every button points where it should.
  • Building a starting list for a broken-link check or a redirect map during a site migration.
  • Auditing the outbound links inside a blog post you copied from a CMS editor's HTML view.
  • Extracting the menu structure from a saved example page to use in a mock-up.

Tips and cautions

The CSV is created directly from the text on screen. Quotes inside anchor text are not escaped, so check any unusual rows before importing into a spreadsheet. Since the tool reads only the code you paste, it cannot follow links, test whether they load, or fetch a live page from a web address; paste the page's source instead. Everything runs as JavaScript in your browser tab. For pages that build their menus with scripts after loading, copy the rendered HTML from your browser's developer tools rather than the original page source, because the original may not contain those anchors yet.

Related Articles

Related Tools






Frequently Asked Questions

Can I enter a web address instead of pasting HTML?
No. The extractor works only on markup you paste into the box; it does not download pages. Open the page, view its source or copy the element from developer tools, and paste that code in.
Does it show rel, target or nofollow attributes?
No. Each result shows only the anchor text and the href value. If you need to review attributes such as rel or target, look at the original HTML, or format it first so those attributes are easy to read.
Are relative links converted to full URLs?
No. Links are listed exactly as they appear in the source, so a path like /contact stays as /contact. You would need to add your domain yourself when moving them to a spreadsheet.
What does the CSV contain?
It has a header row of Anchor Text,URL followed by one row per listed link, copied to your clipboard rather than downloaded as a file. Paste it into a spreadsheet or text editor and save it there.
Will it find links inside JavaScript or images?
It only detects anchor tags present in the pasted HTML. Links generated by scripts, image sources and CSS urls are not detected, and clickable image maps using area tags are also not listed.
Support Chat
We typically reply within minutes

Hello! 👋 Before we start, please tell us your name.