HTML Link Extractor
Extract real HTML anchor URLs with link text, rel attributes and same-origin classification, resolving relative paths against an explicit base URL.
Start with your input
Edit the example or replace it with your own text.
Choose your options
These settings are optional. Keep the defaults to get started.
How to use HTML Link Extractor
- Paste HTML containing a or area elements with href attributes.
- Set the page URL used to resolve relative references.
- Extract HTTP(S) links as structured JSON and review their labels and attributes.
Use markup semantics rather than a URL regex
The tool parses an inert HTML template, decodes character references in href values, and resolves relative and protocol-relative links against the supplied base. It exports link text or area alt text, resolved URL, rel tokens, target and a nofollow flag. URL candidates outside real anchor elements are not included.
Classify origins without visiting destinations
A same-origin label means the resolved scheme, host and port match the supplied base origin. It is not a statement about ownership, trust or ranking. Non-HTTP schemes are skipped. Embedded base tags are ignored in favor of your explicit input. Deduplication retains the first resolved URL and its label. The tool does not execute scripts, apply external CSS or check whether destinations exist.
Example input
<a href="/docs">Documentation</a> <a href="https://other.example/" rel="nofollow noopener">Partner</a>
How is this different from the URL Extractor?
The URL Extractor scans plain text. This tool reads actual HTML anchors, resolves relative links and retains anchor metadata.
Is input uploaded?
Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.