Guides ·
How to open an EML file
An .eml file is a single email saved as a file, often downloaded from Gmail, exported from a ticket system or sent as evidence. This post explains what is inside one, which programs open it, and how to read it safely, attachments included, without a mail program.

What an .eml file is
An .eml is one email in the internet's own format. The headers come first, one per line: From, To, Subject, Date and others. Their rules are in RFC 5322, the Internet Message Format, which replaced the older RFC 822; that is why some programs, the viewer included, still say RFC 822. Then comes the body.
The body uses MIME, the standard that lets one email carry several parts. A typical email has a plain-text version, an HTML version with the formatting, and attachments. Each part starts with a short boundary line and its own Content-Type. Attachments are turned into long lines of letters and digits called base64, so a picture can travel as text.
Where .eml files come from
In Gmail, the menu on an open message has Download message, which saves it as an .eml. Thunderbird saves messages as .eml, and dragging a message out of Apple Mail onto the desktop does the same. Help desks and archives often export emails this way too.
Opening it with what you already have
On a Mac, double-clicking an .eml opens it in Apple Mail. On Windows, the classic Outlook opens it, and so does Thunderbird if you use it. The old Windows Mail app is no longer an option: Microsoft ended support for Mail and Calendar on December 31, 2024.
A text editor such as Notepad or TextEdit also opens it, because it is plain text. The headers are readable. The rest is harder: the HTML is mixed with code, long lines end in "=" signs, and attachments are pages of base64.
Reading it in your browser
With no mail program, or for a strange email, use the EML viewer. Drag the file onto the page or click Choose a file. The viewer decodes the parts and shows the email the way a mail program would: subject and sender at the top, the header, the attachments, then the formatted text.
It also keeps you safe while reading. Scripts, forms and frames in the email are switched off, and pictures that would load from the internet are held back, so opening the email tells the sender nothing. The file is read in your browser and not uploaded.
Attachments and calendar invites
Each attachment gets a card with its type, its size and a Download button. Calendar invitations are .ics files (the iCalendar format, RFC 5545). The viewer reads them and shows a Calendar event box with the title, the time and the place, so you see the invite without importing it. To add it to your calendar, download the .ics and open it.
Save as PDF makes one PDF with the email first and the attachments as pages after it. More holds Email only as PDF and a ZIP of all the attachments.
Seeing every header
Open Details on the right; a link like "All 6 headers" shows each header as it was written. In a real received email this list is longer: Received lines show the servers it passed through, and Authentication-Results holds the sender checks (SPF, DKIM, DMARC) that the receiving server recorded. The Privacy and safety panel summarises those checks when they are present.
A worked example: a robot's pizza party invite
- The file: robot-pizza-party.eml, 19 KB and 300 lines of plain text, our own test invite from "Kitchen Robot".
- In a text editor, the first four lines are readable: From, To, "Subject: Robot pizza party: Friday 18:00" and "Date: Fri, 04 Dec 2026 09:12:00 +0100". After the text and HTML versions come three attachments as base64; the picture alone takes 228 lines.
- In the EML viewer, the header shows Friday, December 4, 2026 at 9:12 AM (our computer runs on Central European Time, matching the +0100).
- The attachment card reads "3 attachments, 13 KB": pizza-party.ics (229 B), menu.txt (73 B) and robot.png (13 KB).
- A Calendar event box reads "Robot pizza party", Friday, December 4, 2026 at 6:00 PM – 9:00 PM, Workshop, bench 2.
- The text appears formatted, with "all six screws" in bold. Opened, Details shows Format: EML (RFC 822) and "All 6 headers".
- Email only as PDF, under More, made a one-page PDF. Its header gives the local time and, under it, "Date header (sender's clock): Fri, 04 Dec 2026 09:12:00 +0100".
- Save as PDF made a 4-page PDF: the email, menu.txt as text, robot.png as a page, and a contents page saying pizza-party.ics can't be turned into pages. The ZIP held all three files (13,506 bytes).
Common mistakes
- Double-clicking a suspicious .eml in your everyday mail program. It may load remote images that tell the sender you opened it. Read it in a viewer that blocks them first.
- Copying an attachment out of a text editor. The base64 block is not the file; it has to be decoded. Use a viewer or mail program to save it.
- Renaming an .eml to .msg, or to anything else, to make it open. A new name doesn't convert it, and renaming to .txt only shows the raw code. Use a viewer or mail program to read it and save the attachments.
- Reading the time without its zone. The Date header carries an offset such as +0100 and viewers show your own zone, so two people can see different clock times. The viewer's PDF prints both.
- Trusting the From line alone. It is just text in the file. For a doubtful email, look at the Received and Authentication-Results headers.
Questions
Is an .eml the same as a .msg?
No. An .eml is plain text in the internet's standard format; a .msg is Outlook's binary container. The EML viewer opens both.
Can I open an .eml without any mail program?
Yes. Open it in a browser viewer to read it with its attachments, or in a text editor to see the raw headers.
What is the .ics file attached to my email?
A calendar invitation in the iCalendar format. Open it with your calendar app to add the event.
Can I save the email as a PDF?
Yes. Save as PDF gives one file with the attachments as pages and names any it couldn't include; Email only as PDF, under More, gives the email alone.
Sample file: robot-pizza-party.eml · ours (made by unmake for testing)
Sources
- RFC 5322: Internet Message Format
- RFC 2045: MIME Part One
- RFC 5545: iCalendar
- Microsoft: Outlook for Windows, the future of Mail, Calendar and People on Windows 11