URL extractor

URL extractor

Extract HTTP and HTTPS URLs from text

Computed in your browser

Paste the whole block of text; duplicate links can be removed in one go.

Example

Input

Docs: https://example.com/a\nAPI: http://api.example.com/v1.

Example result

https://example.com/a\nhttp://api.example.com/v1

Common trailing punctuation is removed. Deduplication changes output only, never the source text.

Technical details & limits

The browser matches text beginning with an HTTP or HTTPS scheme and ending at whitespace or a common delimiter. This is not a full URL parser and it does not visit or validate any target.

About this tool

Find URLs beginning with http:// or https:// in pasted text, optionally removing duplicates while preserving order. Processing stays in the browser.

Use cases

  • Collect web links from email, chat transcripts or logs.

How to use

  1. Paste the text containing links into the input box.
  2. Tick deduplicate when you want each link once, in first-seen order.
  3. The result is one link per line, ready to copy or save as a text file.

Notes

Only explicit HTTP/HTTPS URLs are recognised. The tool does not test whether a link is reachable.

FAQ

Which URL protocols does the online link extractor support?
This extractor recognizes links beginning with http:// or https:// and does not fetch their destination pages. Those are the 2 supported protocols, and repeated identical links can be reduced to 1 entry. Bare www addresses and relative paths are outside this matching rule. Review boundaries in the extracted text before using it, because detecting a URL-shaped string does not establish that it is complete, reachable, or safe to visit.
Does URL deduplication merge links with different letter case?
URL deduplication compares complete strings exactly rather than normalizing the case of their paths. It can retain 1 of 2 identical links, while links whose paths differ by uppercase A and lowercase a remain separate. Query strings and fragments also participate in comparison. The resulting list identifies repeated text, not equivalent page content, so different-looking URLs are not automatically merged even if a server redirects them to one resource.
Why does URL extraction remove punctuation at the end of a link?
The extractor trims common sentence punctuation from the end of a matched URL-shaped string to avoid including surrounding prose. For example, 1 link followed by a comma or period can be trimmed for either of those 2 punctuation types. Review the result when punctuation is intentionally part of a path. Extraction is a text heuristic, so it neither verifies the destination nor guarantees that every boundary matches the author's intent.

Related tools

URL extractor · Extract HTTP and HTTPS URLs from text
URL extractor — Tool illustration · dayeku.com