Email Extractor

Extract email addresses from pasted text in seconds. Pick the desired result format and copy to your clipboard.

Your text is processed in your browser and never sent to our server.

0 characters · 0 words · 0 lines

How to use the e-mail extractor

The E-mail Extractor is a free tool that allows you to extract e-mails from long strings of text. Simply start by pasting your text into the first text area. Extracted e-mail addresses will appear in the second text area, together with the number of e-mails found.

Each time you make a change to your text, the results will be recalculated. Addresses with plus-addressing (name+tag@example.com), subdomains (name@mail.example.co.uk) and accented characters are recognised, and a dot at the end of a sentence is not included in the address.

There are a few options to tweak:

Each e-mail on its own line

The result will be formatted by adding a line break after each record. This is the default behavior. If you want all addresses on a single line, just uncheck the 'Each e-mail on its own line' option.

Remove duplicates

By default, the tool will take care of removing duplicates from the results. Addresses are compared case-insensitively, so John@Example.com and john@example.com count as one. If you want to include duplicates, uncheck the 'Remove duplicates' checkbox.

Convert to lowercase and sort

'Convert to lowercase' (on by default) writes every address in small letters, which makes mailing lists tidy and consistent. Uncheck it to keep the original capitalization. 'Sort alphabetically' orders the results from A to Z.

Use a custom separator

By default, our tool separates e-mails with the comma (,) character. If you want to change this behavior, change the 'Separator' text input to the desired character. Common other use cases include the semicolon (;) used by Outlook, or a space. You are free to change it to whatever symbol you want, including multiple-character ones. Leave it empty to get just one address per line.

Wrap e-mails in quotes

There are use cases when you need to wrap e-mails in quotes, for example, when writing SQL queries (single quotes) or JSON and CSV files (double quotes). Simply pick the quote style in the 'Wrap e-mails in quotes' select box at the top.

More about e-mail extracting

This tool was built for free usage, and we don't process any of the e-mail addresses pasted into the text areas on our server. Everything is done in your browser (locally). If you need to clean up the list further, try our duplicate remover.

How does the e-mail extractor work?

The e-mail extractor uses regular expressions and JavaScript behind the scenes. It fetches all results that match a specific formula and applies additional formatting to them.

How to extract e-mails using regex?

There are a few ways to do this, but the simplest way is by applying this regex pattern to a string:

/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g

This simple pattern works for most texts, but it can also capture a trailing dot or invalid addresses such as a..b@example.com. Our tool uses a stricter pattern that checks every part of the domain and supports international characters.

When was the first e-mail sent?

The first e-mail was sent in 1971 by Ray Tomlinson, who used the at symbol (@) to separate the user's name from the host computer's name.

What is the most used e-mail service?

As of today, Gmail is one of the most popular e-mail services, with over 1.5 billion active users worldwide.