HTML links, created with the <a> (anchor) tag, are the foundation of web navigation. They connect pages, documents, and resources across the internet. Each link can contain multiple attributes: href (the destination URL), title (hover text), rel (relationship to the target), and target (where to open the link). Understanding the link structure of a webpage is essential for SEO analysis, site audits, and web development.

Links are categorized by their destination type. External links point to other websites using full URLs. Internal links navigate within the same site using relative paths. Anchor links jump to specific sections on the same page. Special protocols like mailto: and tel: trigger email clients and phone dialers respectively.

Tool description

This tool parses HTML code and extracts all hyperlinks with their complete attributes. It automatically classifies each link by type (external, internal, anchor, mailto, tel, or javascript) and displays them in a sortable table. Statistics show the breakdown of link types at a glance, making it easy to analyze the link profile of any webpage.

Examples

Input HTML:

<nav>
  <a href="https://example.com">External Site</a>
  <a href="/about" title="About Us">About</a>
  <a href="#contact">Contact Section</a>
  <a href="mailto:info@example.com">Email Us</a>
</nav>

Extracted links:

URL Text Type Title
https://example.com External Site external
/about About internal About Us
#contact Contact Section anchor
mailto:info@example.com Email Us mailto

Features

  • Extracts all link attributes: URL, text, title, rel, and target
  • Automatic link classification into six types
  • Real-time statistics showing link type distribution
  • Sortable results table for easy analysis
  • Base URL support to make internal links clickable
  • Filter options to hide empty links or show only external links

Use cases

  • SEO audits: Analyze a page's link profile to identify broken links, missing rel attributes, or excessive external linking that could affect search rankings.
  • Website migration: Extract all internal links from HTML to ensure no pages are missed when moving to a new domain or restructuring site navigation.
  • Competitive analysis: Examine competitor pages to understand their linking strategy, including which external resources they reference and how they structure internal navigation.

Options explained

Option Description
Base URL Enter the website's base URL to make internal links clickable in the results table
Show empty links Include links that have no href attribute or empty href values
Show only external Filter results to display only links pointing to external domains
Type Description Example
External Full URLs pointing to other websites https://example.com
Internal Relative paths within the same site /about, contact.html
Anchor Fragment links to page sections #section-name
Mailto Email address links mailto:user@example.com
Tel Phone number links tel:+1234567890
JavaScript Script-triggered links javascript:void(0)

Tips

  • Paste the complete HTML source of a page for accurate results—partial HTML may miss links in omitted sections
  • Use the base URL field when analyzing internal links to quickly verify they resolve correctly
  • Sort by the "type" column to group similar links together for faster review
  • Enable "Show only external" when checking for unwanted outbound links or verifying affiliate link placement