Categories About Us Contact Us Become a Member

What Is an EML File? One Email in Plain Text, and How to Open It

EML files hold one email message as plain text. Thunderbird and Outlook open them. Jump to your question below, or work through it in order.

By Neeraj Singh ~19 min Updated Nov 2026 Checked against the IETF RFCs, the Library of Congress, Microsoft, Mozilla and Python
Short answer

EML files hold one email message saved as plain text, with headers and attachments inside. The extension is .eml. RFC 5322 and MIME define the layout.

What sets an EML file apart is how readable it stays. Notepad shows the sender and the words. Attachments sit in the same file as base64 text.

Free software opens an EML file in seconds. Thunderbird and Apple Mail both cost nothing to try. Section 3 lists more. Section 4 fixes files that misbehave.

1 What Is an EML File? One Email, Saved as Plain Text You Can Read

Someone sends you a saved email and the file name ends in .eml. You double click it and the wrong app opens. Sometimes no app opens at all. Nothing is wrong with that EML file. It holds one email message as plain text.

The Library of Congress describes the EML format as an email message saved in the Internet Message Format. In most cases one EML file holds one message. The headers, the words and the attachments all sit in that single file.

Plain text is the point of an EML file. Open one in Notepad and you can read the sender, the date and the message. Attachments sit in the same file as encoded text.

An EML file is one email message saved as plain text. The extension is .eml and the media type is message/rfc822. Thunderbird, Outlook and Apple Mail open it.

EML file format at a glance

EML file format at a glance
EML file extension
.eml
Full title
Email (Electronic Mail Format), the title the Library of Congress uses
What one EML file holds
One email message in most cases
Built on
Internet Message Format (RFC 5322) plus MIME
Media type
message/rfc822, per the Library of Congress
Text or binary
Plain text, readable in a text editor
Attachments
Embedded as MIME content or saved as separate files
Own specification
None. No standard defines EML as a storage format
Apple Mail cousin
EMLX, a modified and closely related format
Opens in
Thunderbird, Outlook, Apple Mail and IncrediMail

How to confirm you hold a real EML file

1 Check the extension. A real one ends in .eml. Outlook's own message files end in .msg.
2 Open it in a text editor. Real ones start with header lines like From and Date. Gibberish means another format.
3 Find the empty line. Headers end at the first empty line of the EML file. The message starts right below it.

You meet an EML file when you drag messages out of mail programs or save them from old clients. Outlook Express used the format as its standard, says the Library of Congress. Newer guides cover Windows Live Mail and Outlook Express, which both stored messages this way.

Holding one big file that packs many messages? That is an MBOX file. Section 7 compares the two formats.

Every EML file has three parts. Header lines come first and one empty line follows. The body comes last.

2 What Is Inside an EML File? Headers, One Empty Line and a Body That Can Hold Parts

Open an EML file in Notepad and the layout shows at once. Header lines sit on top. Below them comes one empty line and then the message.

Anatomy of an EML file drawn as a sample message in a monospaced font with three colored bands. The first band holds eight header lines for the sender, recipient, subject, date, message identifier, MIME version and a multipart content type with a boundary. A thin band marks one empty line. The third band is the body. It holds two parts split by the boundary. The first part is plain text that reads See you at noon. The second part is a PDF attachment with a base64 transfer encoding that starts with the characters JVBERi0xLjQK. Labels on the right name the header section, the empty line and the body, and say what every one does.
One sample EML file. Headers, one empty line, then a body that holds two parts.

The three parts of an EML file

The three parts of an EML file and the rule behind them.
PartWhat it holdsWhere the rule comes from
Header sectionNamed fields on separate lines, like From and DateRFC 5322. Fields can appear in any order and some repeat
Empty lineNothing. It marks the end of the headersRFC 5322 section 2.1 says an empty line separates header and body
BodyThe message text. With MIME it holds parts tooRFC 2045 and RFC 2046 define the parts

Line rules come from the same standard. RFC 5322 says a line must stay under 998 characters and should stay under 78. Every line ends with CRLF, which means carriage return plus line feed.

