Extract Emails from Text
TX-23Paste any text, such as a web page, a log or an email thread, and get every email address in it back, one per line, with duplicates removed.
Runs in your browser. Nothing is uploaded.
Text that contains email addresses
Email addresses
How to use it
- Paste the text that contains email addresses into the input box.
- Leave Remove duplicates ticked, and tick Sort A to Z if you want an ordered list.
- Choose how to handle letter case: keep, lowercase the domain only, or lowercase everything.
- Press Extract emails, then copy the list or download it as a .txt file.
What it finds
It uses a practical pattern, not the full RFC 5322 grammar. A local part of letters, digits and the characters . _ % + - and an apostrophe, then @, then a domain with at least one dot whose last part has two or more characters and is not all digits. Addresses wrapped in brackets, quotes or ending a sentence are found without the punctuation around them. Quoted local parts and IP-literal domains such as user@[1.2.3.4] are not found.
Case, duplicates and limits
Domain names are not case-sensitive, so lowercasing the domain is safe and is the default. Lowercasing the whole address can change a mailbox on a server that treats the local part as case-sensitive, which is rare. Duplicates are compared after the case setting is applied. The tool does not check that an address exists or can receive mail, and it does not send anything anywhere.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
No email addresses found in the text. | The text has nothing shaped like an email address. | Check that the addresses contain @ and a domain with a dot, such as [email protected]. |
Questions people ask
How do I extract email addresses from text?
Paste the text into the input box and press Extract emails. Every address is listed on its own line. Duplicates are removed by default, and you can sort the list or change the letter case.
Does it find every valid email address?
Not every one. It uses a practical pattern that covers addresses you will meet in real text, not the full RFC 5322 grammar. Quoted local parts, comments and IP-literal domains are skipped.
Does it remove duplicate email addresses?
Yes, by default. Duplicates are compared after the case setting is applied, so with the lowercase domain option on, [email protected] and [email protected] count as the same address.
Can I get the emails as a comma separated list?
The output is one address per line. Copy it into a tool that joins lines, or paste it into a spreadsheet column, where each address lands in its own row. The addresses are never changed except for the optional lowercasing.
Does it verify that the addresses work?
No. It only finds text shaped like an email address. It cannot tell whether the mailbox exists, and it never contacts a mail server, so a mistyped or retired address is still listed.
About this tool
This uses a practical pattern, not the full RFC 5322 grammar. It finds a local part of letters, digits and . _ % + - ' followed by @ and a domain with at least one dot and a last part of 2 or more characters that is not all digits. Addresses whose part before the @ starts or ends with a dot, or has two dots in a row, are skipped, never rewritten. It does not accept quoted local parts, addresses in angle brackets with comments, or IP-literal domains such as user@[1.2.3.4]. It also does not check that an address exists or that the domain accepts mail. A full stop or comma right after an address in running text is not included. Domains are case-insensitive, so lowercasing the domain is safe; lowercasing the whole address can in rare cases change a mailbox.