Extract

Pull every web link out of any block of text

Extract all URLs and hyperlinks from any block of text or document paste.

🛡️ Your rows never leave your browser.
Why Onfyt: Preserves query strings and hash fragments that simpler extractors silently truncate.

Interactive Sample Data

idraw_text
1Visit https://datafix.io/tools or http://docs.example.co.ke for help.
2API: https://api.datafix.io/v2?format=json#auth
3No links in this line at all.

How this tool works

Web pages, email bodies, chat logs, and PDF exports are dense with hyperlinks that need cataloguing — for SEO audits, link-rot checks, competitive research, or simply building a clean reference list. Copying every link by hand from a long document is tedious and misses half of them. The extraction pattern recognises absolute URLs starting with http://, https://, or ftp://, as well as bare domain references that follow common patterns (www.example.com). Query strings, hash fragments, and path segments are preserved intact because they carry meaning — stripping them would break the links. Controls on this page: - Paste any text into the input panel (or upload a .txt file). - Type your instruction — "extract all URLs" — and click Run. - The output shows one URL per line. - Add "HTTPS only" to filter to secure links. - Add "deduplicated" to collapse identical URLs into one. All extraction runs inside your browser. No data reaches any server.

Things that usually go wrong

  • Bare domains without a scheme ('example.com' with no http://) may not match unless the text clearly shows them as links.
  • URLs wrapped across two lines by a mail client will be split — remove line breaks first.
  • Markdown link syntax ([text](url)) is supported: the URL inside the parentheses is extracted.

Edge cases we tested

🧪 URL with query string and fragment (https://x.com/path?q=1#section)

Extracted intact including all path, query, and fragment components.

🧪 URL ending with a full stop in a sentence ('Visit https://x.com.')

Trailing sentence period stripped; URL returned without trailing dot.

🧪 URL inside HTML href attribute ()

Inner URL extracted; surrounding HTML stripped.

🧪 Duplicate URLs appearing three times in the text

Collapsed to one occurrence when 'deduplicated' is in the instruction.

🧪 Text containing no URLs

Returns empty result with 'No URLs found.' message rather than an error.

Frequently Asked Questions

Will it extract URLs inside HTML source code?

Yes. URLs in href, src, and action attributes are extracted along with bare http/https URLs in text nodes.

Does the tool follow redirects or check whether links are alive?

No — extraction only. Use a link-checker tool to verify whether each URL returns a 200 OK.

Can I extract only links from one domain?

Yes — add 'from domain example.com only' to your instruction and the engine filters the results.

What is the maximum text size?

The engine handles several megabytes of plain text running entirely inside your browser tab.

Related tools

Extract

Extract Emails from Text

Extract all email addresses from any block of text or document paste.

Open Tool →
Clean

Clean URLs (Remove Tracking Parameters)

Strip UTM parameters, fbclid, gclid, and marketing tracking tokens from CSV URL columns.

Open Tool →
Extract

Extract Domain from URL

Extract the root domain, subdomain, path, or protocol from full URL strings in a CSV column.

Open Tool →
Extract

Extract Emails, Phones or URLs from a Column

Extract email addresses, phone numbers, or URLs embedded in free-text CSV cells into separate columns.

Open Tool →