The Link Extractor is a local source parser that finds href values in pasted HTML and produces a deduplicated, one-URL-per-line list without visiting any discovered destination.

The Link Extractor is designed for that source-inventory task. You paste authorized HTML, optionally supply the source page’s absolute URL as a resolution base, and review the resulting targets before using them in an authorized crawl or audit. The HTML and extracted targets stay in your browser, and the tool never requests the URLs it finds.

For SEO work, this boundary is important. The result can show which link targets are present in the supplied markup, but it cannot establish whether a target is healthy, redirected, canonical, nofollow, internal or present only after JavaScript runs.

link extractor explained
Link Extractor Explained: How Source Parsing Works

The core extraction model

Link extraction operates at the source level rather than by following a page’s navigation. The tool scans HTML start tags for href attributes, normalizes the values it accepts, removes duplicate targets and returns the remaining entries in first-seen order. This makes the output suitable for building an initial inventory from markup you already have.

The parser is deliberately bounded rather than a complete browser HTML tree builder. It does not execute scripts, render a framework application or reconstruct every browser error-recovery behavior. It works with pasted source because that gives you control over what is analyzed and avoids silently contacting every destination found in the markup.

Comments and common raw-text containers are removed before scanning. As a result, text that merely resembles anchor markup inside JavaScript, style content or literal text is less likely to become a false link. Template contents are also outside the tool’s bounded scanning scope.

Which markup contributes targets

The extractor includes all three HTML elements that can carry an href in the supported source scan. It does not decide what role each target plays.

Element scanned Source role What the extracted list establishes
a An ordinary destination opened from page content The href target only; it is not classified as internal, external or navigational
area A target associated with an image map The href target only
link A resource or document relationship such as a stylesheet, icon, canonical page or alternate resource The href target only; the tool does not infer the link relationship

Attribute values receive limited character-reference decoding. The parser handles decimal and hexadecimal numeric references plus the named references amp, quot, apos, lt and gt. This covers common URL query escaping such as &, but it is not a full HTML named-character database. Rare named references can therefore remain encoded rather than being expanded through a guessed global entity table.

Resolution, normalization and order

A relative href does not contain a complete origin, so an optional base URL determines how it is interpreted. With a valid absolute HTTP or HTTPS base, root-relative, path-relative, parent-relative and scheme-relative values are resolved through the browser URL model. For example, href="/pricing" under https://example.com/products/page becomes https://example.com/pricing.

Without a base URL, relative values remain relative. The extractor does not guess a host, which avoids attaching extracted links to the wrong domain. Absolute HTTP and HTTPS values are normalized directly, while mailto: and tel: targets are retained because they are legitimate link destinations even though they are not web pages.

The base URL must use HTTP or HTTPS and cannot contain credentials. A credential-bearing or otherwise invalid base is rejected, preventing misleading resolution or copying user information into every resolved result. Use the URL of the page where the source was obtained, because a path-relative or parent-relative target depends on that page’s directory.

Normalization happens before exact deduplication. Two different relative href values that resolve to the same absolute address can therefore become one entry when a base is supplied. Without a base, they remain different relative strings. The output retains the first occurrence of each normalized target, making it possible to compare the cleaned list with source order.

Deduplication is exact after normalization. The tool does not claim that URLs differing by tracking parameters, case-sensitive path differences or eventual redirect destinations identify the same resource. It neither sorts the list nor converts it into a crawl report.

  1. Obtain authorized HTML. Copy the page source from a page you are allowed to inspect, or obtain the HTML through your own controlled crawler. The tool cannot fetch a remote URL for you. Keep the pasted input within the 200,000-character limit; split larger documents or handle them with a controlled crawler.
  2. Paste the source and choose the right base. Place the HTML in the source field. If it contains relative links and you need absolute results, enter the source page’s absolute HTTP or HTTPS URL. Do not include credentials in the base URL.
  3. Run the extraction. Select the extraction action. The parser removes excluded comments and raw-text sections, scans the supported start tags and processes the accepted href values.
  4. Review the counts and output together. The unique figure corresponds to the cleaned entries, the duplicate figure covers repeats removed after normalization and the skipped figure reports omitted values. Compare those figures with the one-target-per-line result before copying it.
  5. Copy the list into a separate review process. Use it for an authorized crawl, migration check or SEO audit. Check response status, redirects, rel meaning, authentication requirements and links rendered by scripts separately; the extraction result alone cannot answer those questions.

Interpret omissions and skipped values

The filtered categories are intentional rather than evidence that the source contains no additional links:

  • Empty href values are skipped.
  • Same-document fragment targets are skipped.
  • JavaScript, data and VBScript targets are omitted as executable or embedded-data schemes.
  • Invalid absolute URLs are skipped.
  • Links inserted after scripts execute are absent because they do not exist in the pasted static source.

The skipped count helps expose those filtering decisions. It should not be interpreted as a complete measure of every link that a browser might eventually create. Likewise, a short list does not prove that the original page had few links; malformed markup, raw-text boundaries, templates, dynamic rendering and the input cap can all affect what the source scan sees.

Mail and telephone targets remain in the list, so the output is not necessarily a list of crawlable web pages. If you need only HTTP or HTTPS crawl targets, filter or separate those schemes in your later authorized review process.

Turn the inventory into an SEO review

The extracted list is a starting set, not a health report. A target may redirect, return an error, require authentication, be blocked by robots controls or intentionally point to another site. The tool also includes link element targets without telling you whether they represent a canonical page, stylesheet, icon or another relationship.

Review question What extraction establishes Separate verification needed
Which targets survived parsing and filtering? A deduplicated source inventory in first-seen order Compare with the original source when omissions matter
Does the target load successfully? Nothing about response status Use an authorized status checker or crawler
Does the target redirect elsewhere? The original href target only Check the redirect chain separately
Is the relationship nofollow, canonical or another type? The href value without relationship analysis Inspect rel attributes and surrounding markup
Is the target internal or external? No internal or external label Compare the resolved host with the relevant site scope
Does the target appear only after rendering? Only what is available in pasted static source Inspect a browser DOM or run an authorized crawler

Keep those stages separate: extract the source inventory, review its counts, crawl the permitted URLs and then interpret the technical and SEO findings. For a broader review sequence, follow the SEO audit workflow for extracting all URLs from page source, while retaining responsibility for authorization and destination checks.

Verify beyond the source parser

For routine inventory work, the pasted-source method provides a clear and repeatable starting point. For a legal, security or migration audit, use more than one channel. Severely malformed markup, unusual unquoted attributes, missing raw-text closing tags and browser error recovery can cause a browser DOM to differ from the bounded source scan. Compare the original source, a browser DOM export and a real crawler before making a high-impact decision.

This division of responsibility keeps each result meaningful: Link Extractor identifies and filters targets in the source you supply, while a browser or crawler reveals runtime links and network behavior. The extracted list is complete only for its stated parsing and filtering rules, not for every link a user could eventually reach.

If you're weighing options, Link Extractor for Beginners: A Practical First Run covers this in detail.