Extract Emails
Extract email addresses from text.
About this tool
Paste a block of text and press Run to pull out every email address, one per line. Addresses are listed in the order they appear.
How to use
How it works
The tool looks for letters, digits and the characters. _ % + - before an @, followed by a domain and a dot with at least two letters. It matches the shape of an address rather than checking that the mailbox exists. Repeats are listed each time they occur.
Worked example
Addresses in a sentence
- Input
- Mail ana@example.com, bob.smith@mail.co.uk; or bad@x
- Output
- ana@example.com bob.smith@mail.co.uk
- Walkthrough
- The first two have a valid shape. bad@x has no dotted domain, so it is skipped.
Limitations
- Checks the shape only, not whether the address is real.
- Duplicates are kept.
- Quoted local parts and internationalised domains are not recognised.
Questions
How do I extract emails from text?
Does it verify the addresses?
Will it find the same address twice?
Is my text uploaded?
Features
- One address per line
- Plus tags and subdomains
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
CSS Flexbox Crash Course
freeCodeCamp.org
Case and spacing tools show up constantly in front-end copy.
Watch on YouTubeRegular Expressions in 100 Seconds
Fireship
Fast regex refresher for text extraction patterns.
Watch on YouTube
- UTF-8 and BOM
W3C
Encoding gotchas when cleaning pasted text.
- Regular expressions
MDN
Pattern matching used in advanced text cleaners.