Skip to content
UniKit

Rich text link extractor

Pull every link out of pasted rich text, HTML or Markdown: href attributes, [text](url) and bare URLs, with optional base-URL resolution plus internal/external and per-host counts.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Rich text or HTML

Handles HTML href attributes, Markdown [text](url) and bare URLs; javascript:, mailto:, tel: and # anchors are skipped.

With a base URL, relative links such as /docs are resolved to absolute ones; leave it empty to keep them as-is.

Links

One address per line — copy them or download a TXT file.

Paste content to extract its links

What this tool does

  • Paste a page body and collect every link in one pass, then export the list as TXT for a backlink inventory
  • Check which links in an HTML snippet are internal and which are external, resolving relative links with a base URL
  • Extract all referenced addresses from a Markdown document and review dead or redundant links

Example

Input

<a href="/docs/start">Get started</a>
See [guide](https://example.com/guide) and https://other.example.org/x

Output

https://example.com/docs/start
https://example.com/guide
https://other.example.org/x

With the base URL https://example.com/, the internal /docs/start is resolved to an absolute URL; the three links count as internal, internal and external.

Frequently asked questions

Which link syntaxes are supported?

Three: HTML href="…" attributes (double-quoted, single-quoted or unquoted), Markdown [text](url) and bare https:// URLs in the body text. Trailing full stops, commas, quotes and unbalanced closing brackets are stripped from bare URLs.

How are relative links handled?

Without a base URL, relative links such as /docs or ./a.html are emitted as-is and counted under "Relative links". With a base URL (which must be a complete http(s) address) they are resolved using the browser URL rules and classified as internal or external by host. A malformed base URL raises an error.

Which links are skipped?

javascript:, mailto:, tel:, data: and vbscript: cannot be used as browser links, so they are skipped and counted under "Skipped"; #anchors and empty href values are skipped too. The count is always reported instead of being dropped silently.

How is this different from grepping the page source for href?

This tool matches with regular expressions rather than a full HTML parser, so links assembled inside scripts, attributes split across lines and malformed nested <a> tags may be missed or slightly misread — the FAQ says so honestly. It is designed for pasting a copied page body, and it also picks up Markdown and bare URLs.

Keywords:rich text link extractorhref extractoroffline

Related tools