Email and URL Extractor
Pull every email address and link out of text, plus IP addresses and phone numbers on request.
About Email and URL Extractor
An email and URL extractor pulls every email address and link out of pasted text, with IPv4 addresses and phone-like numbers as options.
How to use
- Paste the text: an email thread, a log file, page source or a contact list. The lists update as you type.
- Emails and URLs are always listed. Tick "IPv4 addresses" or "Phone-like numbers" to add those.
- "Remove duplicates" is on by default. Tick "Sort" to order each list, and "Group URLs by domain" to put links under their host name.
- Choose one per line or comma-separated.
- Read the count for each kind, then copy a list or download it (
emails.txt,urls.txt,ip-addresses.txt,phone-numbers.txt).
What it does
- Emails: a name made of letters, digits and
_ % + -with single dots inside it, an @, and a domain with at least one dot and a top-level domain of two or more letters. Plus tags, subdomains and internationalised addresses are recognised, and a full stop that ends a sentence is left out. Quoted names and rarer characters such as!or an apostrophe are not picked up. - An address inside a link's query string is listed. The
user:password@hostpart of a URL is not mistaken for an address. - URLs: anything that starts with a scheme and
://(https, ftp, s3, file and so on) or withwww.. Bare domains such as example.com andmailto:links are not listed as URLs. - A URL ends at whitespace, a quotation mark or an angle bracket. Trailing sentence punctuation is dropped, and so is a closing bracket unless the URL contains the opening one, which keeps Wikipedia-style links such as
/wiki/Rust_(programming_language)whole. - IPv4 addresses: four numbers from 0 to 255 without leading zeros. Five-part version strings are skipped. IPv6 addresses are not extracted.
- Phone-like numbers are matched by shape only: 7 to 15 digits in groups separated by spaces, dots or hyphens, with an optional + country code and bracketed area code. A plain run of digits with no separator and no + is ignored, and dates, decimals and IP addresses are filtered out. Reference numbers of the same shape can still appear.
- Duplicates: emails are compared without regard to case and the first spelling is kept; URLs and IP addresses must match exactly; phone numbers are compared by their digits.
- Sorting is alphabetical, ignoring case; IP addresses sort by value.
- Grouping uses the host name with a leading
www.removed. Subdomains are separate groups, and each heading shows how many links it holds. - It does not check that an address exists or can receive mail, or that a link works. It reads pasted text only: it does not open files or fetch pages.
Example
Contact Jane <jane+news@example.com> or bob@mail.example.co.uk.
Docs: https://example.com/guide (see also www.example.org/faq).
Emails (2)
jane+news@example.com
bob@mail.example.co.uk
URLs (2)
https://example.com/guide
www.example.org/faq
Privacy
Extraction runs in the browser. No request is made with the text or to any address or link found in it, and nothing is stored.
Frequently asked questions
- How do I extract all email addresses from text?
- Paste the text into the box. Every email address is listed, one per line or comma-separated, with duplicates removed unless you untick that option. Copy the list or download it as a text file.
- Can I extract emails or links from a web page or a PDF?
- Yes, by copying its text first. Select the page text, the page source or the text of the PDF, copy it and paste it in. The tool works on pasted text and does not open files or fetch pages itself.
- Why is example.com not picked up as a URL?
- A bare domain looks the same as a file name such as report.pdf or the end of one sentence running into the next. Only text that starts with a scheme such as https:// or with www. is treated as a URL.
- Does the extractor check that the email addresses are valid?
- It checks the shape only: a name, an @ and a domain with a top-level domain. Whether the mailbox exists can only be found out by the mail server for that domain, and this tool makes no network requests.