HTML Link Extractor
Instantly parse HTML to extract all URLs, anchor text, and link attributes
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
- 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.
- Click Extract All Links.
- Review the Extracted Links Result panel. Every card shows the anchor text in bold above the URL.
- 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.
- 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
- Canonical Tags Explained: Fix Duplicate Content
- Internal Linking Guide for Better SEO
- Broken Links: How to Find and Fix The
Related Tools