Email Extractor

Paste any text and get all email addresses. Optionally deduplicate and sort.

Pulling addresses out of messy text

This tool scans any block of text and pulls out every email address it contains, removing duplicates and sorting the results. It is useful when you have a wall of text - an exported thread, a signup list, a document - and need just the addresses.

Key takeaways

  • Addresses are found using a pattern match, then deduplicated and sorted.
  • Everything runs in your browser - no addresses are uploaded anywhere.
  • The pattern catches standard addresses; rare valid forms may be missed.
  • Extracting addresses is easy; using them lawfully is the harder part.
  • Sending unsolicited email to scraped addresses is illegal in most jurisdictions.

How extraction works

A regular expression scans for the standard address shape: a local part, an @ symbol, a domain, and a top-level domain of at least two characters.

[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}

Matches are collected, lowercased for comparison, deduplicated and sorted. This catches the overwhelming majority of real addresses.

InputExtracted?Note
john@example.comYesStandard form
first.last+tag@sub.example.co.ukYesPlus addressing and subdomains work
user@localhostNoNo dotted top-level domain
"odd name"@example.comNoQuoted local parts are valid but very rare
user@[192.168.1.1]NoIP literals are valid but almost never used
Contact us at sales(at)example.comNoDeliberately obfuscated
Fully validating an email address by regex is effectively impossible. The official specification permits comments, quoted strings and nested constructs that no practical pattern handles. The only real validation is sending a message and seeing whether it arrives, which is why confirmation emails exist.

Legitimate uses

  • Cleaning up your own contact exports from a CRM or mail client.
  • Pulling addresses from a form submission dump or survey export.
  • Extracting recipients from a long email thread for a follow-up.
  • Auditing a document for exposed addresses before publishing it.
  • Migrating a list between systems that will not talk to each other.
  • Data cleaning where addresses are buried in a free-text field.
Extracting addresses from a web page and emailing them is unlawful in most of the world. GDPR requires a lawful basis for processing personal data, and an email address is personal data. CAN-SPAM in the US specifically prohibits address harvesting. Similar rules apply under PECR in the UK, CASL in Canada and the Privacy Act in Australia. Penalties are substantial and enforcement is real.
JurisdictionLawPosition on scraped addresses
EU / EEAGDPRRequires a lawful basis; consent normally needed for marketing
United KingdomUK GDPR + PECRConsent required for marketing to individuals
United StatesCAN-SPAMHarvesting is expressly prohibited; aggravated penalties apply
CanadaCASLExpress or implied consent required; among the strictest regimes
AustraliaSpam ActConsent required; address-harvesting software is prohibited

This is general information, not legal advice. If you are building a mailing list, take proper advice for the jurisdictions you operate in.

Building a list the right way

  1. Collect addresses with explicit consent through a signup form that says what you will send.
  2. Use double opt-in. A confirmation email proves consent and filters out typos and bad actors.
  3. Keep records of when and how each subscriber consented.
  4. Include an unsubscribe link in every message and honor it immediately.
  5. Clean your list regularly. Bounces and inactive addresses damage deliverability.
  6. Never buy a list. They are almost always scraped, they perform terribly, and they can get your sending domain blacklisted.
Everything happens in your browser. Your text is processed entirely on your own device using JavaScript. Nothing is uploaded, stored or logged, which means you can safely paste confidential drafts, client work or personal notes. Closing the tab discards everything.

Frequently Asked Questions

How does the email extractor work?

It scans your text with a regular expression that matches the standard email address pattern - a local part, an @ symbol, a domain and a top-level domain of at least two characters. Matches are then deduplicated and sorted.

Are the extracted addresses sent anywhere?

No. Extraction runs entirely in your browser using JavaScript. No addresses are uploaded, logged or stored, which matters a great deal given that email addresses are personal data.

Will it find every email address?

It finds the overwhelming majority. Some technically valid but very rare forms are missed, such as quoted local parts or IP-literal domains, and deliberately obfuscated addresses like "name (at) example.com" are not matched by design.

Does it validate that the addresses are real?

No. It checks the shape only. An address can be perfectly formatted and not exist at all. The only way to confirm an address works is to send a message to it, which is exactly what confirmation emails are for.

Is it legal to extract email addresses from a website?

Extracting them may be, but emailing them generally is not. GDPR requires a lawful basis for processing personal data, CAN-SPAM expressly prohibits address harvesting, and CASL and the Australian Spam Act take similar positions. Penalties are significant.

Can I use this to build a marketing list?

Not from scraped sources. Build lists through explicit opt-in with a clear description of what subscribers will receive, use double opt-in to prove consent, keep records, and honor unsubscribes immediately. Bought lists perform badly and risk blacklisting your domain.

Why are some addresses written as "name (at) example.com"?

It is a deliberate anti-scraping measure. Writing the @ symbol as text stops automated harvesters from matching the address while leaving it readable to humans. This tool does not attempt to decode such forms.

Can I extract addresses from a PDF or spreadsheet?

Yes, indirectly. Copy the text out of the document and paste it in. The tool works on plain text, so any format you can copy from will work.

Related Calculators