The standard also says messages use characters with values 1 through 127, read as US-ASCII. Accents and other languages need MIME on top. Section 10 shows how headers carry them.

How MIME adds parts to an EML file

Plain text needs no MIME. Most real messages carry more. Messages with HTML versions and PDFs become small trees of parts.

A multipart/alternative part holds the same message in several versions. RFC 2046 says the best choice is the last part your reader supports. So plain text comes first and HTML comes last.

Multipart/mixed parts hold independent pieces, like text bodies and PDFs. A part typed message/rfc822 holds another message inside it. A forwarded email attached that way is an EML file inside an EML file.

MIME-Version sits at the top only. RFC 2045 says the field belongs to the top level of a message and not to every part inside it.

Thunderbird, Outlook and Apple Mail open an EML file. Notepad opens one too and shows the raw message.

3 What Opens an EML File for Free? A Mail Client for the Message and a Text Editor for the Source

An EML file has more readers than you think. The Library of Congress lists Outlook, Entourage, Thunderbird, Apple Mail and IncrediMail among the programs that open EML files. Its record also says EML files are plain text.

Ways to open an EML file and what to know about every one.
ProgramWhat to knowWhere to read more
ThunderbirdMozilla's tracker shows drag out to a .eml file fixed by Thunderbird 3.0 release candidate 1Read our Thunderbird guide
OutlookListed by the Library of Congress as a program that opens EML filesRead our Microsoft Outlook guide
Apple MailListed by the Library of Congress. Apple's own EMLX is a close relativeSection 7 compares EML and EMLX
IncrediMailListed by the Library of CongressRead our IncrediMail guide
Text editorNotepad shows the raw message, headers and encoded attachments includedSteps follow the table

Older Windows programs stored messages as EML files too. Our Windows Live Mail guide and Outlook Express guide show where those folders sit.

Smaller clients read the format as well. See SeaMonkey, Pegasus Mail, Trojita and Lotus Notes if your mail comes from one of them.

Windows had a gap for some time. The Library of Congress says the built in Mail app of Windows 8 lacked native EML support. Our Windows error guides help if the open command fails. Our macOS guides cover Mac trouble.

Read an EML file in a text editor

1 Open with a text editor. Right click the EML file, choose Open with and select Notepad or any editor.
2 Read the header lines. From, To, Subject and Date sit at the top. Long lines wrap onto the next line.
3 Find the message. The body starts after the first empty line. Attachments look like long blocks of letters and numbers.
4 Close without saving. An editor can change line endings. Leaving the EML file alone keeps the original exact.

A text editor never starts the message. It shows the source only. That makes it a calm way to look at an EML file you do not trust.

Check the file in a text editor first. Header lines show whether your software or the file is at fault.

4 Why Will My EML File Not Open? Five Causes, One in Your Software and Four in the File

Five causes explain nearly every EML file that misbehaves. One sits in your software and four sit in the file. Start with the cheap checks.

A decision path for an EML file that misbehaves. The first question asks whether a text editor shows header lines like From and Date at the top. If not, the file is another format or a damaged copy, so check its size and ask the sender again. If yes, the second question asks whether a mail client opens it as a message. If not, no client owns the extension yet, so open the file from inside Thunderbird or Outlook. If yes, the third question asks whether it opens as an editable draft. If yes, an X-Unsent header marks it as unsent, so remove that line to read it like received mail. If not, and attachments or accents still look wrong, read sections 5 and 10.
Three questions sort a misbehaving EML file into four answers.

Five reasons an EML file will not open right

No app claims the extension Your system has no mail client set for an EML file. Start the client first and open the EML file from inside it.
It is not a real EML file Web pages and binary files can end in .eml. Outlook's MSG format is not MIME, so a text editor shows no header lines.
It opens as a draft The header line X-Unsent: 1 marks the message as unsent. Mozilla's tracker says Outlook and Outlook Express open such files in compose windows.
The text or accents look wrong The charset line does not match the content. RFC 2045 says a missing Content-Type means plain US-ASCII text.
Someone edited the file Clients read every line above the first empty line as header text. Delete that empty line and the body becomes header noise.

