Email Extractor
Extract all email addresses from any text or page source.
Was this tool helpful?
Thanks for the feedback!
The Email Extractor scans any block of text, such as a copied web page, an HTML page source, a chat export or a spreadsheet dump, and lists every email address it finds, one per line. It saves you from reading through hundreds of lines to pick out contact addresses by hand.
What counts as an email address
The extractor looks for a pattern rather than checking a list:
- Before the @: letters, digits, dots, underscores, plus signs and hyphens, so
rahul_99,priya.sharmaandname+tagall match. - After the @: a domain name containing at least one dot, such as
gmail.comoracme.co.in.
Addresses inside HTML are found too, so pasting a page's source code picks up the addresses in mailto: links along with the visible ones. Any text around an address, such as "mailto:" or "?subject=", is left out.
Example, including one quirk to watch
Input:
Contact priya.sharma@gmail.com or sales@acme.co.in. CC: Priya.Sharma@gmail.com, name+tag@sub.domain.com Link: mailto:info@example.org?subject=Hello
Output:
priya.sharma@gmail.com sales@acme.co.in. Priya.Sharma@gmail.com name+tag@sub.domain.com info@example.org
Two things stand out. First, sales@acme.co.in. carries the full stop that ended the sentence, because dots are allowed in domain names. Check the ends of your results and delete any trailing dot before using the list. Second, duplicates are not merged: the same Gmail address appears twice with different capitalisation.
Cleaning the extracted list
- Remove trailing full stops from any address that ended a sentence.
- Convert the list to lowercase. Domain names ignore case, and large providers such as Gmail also ignore case before the @.
- Remove repeats with the duplicate line remover.
Gmail also ignores dots in the part before the @, so priya.sharma@gmail.com and priyasharma@gmail.com reach the same inbox. The extractor treats them as different addresses, so decide manually whether to keep both.
What the extractor will not find
- Deliberately disguised addresses such as "name [at] domain [dot] com".
- Addresses without a dot after the @, such as internal
admin@localhost. - Internationalised addresses written in Devanagari or other non-Latin scripts.
- Addresses that appear only inside images or PDFs; copy the text out first, or use OCR on an image.
It also does not verify anything. a@b.c matches the pattern even though no such mailbox exists, so a matched address is not proof the inbox is real.
Use extracted addresses responsibly
The legitimate uses are things like pulling your own customers' addresses out of an order export, collecting colleagues' addresses from a long email thread, or finding the contact address on a supplier's web page. Sending bulk mail to people who never agreed to hear from you breaks email providers' rules and can breach anti-spam and data protection law, including India's Digital Personal Data Protection Act, 2023. For links rather than addresses, the URL extractor works the same way.