Code · Made a little simpler

Link Extractor

Extract link destinations from pasted HTML or a local file. Resolve relative URLs, group repeated references, filter by type and export a CSV with source locations.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Link Extractor: how to use it

  1. Paste HTML source or open a local HTML file. Enter the page’s full address if you need relative URLs resolved in context.
  2. Choose Extract links. Check the relative URL base and filter by the link type you want to review.
  3. Turn on Show repeated references for every source location, or download the current selection as CSV.

Limits and notes

Use up to 250,000 UTF-16 units of HTML. The extractor reads a[href], area[href], link[href], img[src] and script[src] in the parsed document. It reports literal markup, with URL resolution on the device and no visits to the extracted destinations.

How your privacy works →

Link Extractor: common questions

Which address resolves relative links?

The supplied page address is the fallback base. A valid first base href in the document can change where relative references resolve. The report displays the effective base.

What counts as an internal link?

An HTTP or HTTPS hyperlink with the same hostname as the page address is internal. When no page address is supplied, an absolute base in the HTML can supply the comparison hostname. Without either, the report labels absolute addresses Web link and keeps unresolved paths visible.

Why does an address have more than one occurrence?

Grouped rows combine the same destination and category. Expand repeated references to see the original attribute values and positions individually.

Will this report whether a link is broken?

The report checks the markup and resolves URL strings. Status codes and redirects require an observation of the destination, which this workspace leaves untouched.

Guides