URL Extractor

Pulls every URL out of a block of text — raw HTML, an email, a chat export, a document — removes duplicates and gives you a clean list. It reads the text you paste; it does not fetch or crawl anything.

Live demo · real result from this tool
Links3

Links

https://example.com/docs https://en.wikipedia.org/wiki/URL www.example.org/page

Processed on your device — nothing is uploaded.

How to use URL Extractor

  1. Paste the text, HTML or export containing the links.
  2. Press extract.
  3. Copy individual URLs or the whole deduplicated list.
  4. Works directly on raw HTML — no need to strip tags first.
  5. Only absolute http and https URLs are matched; relative paths are not.
  6. Nothing is fetched or visited — the tool only reads the text you provide.

What it finds, and what it misses

The scan matches http and https URLs wherever they appear, including inside HTML attributes and markdown link syntax, because the surrounding markup does not match the pattern and is skipped. What it cannot find is anything not written as a URL in the text you pasted: relative links like /about, protocol-relative ones starting //, links assembled by JavaScript after the page loads, and addresses written as “example dot com”. If a page looked full of links and the result is short, view-source rather than copying the rendered page.

Where the trailing punctuation goes

URLs at the end of a sentence collect the full stop, and URLs in brackets collect the closing bracket, because both are legal URL characters and no pattern can reliably tell intent from syntax. Wikipedia URLs containing genuine parentheses are the standard example of why this cannot be solved perfectly. Scan the tail of each extracted link before using the list programmatically.

Practical uses

Auditing which external sites a page links to. Pulling every link out of a newsletter or an email thread to check or archive them. Extracting the URLs from a chat export or a document before migrating it. Building a list to feed into a link checker. Recovering the links from an HTML export when you no longer have the source.

Frequently asked questions

What URL formats are detected?
http://, https://, ftp://, and bare www. domains are all detected.
Are duplicates removed?
Optional — duplicates can be removed or kept with counts.
Can I filter by domain?
Not directly, but you can copy and use the URL Slug tool on each result.
Does it follow the links or check if they work?
No. It extracts the text of URLs and nothing more — no requests are made. Feed the resulting list into a link checker if you need to know which ones still resolve.
Why are relative links missing?
Because a relative path like /about is not a complete URL and cannot be resolved without knowing the page it came from. Only absolute http and https addresses are matched.
Can I extract links from a web page?
Paste the page's HTML source rather than the rendered text — use view-source or copy from your browser's developer tools. Copying what you see on screen gives you the link text, not the addresses behind it.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close