How-to guide

How to Extract URLs From Text: Free Online Tool (2026)

Updated 2026-11-261272+ wordsFree tools · no signup

To extract URLs from text, paste the text into the URL Extractor and read the result: every link in the text appears instantly, one per line, with a Found counter showing how many were extracted. The tool extracts all links from text, including bare domains and full URLs, and it runs entirely in your browser — nothing is uploaded — free with no signup. This guide shows the exact steps, a worked example with the counts done by hand, and which link shapes count (full URLs, www. links, bare domains) versus forms no text extractor can see (relative paths, hidden hyperlink targets).

How to extract URLs from text (step by step)

  1. Copy the text that contains the links — an article draft, email thread, chat log, spreadsheet column, or page source. For a web page's links, use View Source (Ctrl+U / Cmd+Option+U), select all, and copy: the extractor reads the href addresses in the HTML as plain text (route described by competitor guides; the extractor itself only needs pasted text).
  2. Open the URL Extractor and paste into the "Your text" box. The result updates as you type — there is no Extract button to press.
  3. Read the Found counter and the result list. Each extracted link appears on its own line; the counter tells you how many were found in total.
  4. Select the result text and copy it to your clipboard, then paste it into your document, spreadsheet or link checker. If the same link appears more than once in your source and you need each address once, run the result through the Remove Duplicate Lines tool — deduplication is not stated on the URL Extractor page, so do not assume it.
  5. Sanity-check the list before using it: open a sample of links, and remember extraction finds link-shaped text — it does not check whether pages still exist. Run a link checker separately if dead links matter.

Worked example (hand-checked)

Paste this test text:

Read https://example.com/docs/start?ref=mail or www.example.org/help today. Mirror at example.net/about and https://sub.example.co.uk/a/b#top for details

Count the links by hand:

  • https://example.com/docs/start?ref=mail — full URL with path and query string = 1
  • www.example.org/help — www. link with path = 1
  • example.net/about — bare domain with path (the page states bare domains are included) = 1
  • https://sub.example.co.uk/a/b#top — full URL with subdomain, multi-part ending and fragment = 1

Total: 1 + 1 + 1 + 1 = 4 links, so the Found counter should read 4 and the result should list those four addresses. This matches the behaviour shown on the live page itself, whose sample output lists two links — https://hellagape.com (a full URL) and www.example.com (a www. link) — under a Found 2 counter. If your own paste returns a different count, check for obfuscated or split links first: example [dot] com contains no real dots, and a link broken across lines by your email client is two fragments, not one address.

What counts as a URL?

The hellagape page states the scope in one line — all links, including bare domains and full URLs — without publishing its matching rule. Treat this as the standard practical shape, confirmed by the page's own sample: a link is a run of non-space characters that is either a full URL starting with http:// or https://, a www. address, or a bare domain like example.net/about. Consequences you can rely on:

  • Query strings (?ref=mail) and fragments (#top) are part of the link.
  • Subdomains and multi-part endings (sub.example.co.uk) count.
  • Bare domains count here — unlike several competitor extractors that explicitly skip them.
  • Relative paths (/blog/post) have no domain and are not links in text; competitor guides confirm extractors skip them. Paste the page source instead if you need a site's internal links resolved.
  • A hyperlink whose address is hidden behind anchor text ("click here") has no address in copied plain text. Copy the HTML source, where the href value is visible text.

Extraction is pattern matching, not validation: a typo'd domain still matches the shape, and a perfectly shaped link can point at a dead page. Whether a URL resolves is a separate check no extractor can do from text alone.

Tips and common mistakes

  • Paste source, not rendered pages, for link audits. Rendered copy loses hidden href targets; page source keeps every address as text.
  • Do not expect sorting, filtering or tracking cleanup. The page read for this guide shows no sort, domain-filter or tracking-parameter options — output is the extracted list with a Found count. Sort with Sort Lines, dedupe with Remove Duplicate Lines, and strip utm_ parameters with Find and Replace if you need them gone.
  • Files go through copy-paste. There is no upload step stated on the page: open the document, log or spreadsheet, copy its text, and paste. Scanned-image PDFs have no text layer to copy — run OCR first.
  • Watch line-wrapped links. Email and chat clients wrap long URLs across lines. Rejoin wrapped links before pasting, or the extractor will faithfully return the fragments.
  • Mind privacy. The tool runs in your browser and the page states input is processed in memory on your device and never uploaded, logged or shared — safe for drafts and support tickets. Still, only extract and reuse links you have the right to use.

Related tools: Extract Emails and Extract Numbers pull the other common patterns out of the same text; URL Slug Generator turns titles into clean URL slugs.

FAQ

How do I extract URLs from text? Paste the text into the URL Extractor. Every link appears instantly in the result, one per line, with a Found counter. Select and copy the list to take it with you.

Does the URL Extractor find bare domains like example.com? Yes — the page states it extracts all links including bare domains and full URLs, which several competitor tools explicitly do not. A bare domain with a path, such as example.net/about, counts.

Can I extract links from a web page or HTML? Yes, once the addresses are in copyable text: open View Source, copy the HTML, and paste it in. The href values are plain text in the source. Relative paths like /about have no domain and are skipped.

Does the extractor remove duplicates? Deduplication is not stated on the page, so do not assume it. If you need each address once, paste the result into Remove Duplicate Lines, which keeps first-appearance order.

Is my text uploaded anywhere? No. The tool runs in your browser with JavaScript; the page states input is processed in memory on your device and never uploaded, logged or shared. It is free with no account and no daily limit.

Why didn't it find a link I can see? Usually the link is hidden behind anchor text in rendered copy, obfuscated (example [dot] com), split across lines, or relative (/blog/post). Paste the HTML source or rewrite the link in normal form and try again.

Can I sort or clean tracking parameters from the results? Not inside this tool — no sort or filter options are stated on the page. Use Sort Lines for A–Z order and Find and Replace to strip utm_ and similar parameters from a copy.

How do I extract URLs from an Excel or Sheets file? Select the cells, copy, and paste into the extractor. If cells contain hyperlinks inserted with Insert → Link, the address is not part of the cell text — download the sheet as HTML and paste its source instead.

Try it now

URL Extractor

Extract all links from text, including bare domains and full URLs.

Open the free tool