✍️ Text Tools

Extract URLs & Emails

Pull URLs and email addresses out of any text. Deduplicates, shows counts, and trims trailing punctuation and closing brackets from URLs. Everything stays in your browser.

Examples (click to try)

How to Use the URL & Email Extractor

Paste body text or an email and URLs and email addresses are split into separate lists. Duplicates are collapsed and each heading shows a count. Trailing punctuation or a closing bracket stuck to a URL is removed automatically, so you can paste as-is.

Examples

  • "… https://benri.dev and http://example.com/page" → 2 URLs extracted
  • "(https://example.com/docs)" → trailing ) trimmed to https://example.com/docs
  • "…page." → sentence period dropped to …page
  • Same URL repeated → collapsed to one (case-insensitive)
  • [email protected] / [email protected] → 2 entries in the email list + count "2"

Common Use Cases

  • Extracting every link from copied article text, email threads or meeting notes.
  • Collecting email addresses from pasted contact lists before deduping them.
  • Cleaning URLs that were copied with trailing periods, parentheses or brackets.

Treat Results as Candidates

The extractor uses patterns to find text that looks like a URL or email address. It does not verify that a site exists or that a mailbox can receive mail. Internationalized domains, URLs broken across lines, complex surrounding punctuation, and intentionally obfuscated addresses may be missed.

Compare the list with the source before using it. Inspect URL components with the URL Encoder / Decoder, or clean and deduplicate line lists with Line Tools.

FAQ

Is my data sent to a server?
No. Extraction runs entirely in your browser; nothing is transmitted or stored externally.
How are duplicates handled?
Identical URLs and emails are collapsed to a single entry (case-insensitive).
Are trailing punctuation and brackets trimmed from URLs?
Yes. A trailing period or a closing bracket right after a URL is removed before listing.
What separates one URL from the next?
Whitespace or a line break. A URL followed directly by punctuation or a closing bracket is still captured, with the trailing character trimmed.
Are URLs without a scheme, such as www.example.com, extracted?
No. Only strings beginning with http:// or https:// are matched, so ftp://, mailto: and tel: are out of scope. If you also need bare URLs, add http:// with a find-and-replace in your editor before pasting.
Some addresses are not recognised as email
The local part may contain letters, digits and . _ % + - only, and the domain must contain a dot and end in two or more letters. That rules out user@localhost, addresses written against a bare IP address, internationalised domains, a full-width at sign, and obfuscated forms such as (at). Matches preceded by : or / are skipped as well, because they are treated as the userinfo part of a URL.