Mozilla's tracker explains the draft case well. The X-Unsent bug report says Thunderbird showed such files read only until version 91 added an editable compose window.

What to do next

1 Open the file in a text editor. Look for From and Date near the top. Section 2 shows the layout.
2 Try a second mail client. Thunderbird costs nothing. An EML file that opens there is sound.
3 Compare the size with the original. Tiny sizes mean failed downloads. Ask the sender to send the message again.
4 Read the content type. If letters look wrong, find the Content-Type line and note the charset.

Damaged data needs a copy you trust. Restore your backup before you try to edit a broken EML file by hand. Our error submission page takes the cases this table misses.

Attachments sit inside the EML file as base64 text. The encoding makes them about 37 percent larger than the original.

5 Where Do Attachments Live in an EML File? Inside the Body as Base64 Text, About 37 Percent Bigger

Email travels as text. An EML file keeps that text as is. PDFs and photos cannot ride through as raw bytes. So your client encodes them as base64 and drops the result into the message.

Base64 maps every 3 bytes onto 4 printable characters. RFC 2045 also caps encoded lines at 76 characters. Those two rules explain the size jump in the figure.

A bar chart drawn to scale that compares attachment sizes before and after base64 encoding inside an EML file. A 1 MB file grows to 1.37 MB. A 5 MB file grows to 6.84 MB. A 10 MB file grows to 13.68 MB. Every encoded bar is about 37 percent longer than its original. The sizes are calculated from base64 mapping 3 bytes onto 4 characters with a 76 character line plus a line break.
Calculated growth of an attachment inside an EML file. Encoded copies grow 37 percent.

Wikipedia's attachment article puts the base64 overhead at about 37 percent. That matches the calculation. A 10 MB PDF makes an EML file near 13.7 MB.

How a client finds the attachment

The Content-Disposition field marks a part as inline or attachment. RFC 2183 says an inline part shows with the message and an attachment waits for you to act.

The filename parameter suggests a name. RFC 2183 tells clients to check it against local rules and to ignore any directory path. A client that trusts it blindly can overwrite your files.

Pictures inside an HTML body use cid links. RFC 2392 says a cid link points to the part with a matching Content-ID. The picture sits in the same EML file.

Some programs keep attachments outside the EML file instead. The Library of Congress record notes that option. Move such an EML file alone and the attachment stays behind.

When the attachment is a winmail.dat file

Sometimes the attachment you want arrives as one file named Winmail.dat. Microsoft's TNEF support article says that is the usual name for a package in Transport Neutral Encapsulation Format.

The real files sit inside that package. Microsoft's fix starts with the sender. Choosing HTML or plain text for the message avoids TNEF so the files arrive as normal attachments.

Treat attachments like any download. The EML file stays text until your client decodes a part. Opening the decoded file is the step that carries risk.

Thunderbird saves a message as EML in two ways. Outlook saves MSG and not EML. Microsoft Graph returns raw MIME that you can store as EML.

6 How Do You Save an Email as an EML File? Thunderbird Does It Directly and Outlook Does Not

Mail programs save messages in different ways. Thunderbird writes an EML file directly. Outlook does not. That difference causes most of the questions people send us.

Thunderbird saves EML directly

Mozilla's tracker records that File then Save As writes the message with an EML extension. The drag and drop bug report also shows that dragging a message to the desktop makes a .eml file.

A Mozilla support thread adds one catch. The Save as type box can default to All Files. You then select Mail Files (*.eml) yourself.

1 Select the message. Click it once in the message list.
2 Choose Save As. Open the File menu and select Save As.
3 Set the type. Select Mail Files (*.eml) in the Save as type box.
4 Name and save. Choose a folder and keep the .eml ending.

Outlook saves its own format

Microsoft's developer list of Outlook SaveAs types names .msg, .rtf, .txt, .html, .mht, .oft, .doc, .vcs, .vcf and .ics. The list has no .eml entry.

Microsoft's Graph guide says Outlook does not save messages in MIME format. It shows two ways to get a message body in MIME.

"save them in files with the .EML extension"
From the Microsoft Graph MIME guide

