TextToolbox
HomeExtract URLs from Text

Extract URLs from Text

Find web links that start with http, https or www in any text. Copy one or all of them, or download a TXT file. It does not check whether a link is safe.

Built by Saurabh Kumar

Quick Answer

Find parseable HTTP(S) and bare www candidates in plain text. Preserve originals by default. Query, fragment and trailing punctuation changes are separate opt-ins; deduplication follows transformations. Copy one/all or export TXT. No HTML decoding or destination safety check is performed.

Scan HTTP(S) and bare www candidates. Original spelling, query, fragment and trailing punctuation are retained by default. Cleanup and removal options change destinations; review before using them. This is plain-text scanning, not HTML link parsing or a safety check.

Paste Your Text

Extracted URLs

Paste text to extract links.

Recommended Tools

HTTP, HTTPS and www Candidates in Plain Text

The tool finds web addresses that start with http, https or www in pasted text. It accepts uppercase schemes and addresses with several host labels. Each candidate has to parse with the browser's URL feature, but parsing does not prove that the page exists or is safe. Use it on text you are allowed to inspect, and try a sample with punctuation, mixed case and unsupported syntax before you run the full text.

To use it, paste your text, choose how to remove exact duplicates and how to order the list, then copy one link, copy all, or export a TXT file. Removing the query, removing the fragment and cleaning punctuation at the end are separate options that you switch on yourself. HTTPS only keeps links with an explicit https scheme and drops bare www candidates.

Worked Example: What Stays and What Cleanup Changes

By default, HTTPS://Example.com/A?x=1#part comes out exactly as pasted. Remove query gives HTTPS://Example.com/A#part, and Remove fragment alone gives HTTPS://Example.com/A?x=1. A path that ends with an exclamation mark is kept by default.

Supported and unsupported inputs
InputResult or scope
www.sub.example.com/pathFull candidate retained
https://example.com/a(b)))Cleanup off: retained; on: /a(b)
/relative/pathNot scanned

What the Scanner Reads

The scanner finds candidates in text. It does not parse HTML attributes, decode & entities or resolve relative links. By default the output keeps the original case of the scheme, host and path, plus any credentials, port, query, fragment and punctuation. Host statistics keep www and do not count registered domains. Two links joined by a comma with no space, such as https://a.example/x,https://b.example/y, are read as one candidate. Duplicates are removed after any optional change has been applied.

When Cleanup Changes the Link

  • Cleanup can remove punctuation that belongs to the URL, so use it only when that punctuation is part of the sentence.
  • Removing the query can change which page or resource the link points to, not just remove tracking.
  • Removing the fragment can change where the link lands on the page.
  • A matched pair of closing parentheses is kept. Cleanup removes only extra closing ones at the end.

Limits, Copying and Privacy

Result links open only when you click them, and Copy is a separate action. You can paste up to 1,000,000 UTF-16 code units. A failed or empty result gives no export. The text is processed on this page and is not uploaded for extraction. The Privacy Policy describes how the rest of the site handles data.

Read the source and the result side by side, especially once an optional cleanup is on. The WHATWG URL Standard describes parsing and serialization, and this page lists which parts of it the tool supports.

Share This Tool

Share this free link extraction tool.