Extract Email Addresses
Pull every email address out of a block of text. Unique-only and sorted output options.
About Extract Email Addresses
The email extractor scans your input for strings that match the conventional email pattern (local-part @ domain) and returns them as a list. It's useful for pulling contact addresses out of pasted text, web pages, log files, or CSV dumps. The regex follows a simplified subset of RFC 5322 — strict enough to skip noise but lenient enough to catch the addresses real-world data contains.
When to use it
- Collecting contact addresses from a copy-pasted webpage
- Pulling email lists out of a log file or chat transcript
- Auditing a document for accidentally-included PII
- Extracting addresses from a printed CSV before importing
How it works
The regex /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}/g matches the standard form: local part (letters, digits, dot, underscore, percent, plus, hyphen), '@', domain labels separated by dots, and a TLD of at least 2 letters. Results are emitted in document order; toggle 'Unique only' to deduplicate.
Examples
Contact alice@example.com or bob+spam@mail.co.uk for details.
alice@example.com bob+spam@mail.co.uk
Frequently asked questions
- Is the email regex RFC-compliant?
- It matches the vast majority of real-world emails but isn't a full RFC 5322 implementation (which is essentially impossible in a single regex). Unusual addresses with quoted local parts or IP-literal domains may not match.
- Are extracted addresses validated?
- Only syntactically. The tool doesn't verify that the mailbox or domain exists — for that, use an email-validation service.
- Is my text uploaded?
- No. Extraction runs entirely in your browser.