Developers can add $value to a get message request and receive the MIME content. Microsoft says you can save that content in a .eml file. Section 8 shows how to read one back with Python.

Gmail shows the source

Gmail's Show original page displays the full message source. Google's help article describes it as the way to view and copy the complete header.

Copy before you edit. Keep one untouched EML file in a backup folder. Work on a second copy.

EML holds one message as plain text. MSG is Outlook's own format. MBOX packs a folder into one file and EMLX is Apple Mail's close cousin.

7 EML File or MSG, MBOX and EMLX? One Message per File or Many Messages in One

Four names cause the mix ups. EML, MSG, MBOX and EMLX all store email but they split the job in different ways.

A fork that shows the same three messages stored two ways. On the left, three separate EML files named lunch.eml, invoice.eml and trip.eml sit in a folder with one message per file. On the right, one MBOX file holds all three messages in a single file. A caption notes that the Library of Congress says EML usually stores one message per file while MBOX combines the messages of a folder into one file.
Three messages stored two ways. EML uses three files and MBOX uses one.
EML compared with MSG, MBOX and EMLX.
FormatWhat one file holdsWhat the sources say
EMLOne message as plain textThe Library of Congress says EML stores one message per file in most cases
MSGOne Outlook itemMicrosoft lists it as Outlook message format. Microsoft's Graph guide says Outlook does not save in MIME
MBOXMany messages in one fileThe Library of Congress says MBOX combines the messages of a folder into one file
EMLXOne message in Apple Mail's variantThe Library of Congress calls it a modified version, closely related to EML

The Library of Congress record cites a report that calls MBOX and EML de facto standards. The same record says no specification defines EML as a storage format. The message inside still follows RFC 5322.

Where PST, OST and other stores fit

Outlook keeps full mailboxes in data files. Our PST files and OST files guides cover those. They hold many messages and folders. That puts them on the MBOX side of the fork.

Other stores belong to other programs. See OLK files, EDB files and MAB files when your mail sits in one of them. Our MBOX file guide explains the folder format in full.

Choose an EML file when you want single messages you can read anywhere. Choose MBOX or PST when you want full folders in one place.

Python's email package parses an EML file in a few lines. Its documentation includes a script that unpacks every part into a folder.

8 How Can You Read an EML File With Python? Parse It, Walk the Parts and Save the Attachments

Scripts save hours when you hold hundreds of EML files. Python ships with an email package. Its documentation covers parsing a message from a file.

The Python email parser page says to always set the policy keyword. It names policy.default as the future default. The Python email examples page includes a script that unpacks a MIME message into a folder of files.

Python calls that read an EML file, as the Python documentation shows them.
TaskCallWhere it appears
Parse the fileBytesParser(policy=policy.default).parse(fp)Email parser page
Walk every partmsg.walk()Unpack example
Get the attachment namepart.get_filename()Unpack example
Decode the attachmentpart.get_payload(decode=True)Unpack example
List attachmentsiter_attachments()HTML message example

Save the attachments from one EML file

1 Open in binary mode. Use open(path, 'rb') so Python reads the bytes exactly as stored.
2 Parse the message. Pass the file to the parser with policy=policy.default.
3 Skip the containers. Parts typed multipart only wrap other parts. The unpack example skips them.
4 Write the decoded bytes. Save every decoded payload into a new folder and never into the original one.
5 Clean the file names. The Python example warns that applications should sanitize names so a message cannot overwrite important files.

That warning matches RFC 2183. The filename comes from the sender. Strip any path and refuse names that already exist.

Read your headers the same way. The parser page says the dictionary interface adds headers. The same interface reads them back. Looping over folders then builds lists of senders and dates.

Work on copies. A script that writes into your only EML folder can ruin it. Point the output at an empty folder.

Yes, keep EML originals when single messages matter. Plain text with no license and no patents makes them safe to store. You can convert copies later.

9 Should You Keep Your Emails as EML Files? Plain Text Ages Well but Nobody Owns the File Rules

The Library of Congress rates the EML file well on the traits that matter for long storage. It lists no licensing, no patents and no external dependencies. It also calls EML files plain text.

