Extract from text
Paste any text and pull out all the email addresses, links, numbers, hashtags or @mentions in one list, with a count and optional duplicate removal. Free, and your text never leaves your browser.
How to use it
- Paste your text in the box.
- Choose what to find in Extract: emails, links, numbers, hashtags or mentions.
- Keep Remove duplicates ticked to list each item once, and tick Sort A to Z if you want it ordered.
- Copy the list from the result box, or download it as a text file.
Guide to extracting emails, links, numbers and hashtags
What the tool is for
Copying data out of a long text by hand is slow and easy to get wrong. This tool scans any text you paste and returns every email address, link, number, hashtag or @mention it finds, one per line, with a count. Typical jobs are collecting the contacts in an exported conversation, listing every link in a document before checking them, pulling figures out of a report, or gathering the hashtags and accounts mentioned in a batch of social media posts. It runs in your browser, so the text is not uploaded.
How each mode finds items
| Mode | What counts as a match |
|---|---|
| Email addresses | Letters, digits and . _ % + - before the @, then a domain with at least one dot and a final part of two or more letters |
| Links (URLs) | Text starting with http://, https://, ftp:// or www., up to the next space. Final punctuation such as a full stop or comma is cut off, and a closing parenthesis is cut only if it has no opening one |
| Numbers | Any run of digits, including dots or commas inside it. A minus sign right before the number is kept unless it follows a letter or digit |
| Hashtags | A # followed by letters, digits or underscores with at least one letter, so #2024 is ignored |
| Mentions | An @ followed by letters, digits or underscores, not preceded by a letter, digit, dot or slash, so the @ inside an email is ignored |
Duplicates, sorting and the count
The Count summary shows Found (all matches), Unique (after removing repeats) and Listed below (what the box actually holds). With Remove duplicates ticked, emails, hashtags and mentions are compared ignoring capitals, and the first spelling is kept. Links and numbers are compared exactly as written. Sort A to Z orders the list alphabetically, treating digits as numbers, so 2 comes before 10.
Worked examples
- Paste
Write to Ana@Example.com or sales@example.org. Again: ana@example.com.and choose Email addresses. Found is 3, Unique is 2 and the list isAna@Example.comandsales@example.org. The final full stop is not part of the address. - Paste
Docs: https://example.com/docs, (see www.example.org/a).and choose Links (URLs). The result ishttps://example.com/docsandwww.example.org/a. - Paste
Price 1,250.50 and -7 and 3 units, item A12., choose Numbers and untick Remove duplicates. The result is 1,250.50, -7, 3 and 12. Note that the 12 inside A12 was picked up too. - Paste
Follow @plainsaas #Tools #tools #1 mail a@b.comand choose Hashtags. Found is 2 and Unique is 1: only#Toolsis listed, because #tools is the same tag and #1 has no letter.
Tips and common mistakes
- Numbers are copied as written, with their dots and commas. Different countries use them differently, so 1.250 may mean one thousand two hundred fifty or one and a quarter. Check the source before doing math on them.
- Digits inside words, emails and links are also taken in Numbers mode. Remove the other items first if that matters.
- Links without http, https, ftp or www, such as a bare
example.com, are not detected. - Always review the list. Unusual addresses can be missed, and a list of emails is personal data: use it only for purposes the owners would expect.
Related tools
After extracting, clean the list with the duplicate line remover, order it with the line sorter, or break links into their parts with the URL parser.
Questions
How are duplicates detected?
Emails, hashtags and mentions are compared ignoring uppercase and lowercase, so Ana@x.com and ana@x.com count as one. Links and numbers are compared exactly as written.
How are numbers extracted?
Any run of digits is a number, including ones with a dot or comma inside, such as 1,250.50 or 3.14. A minus sign right before the number is kept. Digits inside words, emails or links are also picked up, so use the other modes first if that matters.
Will it find every email or link?
It finds the usual formats. Links need http://, https://, ftp:// or www. at the start, and trailing punctuation such as a final dot is left out. Unusual addresses may be missed, so review the list before using it.
Is my text uploaded?
No. The search runs in your browser and nothing is sent or stored.