A link extractor cheat sheet is a quick reference for turning pasted HTML into a deduplicated, one-target-per-line inventory of href values without sending requests to those destinations. For this task, the Link Extractor scans href attributes on a, area, and link start tags in pasted source. Supplying the source page’s absolute HTTP or HTTPS URL resolves root-relative, path-relative, parent-relative, and scheme-relative paths into absolute addresses; without a base, relative targets remain relative so the tool does not invent a host. Results retain first-seen order, remove exact duplicates after normalization, and report unique, duplicate, and skipped counts. Absolute web, mail, and telephone targets are retained, while empty values, same-document fragments, executable or embedded-data schemes, and invalid absolute URLs are omitted. The HTML and extracted targets stay in your browser, and the tool never visits a discovered target. The list is useful for preparing an authorized SEO or migration review, comparing source order, and handing clean targets to another checking tool. Verify status, redirects, relationship attributes, rendered links, and other health facts separately.

Quick Reference: Input, Output, and Choice
Use this workflow for a local static-source inventory, not as a live crawl. The tool accepts pasted HTML rather than a remote page URL, and an optional base URL supplies resolution context without being fetched. The choices below determine whether the output stays relative, becomes absolute, or is ready for separate review.
| Goal | Provide | Result | Key caution |
|---|---|---|---|
| Inventory link targets | Pasted HTML source | Normalized target list | This is an inventory, not a crawl |
| Make relative paths absolute | Source plus an absolute HTTP(S) base | Resolved absolute addresses | The base cannot contain credentials |
| Remove repeated targets | The same source and base | Exact normalized uniques | Semantically different URLs are not merged |
| Prepare for a later check | The copied result | One target per line | Destinations must be reviewed separately |
Use a base only when relative paths need absolute addresses. Leaving it blank is not an incomplete setup: it is the correct choice when the result should preserve relative href values without assigning them to a guessed host.
Prepare the Source and Base URL
Work from source you are authorized to inspect. You can copy page source from an authorized page or obtain HTML through your own crawler. A partial snippet can reveal only the links present in that snippet, so use complete source when the aim is an inventory. The tool cannot fetch a remote page URL for you.
- Keep the input within the 200,000-character scan limit. Split very large documents or handle them with a controlled crawler.
- Use an absolute page URL as the base only when relative href values should become absolute addresses.
- Make the base a valid HTTP or HTTPS URL; other base schemes are not accepted.
- Keep credentials out of the base URL so user information is not copied into resolved results.
The base is resolution context, not a fetched page and not proof that the pasted document came from that address. Check the URL against the source before relying on its resolved output.
Extract Links from Pasted HTML
Follow this sequence to create a reviewable list without confusing extraction with destination validation.
- Paste authorized HTML source. Use source from a page you may inspect or HTML supplied by your own crawler, and keep the document within the 200,000-character input limit.
- Add a base when needed. If relative paths should become absolute, enter the source page’s absolute URL. It must use HTTP or HTTPS and contain no credentials; otherwise, leave the base empty so relative values remain relative.
- Choose Extract the links. The bounded scan runs locally, removes excluded source regions, reads href attributes on a, area, and link start tags, normalizes supported targets, and never requests a discovered destination.
- Review the result and counts. Check the one-target-per-line output alongside the unique, duplicate, and skipped counts. The skipped count makes the filtering decision visible instead of hiding omissions behind a short list.
- Copy the list for authorized follow-up. Use the targets for a permitted crawl or audit, then separately verify HTTP status, redirects, rel meaning, and links present only in the dynamic DOM.
Read the Counts and Result
The result is designed to be read as an inventory with a transparent record of normalization and filtering. Mailto and tel targets remain because they are legitimate destinations even though they are not web pages. The first-seen order of retained targets is preserved.
| Count | Meaning | How to use it |
|---|---|---|
| Unique | Normalized targets remaining after exact deduplication | Use this as the primary review list |
| Duplicate | Repeated targets removed after normalization | Inspect repetition in the original source |
| Skipped | Values omitted by empty-value, fragment, scheme, and validity filters | Account for every exclusion before drawing conclusions |
Deduplication takes place after normalization. Two identical relative links that resolve to the same absolute address collapse into one entry, while URLs that differ by tracking parameters, fragments, case-sensitive path text, or redirect behavior are not assumed to identify the same resource. This makes the output useful for comparing source order, but it is not proof of content identity.
Included, Skipped, and Decoded Values
The scan is deliberately source-oriented. An a element normally points to a destination, an area element adds an image-map target, and a link element can reference a stylesheet, icon, canonical page, or alternate resource. The tool includes all three because its job is a source inventory; it does not infer whether a target is navigational, canonical, preload, stylesheet, or another relationship.
- Parsed: href attributes on a, area, and link start tags.
- Retained: absolute HTTP and HTTPS targets, mailto and tel targets, plus relative values when they can be resolved or should intentionally remain relative.
- Skipped: empty values, same-document fragments, javascript, data, vbscript targets, and invalid absolute URLs.
- Decoded: decimal and hexadecimal numeric character references, plus the named references amp, quot, apos, lt, and gt inside href values.
- Excluded from scanning: comments, common raw-text containers, and template contents within the bounded source contract.
- Not executed: scripts are not run, and a framework application is not rendered.
The named-reference list is intentionally small rather than a full HTML named-character database. Rare named references can therefore remain encoded; the tool does not apply a guessed or incomplete global entity table.
Resolve Relative Paths Without Guessing
With a valid base URL, the browser URL model resolves root-relative paths such as /pricing, path-relative paths such as guide/page, parent-relative paths such as ../guide, and scheme-relative values beginning with //host. For example, /pricing under https://example.com/products/page becomes https://example.com/pricing. Without a base, the relative value remains relative. Absolute HTTP, HTTPS, mailto, and tel targets are normalized directly.
Resolution changes how a target is represented, not whether it is healthy. A resolved absolute URL can still redirect, return an error, require authentication, or point to a resource outside your site.
Use the List as an SEO Audit Inventory
The output does not classify links as internal or external, test HTTP status, evaluate rel attributes, or decide SEO quality. A listed target may redirect, return an error, require authentication, be blocked by robots controls, or intentionally point off-site. For a wider workflow, see extracting all URLs from page source for an SEO audit.
- Run status and redirect checks with an authorized crawler or validation tool.
- Read each relevant rel attribute in the source; the presence of a link does not explain its relationship.
- Compare the static-source list with a browser DOM export when scripts may add links.
- Review authenticated, off-site, and policy-controlled destinations under the appropriate access rules.
- For a legal, security, or migration audit, compare the original source, a browser DOM export, and a real crawler rather than relying on one extraction channel.
Limits to Check Before Relying on the Output
The main boundary is the difference between pasted static source and a fully rendered page. The extractor is a bounded source parser rather than a complete browser HTML tree builder.
- Dynamic content: links inserted after scripts run do not exist in the pasted source and will not be found.
- Malformed markup: severely malformed input, unusual unquoted attributes, missing raw-text closing tags, or browser error recovery can produce a different structure from a browser DOM.
- Large documents: input is capped at 200,000 characters, so very large documents should be split or handled with a controlled crawler.
- No remote fetching: the tool accepts source rather than fetching a page URL, and it does not request, validate, or check the status of extracted targets.
The safe interpretation is a transparent inventory of what the bounded scan found, not a complete health report. Keep the original source, the extracted list, the base URL used, and the reported counts together so another reviewer can reproduce the extraction and assess its limits.
For a deeper look, see Sitemap Generator: Build XML From a URL List.