The same record names a weakness. EML is only partly documented through RFC 5322. No standard defines EML as a file storage format. Your mail client decides the details.

Keep or convert your EML files, by situation.
Your situationWhat to do
You want single messages as a recordKeep the EML originals in folders named by date
You switch to Thunderbird or OutlookImport a copy of the folder and keep the originals until counts match
You want one searchable archiveConvert copies to MBOX or PST and keep the EML files
Someone has no mail clientPrint a copy of the message to PDF
A message looks damagedRestore your backup and compare it with the broken copy

A PDF copy serves people without a mail client. See our PDF files guide for what that format keeps. Keep the EML file too because the PDF drops the headers.

A plan that fits one afternoon

1 Copy the folder. Make your backup copy on a second drive before you touch anything.
2 Open three files. Check one short message, one with a picture and one with an attachment.
3 Import a copy. Load a copy into the client you plan to use and compare message counts.
4 Keep the originals. Store the untouched EML files until you trust the new home.

The format has deep roots. The Library of Congress traces the message layout to RFC 822 from 1982. RFC 5322 replaced it in 2008 through RFC 2822. Old EML files from the 2000s still read fine today. New files should age the same way.

Only Date and From are required in an EML file. MIME fields add the content type, the encoding and the attachment label.

10 What Do the Header Fields in an EML File Mean? Two Required Fields and a Short List of MIME Fields

Headers in an EML file tell clients who sent the message and how to read it. Only two fields are required. RFC 5322 says the only required fields are the origination date and the originator address.

Core header fields in an EML file.
FieldWhat it holdsWhere it is defined
DateWhen the message was sent. RequiredRFC 5322 section 3.6.1
FromThe author's address. RequiredRFC 5322 section 3.6.2
Message-IDA globally unique label for the message. Every message should carry oneRFC 5322 section 3.6.4
Subject, To and CcThe topic and the recipients. OptionalRFC 5322 section 3.6
Reply-ToWhere replies should go. OptionalRFC 5322 and the Library of Congress IMF record

MIME header fields

MIME header fields and what they tell a client.
FieldWhat it holdsWhere it is defined
MIME-VersionThe value 1.0, at the top level of the messageRFC 2045 section 4
Content-TypeThe media type. The default is plain US-ASCII textRFC 2045 sections 5 and 5.2
Content-Transfer-Encoding7bit, 8bit, binary, quoted-printable or base64. 7bit applies when the field is missingRFC 2045 section 6.1
Content-DispositionInline or attachment, plus a suggested file nameRFC 2183
Content-IDThe label that a cid link in HTML points toRFC 2392

Encoded words in headers

Headers must stay ASCII under RFC 5322. Other languages need a wrapper. RFC 2047 defines an encoded word as =?charset?encoding?text?=. The letter B means base64 and the letter Q means a quoted printable variant.

The word =?UTF-8?B?Y2Fmw6k=?= decodes to the word café. An encoded word cannot pass 75 characters. Long subjects split into several.

RFC 6532 from February 2012 lets headers carry UTF-8 directly. Older clients still expect encoded words.

Folded header lines

Long header values wrap. RFC 5322 allows a line break before any white space. Unfolding removes the break again. A client then reads one long value.

An EML file follows RFC 5322 and MIME. The Library of Congress lists message/rfc822 as its media type and notes that no standard defines EML as a file.

11 What Are the Technical Facts About the EML File Format? Standards, Dates and the Gaps We Left Open

Rows below come from the RFCs and the Library of Congress. Facts we could not check stay off the page.

EML file format reference
Extension
.eml
Media type
message/rfc822, per the Library of Congress
Core standard
RFC 5322, October 2008, which obsoletes RFC 2822
Earlier standards
RFC 822 from 1982 and RFC 2822 from 2001
MIME core
RFC 2045 and RFC 2046, November 1996
Header encoding
RFC 2047, November 1996
UTF-8 headers
RFC 6532, February 2012
Line length
998 characters at most and 78 recommended
Characters
US-ASCII values 1 through 127 in the base format
Embedded message
A part typed message/rfc822 per RFC 2046 section 5.2.1
Storage standard
None for EML as a file. Documentation is partial
Licensing
No licensing and no patents, per the Library of Congress

