Extracting text from email files
Pick what to extract
Headers and body, Email addresses, Attachment list or JSON. You can change this afterwards with the View switch.
Choose one or more files
EML, EMLX, MSG and MBOX are accepted. Each file gets a chip so you can move between them or remove one.
Check the figures
Words, characters, what the file contains and its format are shown above the output, along with any warnings from reading it.
Copy or download
Download the current view as TXT or JSON, copy it, or export the messages as an Excel or CSV table. With several files, All as ZIP saves one output per file.
What each view gives you
| View | Output | Good for |
|---|---|---|
| Headers and body | Subject, from, to and date, then the message text, for each message | Quoting an email in a report or ticket |
| Email addresses | Every address in the From, To and Cc fields and in the body text, de-duplicated and sorted | Collecting contacts mentioned in a thread |
| Attachment list | File name, type, size in bytes and the message subject, one per line | An index of what was sent |
| JSON | The parsed content as structured data | Feeding another script or tool |
| Excel or CSV export | One row per message: date, from, to, cc, subject, attachment names, body | Sorting and filtering many messages |
Example: addresses from a supplier thread
A buyer at a garden centre (fictional) saved a long thread with a wholesaler as an EML file. The thread mentions colleagues in the body ("copying in our accounts team at accounts@fernleaf-plants.example") as well as in the headers.
The Email addresses view lists both kinds, because it reads the message text as well as the address fields. Addresses are lowercased for de-duplication and sorted.
Order query - spring bedding.eml From: Ruth Ellis <ruth@fernleaf-plants.example> To: buying@meadowside-gardens.example Cc: Marcus Hale <marcus@fernleaf-plants.example> Body: Thanks for the order. I'm copying in our accounts team at accounts@fernleaf-plants.example about the credit terms.
accounts@fernleaf-plants.example buying@meadowside-gardens.example marcus@fernleaf-plants.example ruth@fernleaf-plants.example
Files this tool does not open
Outlook's PST and OST data files are not read. They are large proprietary databases of whole mailboxes, and the practical route is to export the folder you need to MBOX or drag the messages out of Outlook as MSG files, then open those here.
Image-only content is another limit. If a message body is a scanned letter or a screenshot, there is no text in the file to extract; you would need OCR on the image instead. HTML messages are converted to readable text, so tables and links come through as plain lines.
Questions people ask
How do I extract text from an EML file?
Choose the EML file here and keep the Headers and body view. The sender, recipients, date, subject and message text appear in the box, ready to copy or download as a TXT file. HTML emails are converted to plain text. For many files at once, choose them together and use All as ZIP.
Can I open a PST file here?
No. PST and OST files are Outlook's own mailbox databases and are not read by this tool. In Outlook, export the folder you need to MBOX if your version supports it, or select the messages and drag them to a folder, which saves them as MSG files that this tool can read.
Does it find email addresses in the message body?
Yes, in the Email addresses view. It reads the From, To and Cc fields and searches the body text for anything shaped like an address, then removes duplicates. Addresses inside images or attachments are not found, and an address written with words, such as name at domain dot com, is not recognised.
What is an EMLX file?
EMLX is the format Apple Mail uses to store each message on a Mac. It is a standard email message with a byte count at the start and some Apple data at the end. This tool reads the message part and ignores the rest, so EMLX files behave exactly like EML.
Where your data goes
Every file is parsed by code running on this page. Message text, addresses and attachment names stay on your computer, and nothing is sent to a server when you extract, copy or download.
Checked against the tool on