Skip to main content

URL Extractor

Pull every link out of a text, without the trailing punctuation, deduplicated, one per line.

Feedback

Key Features

  • Finds http, https and www links in any text
  • Leaves sentence punctuation out of the URL
  • Keeps parentheses that are genuinely part of the link
  • Deduplicates and lists one URL per line
  • Runs locally in your browser

Benefits

  • Collect every link from a report or a chat log at once
  • Audit which domains a document points to
  • Feed clean URL lists to checkers and crawlers
  • Avoid the broken links that trailing commas cause

How to use this tool

Paste the text containing links

Click Process

Copy the list of URLs

Extracting links from text, and where the boundary really is

Finding URLs in prose is mostly a problem of knowing where one stops. A URL can legitimately contain full stops, commas, brackets, colons and question marks, and so can the sentence around it, so the end of a link and the end of a clause are genuinely ambiguous.

Trailing punctuation is the everyday failure. A link at the end of a sentence captures the full stop; a link inside brackets captures the closing bracket. Both produce an address that looks right and returns a 404. The usual convention is to strip a trailing full stop, comma or closing bracket unless the URL contains an unmatched opening bracket, which handles the common cases and is still a heuristic rather than a rule.

Bare domains are the other decision. Text often contains example.com with no scheme in front of it, which a reader recognises as a link and a strict pattern does not. Accepting them means also accepting anything that looks like a domain, including file names ending in a known extension, so a sentence mentioning a document called report.co can produce a URL that never existed.

Once extracted, two things are usually worth doing. Deduplicating with an eye to whether a trailing slash, a differing scheme, or a tracking parameter makes two URLs the same or different for your purpose. And stripping tracking parameters, since links copied from email and social platforms carry campaign identifiers that are noise in a reference list and occasionally identify the person who shared them.

A note on shortened links: they cannot be inspected without resolving them, and resolving them means requesting them, which tells the shortener that someone did. That is a decision worth making knowingly rather than as a side effect of tidying a list.

The extraction happens in the tab, so the document you are pulling links from never leaves your machine.

Frequently Asked Questions

Why do some tools output links ending in a comma or parenthesis?

Because prose punctuation sits flush against the URL. This extractor trims sentence punctuation while keeping characters that belong to the link, such as the closing parenthesis in a Wikipedia title.

Does it follow or check the links?

No. It only extracts them; nothing is requested, which also means nothing about your text leaves the page.

Related tools

Need this in a script?

The same tool answers on HTTP. Free, 1,000 calls a day, no card, and one token works across every Astral API.

POST https://astraltext.com/api/v1/extract-urls

Extract URLs APIGet a free token