Link Extractor
Extract unique href values from pasted HTML, resolve relative paths against an optional base URL and omit executable schemes without requesting any discovered destination.
Privacy: your files never leave your device. All processing happens locally in your browser.
How to use
- 1.Paste authorized HTML source and optionally enter its absolute page URL to resolve relative href values.
- 2.Extract the links, then review the unique, duplicate and skipped counts together with the one-per-line result.
- 3.Copy the list for an authorized crawl or audit; separately verify status, redirects, rel meaning and dynamic DOM links when needed.
About Link Extractor
Link Extractor turns pasted HTML source into a deduplicated list of link targets. It scans start tags for href attributes on a, area and link elements, decodes a bounded set of attribute character references, and returns one target per line. Add an optional base URL when you want relative paths resolved into absolute addresses. The HTML and extracted targets stay in the browser, and the tool never requests the listed destinations.
A page source can contain several kinds of links. Ordinary anchors point users to documents, area elements add targets to image maps, and link elements can reference stylesheets, icons, canonical pages or alternate resources. This tool includes all three element types because its job is source inventory. It does not infer whether a target is navigational, canonical, preload, stylesheet or another relationship.
When a valid HTTP or HTTPS base URL is supplied, root-relative, path-relative, parent-relative and scheme-relative values are resolved with the browser URL model. For example, /pricing under https://example.com/products/page becomes https://example.com/pricing. Without a base, relative values remain relative so the output does not invent a host. Absolute HTTP, HTTPS, mailto and tel values are normalized directly.
The parser decodes decimal and hexadecimal numeric character references plus the small named set amp, quot, apos, lt and gt inside href values. That covers common URL query escaping such as &. It is not a full HTML named-character database. Rare named references can remain encoded, which is preferable to silently applying a guessed or incomplete global entity table.
Empty values, same-document fragments and executable or embedded-data schemes are skipped. In particular, javascript, data and vbscript targets are never returned. Invalid absolute URLs are also skipped. The result reports how many unsafe or invalid values were omitted, so an apparently short list does not hide the filtering decision. Mail and telephone targets are retained because they are legitimate link destinations even though they are not web pages.
Duplicates are removed after normalization. Two identical relative links that resolve to the same absolute URL become one entry. The first-seen order is retained, which makes the list useful for comparing source order or feeding a later review. Deduplication is exact after normalization; it does not claim that URLs differing by tracking parameters, fragments, case-sensitive paths or redirect behavior identify the same resource.
Comments and common raw-text containers such as script, style, textarea, title, iframe, noembed and noframes are removed before link scanning. This prevents strings that merely look like anchor markup inside JavaScript or literal text from becoming false links. Template contents are also excluded by the bounded product contract. The implementation does not execute scripts or render a framework application.
This is a source parser rather than a full browser HTML tree builder. Severely malformed markup, unusual unquoted attributes, missing raw-text closing tags or browser error recovery can produce a different DOM from the bounded scan. The interface states that limitation. For a legal, security or migration audit, compare the original source, a browser DOM export and a real crawler rather than trusting one extraction channel.
The tool cannot fetch a remote URL because arbitrary cross-origin requests are often blocked and silently contacting pasted links would create privacy and security problems. Copy page source from a page you are authorized to inspect, or obtain HTML through your own crawler. Dynamic links inserted after scripts run will not exist in static source and therefore will not be found here.
Input is capped at 200,000 characters to keep the interactive scan bounded. Very large documents should be split or handled with a controlled crawler. Base URLs must use HTTP or HTTPS and cannot contain credentials. These checks prevent a misleading resolution context and keep user information from being copied into every resolved result.
Tests cover quoted and unquoted attributes, three link-bearing elements, relative URL resolution, HTML ampersand decoding, exact deduplication, comments, raw-text fake tags, same-page fragments, executable schemes, mailto and tel targets, invalid base schemes and credential rejection. Browser testing then proves the real form updates, result counts and clipboard path.
Use the output as an inventory, not a health report. A listed target may redirect, return an error, require authentication, be blocked by robots controls or intentionally point off-site. The extractor does not label internal versus external links, test HTTP status, evaluate rel attributes or decide SEO quality. Review and crawl the URLs with an authorized tool if those facts matter.
Methodology & sources
A bounded source scan removes comments and common raw-text containers, matches href attributes on a, area and link start tags, decodes numeric plus five basic named entities, resolves through an optional credential-free HTTP(S) base, filters executable schemes and deduplicates normalized targets in first-seen order.
Frequently asked questions
Related tools
- HTML CleanerNormalize an HTML fragment through the browser parser and optionally remove comment nodes without previewing or executing the result.
- HTML Entity Encoder / DecoderEncode HTML syntax characters or decode current named and numeric character references entirely in the browser.
- URL ParserBreak an absolute HTTP or HTTPS URL into normalized, credential-safe components and ordered query parameters locally.
- XML Sitemap GeneratorTurn a reviewed list of page URLs into a standards-based XML sitemap without crawling or uploading the site.
- Ads Txt GeneratorBuild a standards-shaped ads.txt file from explicit authorized-seller details, with strict field validation, duplicate protection and a ready download.
- Barcode GeneratorGenerate print-ready 1D barcodes (Code 128, EAN-13, UPC-A, Code 39) in your browser — free, no upload.