How to Convert Multiple .Eml Email Into Text Files?

Transforming .eml formatted email messages into text format can be useful for archiving or performing fast searches with a text indexing program. It also makes it easy to access the message contents even if an email client is not installed, since any simple text editor will do the job.  While many email clients make it simple to convert a single email into a text file, they often fall short when it’s necessary to batch convert hundreds or thousands of emails.

This article looks at the .eml to .txt conversion capabilities included in Eml Viewer Pro, a Windows application that makes bulk management and conversion of email content easier. It will explain how to perform a conversion, setup a custom file naming scheme, and choose how the software should process email file attachments.  To follow along with this tutorial, download a free 15 day trial of Eml Viewer Pro.

Converting .Eml To Text

To begin, start Eml Viewer Pro, and using the folder list on the left side of the screen, choose the Windows folder that contains your .eml files.  Note that Eml Viewer Pro can also open .msg and .mht files, and convert them to text as well as .eml files.

Image shows Eml Viewer Pro software main screen with emails in the file list.
Eml Viewer Pro email viewing software

Next, select the emails from the mail list that you want to convert into .txt text files.  You can select a single .eml file by clicking on it.  Hold down your Windows Shift key to select a range of files. To choose all of the .eml files in the list, type Ctrol-A to select all. When an .eml file is selected, it will be highlighted in the list.

Image shows 3 emails highlighted in the Eml Viewer Pro mail list.
.eml files selected in the mail list.
Now that our .eml files have been selected, the final step is to tell Eml Viewer Pro to convert them into text files.  
Locate the Eml Viewer Pro main toolbar, and select “Text” from the Export Profile list.
Choose Txt from EML Viewer Pro export profile list.
Eml Viewer Pro export profile drop down list. Choose Text.
To begin the export process, click the Start button.
Start the eml to txt conversion process by clicking Eml Viewer Pro's Start Export button.
Eml Viewer Pro will go to work processing the selected .eml files into text files. Below is an image of a convert .eml file displayed in the Notepad text viewer.  
The text file is formatted with the subject/from/to/sent time/attachments items listed in the header.
Text formatted email document.
An .eml file converted into a text file
Html emails that do not have a text component will be shown with their html formatting.
An email that has been saved as a text .txt file.
Html .eml file converted to text
Converted .eml files will reside in a text file that given the name of the email subject line. You can change this if you like, since Eml Viewer Pro provides great flexibility in naming the text files it creates.

Naming Export Text Files

To add a custom naming plan to the saved text files, click the “Edit” button next to the Text export profile.
The Edit button in EmlViewer Pro.
Edit the eml-to-text export profile.
This will bring up the Edit Profile window. 
EmlViewer Pro's Edit Profile window is displayed with File Naming options highlighted.
Edit text file naming structure

 From the file naming drop down list, choose “Custom Naming Schema.”

EmlViewer Pro's file naming scheme editor
Specify how exported text files are to be named.

Using the Custom Naming Schema editor, you can drag and drop the components to create the exact naming structure that your project requires.

Managing .EML File Attachments

When you export .eml files into text files, some of the emails will contain file attachments.  With Eml Viewer Pro, you can specify how those file attachments should be processed.  From the Export Editor, go to Target > Attachments, and select the option that best meets you need from the drop down list.

Edit email profile export settings.
Manage how .eml file attachments are processed

 Currently, Eml Viewer Pro gives you three options:  ignore the file attachments, save them in a separate subfolder which will have the same name as the text file, or save the attachments into the same folder as the text file.


Eml Viewer Pro is a powerful tool for managing .eml email content.  Converting .eml files into text file is just one of it’s capabilities.  Eml Viewer Pro can also convert .eml to pdf, jpb, csv, mbox, odt, and many other formats.  The process for converting to these other formats is identical to the text conversion process explained in this article.

Click here for more information on Eml Viewer Pro.

Eml Reader: Using Eml Viewer Pro .eml File Viewer

Files with the .eml extension are individual email files created by a Windows email client such as Mozilla Thunderbird or Outlook Express. .Eml files are formatted according to a published standard known as RFC-822.  Opening these files is as easy as  installing email client software; this will allow you to open them individually by clicking on the files.

If you have thousands of .eml files, and you want to search them, or convert them to a different format (.pdf, .mbox, etc), then a more powerful and specialized software application like EML Viewer Pro (also known as PstViewer Pro) can be a big help to your project.

Image shows the main page of Eml Viewer Pro software, with emails in a list.
Eml Viewer Pro opens .eml files

Eml Viewer Capabilities

Eml Viewer Pro provides quick view or full screen viewing capabilities.  Paging through the emails in the mail list will preview the message.  You will be able to view the .eml files in their full html or text formatting.  Hosted graphics are downloaded and displayed in the message.  Double clicking on an email in the list will open it in full screen view for easy reading. You can have multiple emails open in full screen view.

Email Search

Eml Viewer Pro can search all of the messages in your list. You may have dozens or thousands of .eml files, and Eml Viewer Pro will search across them all for your criteria.

Image shows the advanced search screen in Eml Viewer Pro software.
Searching .eml files

You can set a date range for the search, or search across common email fields such as To, From, CC, or find specific words or phrases in the text of the email.

The results are displayed in the mail list, so that you can export them or otherwise manage them according your project requirements.

Exporting .EML Files

Dozens of export profiles are included in Eml Viewer Pro. These profiles are instruction sets that help you accomplish specific tasks, such as exporting your selected .eml fiels into pdf format.  Many different formats are included, such as HTML, MHT, Text, MBOX, PNG, TIF, GIF, PDF, etc.

To export messages, first select the .eml files you want to convert from EML Viewer Pro’s mail list.  Next, choose the export profile from the drop down list (see below).  To convert to PNG image format, for example, select PNG from the drop down list.

Start the export process by clicking the “Start button” (see the pointer in the image below).

Image shows Eml Viewer Pro export profile menu, with PNG export profile selected.
Eml Viewer Pro export profile drop down list

.EML to PDF Conversion

 PDF is a highly popular format for preserving email messages.  Because of this, the software developers have given  Eml Viewer Pro special functionality for eml to pdf export.

Eml Viewer Pro can select export .eml files into the PDF/A email archival standard, which embeds the html fonts directly into the PDF file for accurate rendering, preserving the original look of the email.

.Eml files can be converted into separate pdf files, or you can export multiple .eml files into a single large pdf file.

File attachments are always an important consideration when exporting email to pdf.  Eml Viewer Pro has the ability to extract file attachments and save them to a folder on your hard drive, or you can embed the file attachments within the PDF file so they can be extracted later.  You can also tell Eml Viewer Pro to attempt to convert the attachment into an image so it is visible inside of the PDF. If the attachment is not convertible, then it will be converted.

Download an Eml Reader Free Trial

You can try Eml Viewer Pro free for 15 days. Download a free trial, and see how Eml Viewer Pro can help you manage your .eml email content.