The Library of Congress keeps two records worth reading. One covers the EML format and one covers the Internet Message Format. The second lists the RFC dates used above.

What this reference leaves out

This page prints no private header names from Outlook or Thunderbird, because no primary source lists them in full. It also gives no market share for any mail client.

Wikipedia's email article and MIME article tell the wider history. The Base64 article covers the encoding on its own. Our file format guide explains extensions and media types.

Frequently Asked Questions About EML Files

What is an EML file?
An EML file is one email message saved as plain text. The extension is .eml. It holds the headers, the message and any attachments in a single file. Thunderbird, Outlook and Apple Mail all open it.
How do I open an EML file?
Double click it and let your mail client open it. If nothing happens, start Thunderbird or Outlook and open the file from inside. Notepad also opens it and shows the raw source. Our open section lists the free choices.
What does EML stand for?
EML is short for email. The Library of Congress titles the format Email (Electronic Mail Format). The three letters name the file type and not a company. No single vendor owns it.
Is an EML file safe to open?
The file is text. An editor shows it without starting anything. Risk sits in the attachments and links inside the message. Your client decodes an attachment only when you open it. Treat those files like any download.
Can I open an EML file without Outlook?
Yes. Thunderbird and Apple Mail both open EML files. IncrediMail does too. A text editor works too because the format is plain text. You never need Outlook for the job.
What is the difference between EML and MSG?
EML is plain text built on RFC 5322. MSG is the Outlook message format that Microsoft lists in its save types. Microsoft's Graph guide says Outlook does not save in MIME format. Select EML when you want a file any client can read.
What is the difference between EML and MBOX?
EML stores one message per file in most cases. MBOX combines the messages of a folder into one file, says the Library of Congress. A folder of 500 messages is 500 EML files or one MBOX file.
Why does my EML file open as a new message?
A header line named X-Unsent with the value 1 marks the message as an unsent draft. Mozilla's tracker says Outlook and Outlook Express open such a file in a compose window. Remove the line in a text editor to read it like received mail. Work on a copy.
Where are the attachments in an EML file?
They sit in the body as base64 text. Every one is a MIME part with a Content-Disposition field and a file name in most cases. Some programs store attachments as separate files instead. Open the EML file in a text editor to see the encoded blocks.
Why is my EML file bigger than the attachment?
Base64 maps 3 bytes into 4 characters and adds a line break every 76 characters. That grows the data by about 37 percent. A 10 MB PDF makes an EML file near 13.7 MB. The headers and body text add a little more.
Can I rename an EML file to TXT?
Giving the file a new name changes the name only. The Library of Congress says you can read an EML file in Notepad or a browser after changing the extension. Rename a copy and never the original. Change the name back before you import it into a client.
Does Outlook save emails as EML?
Not in its developer list of save types. Microsoft names .msg, .rtf, .txt, .html, .mht, .oft, .doc, .vcs, .vcf and .ics. Thunderbird saves EML directly. Microsoft Graph can return the MIME content for you to store as a .eml file.

Still Stuck With an EML File? Six Places Worth Trying Next

Opens but looks wrong?

Check the headers. Section 4 sorts app faults from file faults.

Need the attachment out?

Decode the part. Section 5 and section 8 show how.

Is your mail one big file instead of many messages? The MBOX file guide explains folder packs. The PST file guide and OST file guide cover the Outlook versions.

Does your mail come from a Mac or a server? See the OLK file guide and the EDB file guide for those stores. The MAB file guide covers address books.

Is the attachment a calendar invite or a contact card? ICS files carry invites and VCF files carry contacts.

Do you need to share a message as a document? The PDF file guide shows a print route that drops the headers.

Is your computer at fault and not the EML file? Our Windows error guides and our macOS guides start with the exact message you see.

Still holding an EML file that none of this explains? Send us the error and the file size and we will help. The FileFix format index and the what is hub cover other file types.

Was this page helpful? Thanks for your feedback!