How to Convert an EML File to PDF
With mailmd How to Delete a Gmail Account Without Losing Your EmailsOn this page
If you have an .eml email file and need a shareable or printable copy, open it in an email program and use that program’s print-to-PDF option. An EML file stores one email message, including the sender, recipients, subject, text, and sometimes attachments.
For a single email, printing is usually the simplest route. For many files, use a batch converter and check how it handles attachments and folders before converting everything.
Convert one EML file with print-to-PDF #
Open the EML file in an email program that can open EML files, such as Outlook, Thunderbird, or Apple Mail. If double-clicking opens the file as plain text or in a browser, right-click it and choose an email client under Open with.
Then open the message’s print menu. On Windows, choose Microsoft Print to PDF as the printer. On a Mac, choose Save as PDF or PDF in the print dialog, depending on the macOS version. Select a file name and save location.
In Outlook, one documented manual method is to drag the EML file into an Outlook folder, open the message, and choose File > Print or press Ctrl+P. The available menus can vary by Outlook version, so check the print preview before saving. A conversion walkthrough describes this method and notes that it handles messages one at a time.
Convert several EML files #
Printing messages individually works for a small number of files, but it takes time and makes it easier to miss a message. For a larger collection, use a desktop converter with batch processing, or an online converter if it is safe to upload the emails.
For an online conversion, add the EML files to the converter, select PDF, start the conversion, and download the results. EaseUS’s instructions for using Zamzar describe these steps. Email files can contain private correspondence or personal information, so do not upload sensitive messages to a service unless you have checked its privacy and retention terms.
Each converter handles batches and attachments differently. Before converting a full archive, test a few files and check the resulting PDFs. A desktop tool may work better for a large collection than printing each message. A vendor's claims about speed and accuracy do not replace independent test results.
Check attachments and conversation threads #
A PDF created from a message’s print view does not automatically include the contents of its attachments. The attachment may appear as a name or icon in the message, while the attached file itself remains separate. Save important attachments separately and verify that they open before treating the PDF as a complete record. A discussion of manual conversion limits also notes that print methods do not save attachments automatically.
If you want one PDF for an email conversation, first check whether your email client groups the messages in the same thread, or conversation. A Microsoft community answer describes printing a conversation from New Outlook for Windows by selecting its latest reply, but the instructions apply to messages with the same recipient. Results may differ by Outlook version and by how the messages are grouped.
Free and open source
Try mailmd
mailmd is a free command-line tool that copies your email into Markdown files on your computer, one file per message. It works with any IMAP mailbox, and with Gmail and Outlook through their own APIs.
Install
$ curl -fsSL https://raw.githubusercontent.com/vincentsch/mailmd/main/install.sh | sh
Set it up with your coding agent
Set up mailmd so you can read my email. Use https://github.com/vincentsch/mailmd: read its AGENTS.md and follow the steps. Connect my mailbox and run the first sync. Then show me where the files are.