What Are MSG Files and How to Open Them
Someone sends you an email "as an attachment", a support ticket arrives with a .msg file on it, or a colleague drags a message out of Outlook onto a shared drive. You double-click it, and nothing useful happens because you don't have Outlook installed. That's the usual way people meet the MSG format.
This guide covers what an MSG file is, what's inside one, how it compares to EML and PST, and how to open, convert and safely inspect one on any device.
Want to open an MSG file right now? Use our free online MSG and EML viewer. It shows the sender, recipients, body and attachments in your browser, and the file is never uploaded. You don't need Outlook.
What is an MSG File?
An MSG file is a single Microsoft Outlook item saved to disk. Most of the time that item is an email. Outlook creates one when you drag a message from your inbox to the desktop or a folder, or when you use File > Save As in classic Outlook for Windows.
Each MSG file holds the whole item:
- Envelope fields: subject, sender, To/CC/BCC recipients, sent and received times
- Body: often stored more than once, as plain text, HTML and compressed RTF
- Attachments: stored as raw binary, plus their filenames, MIME types and content IDs for inline images
- Internet headers: for messages that arrived over the internet, the original transport headers, including
Receivedhops andAuthentication-Results - Outlook-specific properties: categories, flags, importance, read status, conversation IDs and dozens of other MAPI properties
Unlike EML files, MSG is not an internet standard. Microsoft documents it as MS-OXMSG: Outlook Item (.msg) File Format, part of its Open Specifications. In practice, Outlook is the only program that writes MSG files routinely.
What Does an MSG File Look Like Inside?
An EML file is plain text. If you open an MSG file in a text editor, you get mostly binary noise with a few readable fragments. That's because MSG is built on the Compound File Binary Format (also called OLE2 or "structured storage"), the container format behind legacy Office files like .doc and .xls.
A compound file works like a small file system inside one file. It has storages (folders) and streams (files). In an MSG file, each email property gets its own stream, and the stream's name says which property it holds and what data type it is:
message.msg
├── __properties_version1.0 ← fixed-size properties (dates, flags, sizes)
├── __nameid_version1.0/ ← lookup table for named properties
├── __substg1.0_001A001F ← message class, e.g. "IPM.Note"
├── __substg1.0_0037001F ← subject
├── __substg1.0_0C1A001F ← sender display name
├── __substg1.0_0C1F001F ← sender email address
├── __substg1.0_1000001F ← plain-text body
├── __substg1.0_10130102 ← HTML body
├── __substg1.0_10090102 ← compressed RTF body
├── __substg1.0_007D001F ← original internet headers
├── __recip_version1.0_#00000000/ ← first recipient
└── __attach_version1.0_#00000000/ ← first attachment
├── __substg1.0_3707001F ← attachment filename
└── __substg1.0_37010102 ← attachment data
In a name like __substg1.0_0037001F, the first four hex digits are the property ID (0037 is PidTagSubject) and the last four are the property type (001F is a Unicode string, 001E an 8-bit string, 0102 binary data). Each recipient and each attachment gets its own storage, numbered from #00000000.
Every compound file starts with the same eight "magic" bytes, D0 CF 11 E0 A1 B1 1A E1. You can check for them yourself:
$ xxd -l 8 message.msg
00000000: d0cf 11e0 a1b1 1ae1 ........
$ file message.msg
message.msg: CDFV2 Microsoft Outlook Message
Good tools detect MSG files this way, by content, so a file that was renamed or saved with the wrong extension still opens correctly.
Not every MSG file is an email
The PidTagMessageClass property says what kind of Outlook item the file holds:
| Message class | What it is |
|---|---|
IPM.Note | An email (by far the most common) |
IPM.Schedule.Meeting.Request | A meeting invitation |
IPM.Appointment | A calendar appointment |
IPM.Contact | A contact card |
IPM.Task | A task |
IPM.StickyNote | An Outlook note |
If you open an "email" and see no body, or a pile of fields that look like a contact card, check the message class. The file may not be an email at all. To share contacts and calendar items outside Outlook, the portable formats are VCF files and ICS files.
ANSI vs. Unicode MSG files
Classic Outlook can save in two flavors: Outlook Message Format (ANSI) and Outlook Message Format - Unicode. ANSI files store text in a single legacy code page, so names and subjects in other scripts (Cyrillic, Greek, Chinese, Arabic and so on) can turn into question marks. Unicode has been the default for a long time. If you have a choice, pick Unicode.
MSG vs. Other Email File Formats
MSG vs. EML
| Feature | MSG | EML |
|---|---|---|
| Format | Binary (Compound File / OLE2) | Plain text (RFC 5322 / MIME) |
| Specification | Microsoft MS-OXMSG | IETF internet standard |
| Created by | Microsoft Outlook for Windows | Almost every email client |
| Opens in | Outlook, or a dedicated viewer | Any email client or text editor |
| Attachments stored as | Raw binary | Base64 text (about 33% larger) |
| Body stored as | Plain text, HTML and/or RTF | Plain text and/or HTML |
| Extra metadata | Outlook flags, categories, MAPI properties | Standard email headers only |
The two formats carry mostly the same email. The difference is who can read it. EML is the portable choice: Thunderbird, Apple Mail, Gmail's "Download message" and most other software all use it. MSG keeps Outlook-specific details that EML has no place for, but outside Outlook you'll need a viewer or a converter.
One common belief is only half right: MSG files are not always bigger. They often store the body two or three times, which adds weight. But attachments are stored as raw bytes rather than Base64 text, so a message with large attachments can produce a smaller MSG file than EML file.
For more on the plain-text side, see our guide to EML files.
MSG vs. PST
| Feature | MSG | PST |
|---|---|---|
| Holds | One item | An entire mailbox |
| Contents | One email, contact, appointment or task | Folders of email, contacts, calendar and tasks |
| Typical size | KB to a few MB | Hundreds of MB to tens of GB |
| Typical use | Sharing or archiving a single message | Backups, mailbox exports, migrations |
A PST (Personal Storage Table) file is Outlook's mailbox archive. If an MSG is one sheet of paper, a PST is the filing cabinet. When you need to hand one email to someone, MSG (or better, EML) is the right size. PST is for moving or backing up everything at once.
MSG vs. MBOX
MBOX is the open-source counterpart to PST: many emails in one plain-text file. Gmail exports through Google Takeout and Thunderbird's local folders both use it. Like PST, MBOX holds a whole mailbox or folder, not a single message. To browse one, use our MBOX Viewer.
MSG vs. winmail.dat
If someone using Outlook sent you an email with a mysterious winmail.dat attachment, that file is not an MSG file. It's TNEF (Transport Neutral Encapsulation Format), which Outlook and Exchange use to pack rich-text formatting and Outlook properties into an ordinary internet email. TNEF and MSG store many of the same MAPI properties, but the container is different, so MSG tools generally can't open winmail.dat. The usual fix is on the sender's side: send as HTML or plain text instead of Rich Text.
Common Use Cases for MSG Files
Reporting Phishing to an IT or Security Team
This is probably the most common way MSG files move around inside companies. Users reporting a suspicious email are often asked to forward it as an attachment. In Outlook for Windows, that produces an MSG file containing the original message with its internet headers. Unlike a normal forward, it keeps the Received chain, the SPF, DKIM and DMARC results, and the attachments exactly as they arrived.
For the security analyst, the MSG file is the evidence. The headers show where the message came from and whether it passed authentication. The attachments show what it was trying to deliver.
Attaching Emails to Tickets, Cases and Documents
Helpdesk systems, CRMs, legal case files and project folders fill up with dragged-out Outlook emails. Saving a message as MSG keeps it complete, with attachments and metadata, so whoever opens the ticket later sees exactly what the customer sent.
The catch is that the next person may not use Outlook. If you're filing emails for a mixed team, consider sharing a link to the email instead of a file, or make sure everyone knows they can open MSG files in a browser.
eDiscovery and Compliance
Microsoft Purview eDiscovery and many third-party review tools export individual Outlook items as MSG. MSG keeps the Outlook properties that some investigations care about, such as conversation IDs, categories and read flags. Legal teams therefore often receive productions as folders of MSG files, sometimes alongside or instead of EML.
Personal Archives
Some people keep important emails as files: contracts, receipts, offer letters, travel bookings. On Windows with classic Outlook, dragging a message to a folder is the quickest way to do it, and that gives you MSG. It works well while you use Outlook. If you plan to keep the archive for years, also save a copy in a portable format (EML or PDF).
How to Open MSG Files
Using Our Free Online Viewer
The quickest option on any device is our free MSG and EML viewer. Drag the .msg file onto the page, or tap Select File on a phone, and the email opens right away.
What you get:
- No upload: the file is parsed in your browser with JavaScript. The email never leaves your device.
- Full HTML rendering: the message shows with its original formatting and inline images. The HTML is sanitized before display, so scripts in the email don't run.
- Attachments: every attachment is listed with its name and type, ready to download.
- Header and authentication check: for received messages, the original internet headers are shown along with the SPF, DKIM and DMARC results and the server hops the message passed through.
- Detection by content: files are recognized from their bytes, not their extension, so a renamed
.msgor.emlstill opens. - Any device: Windows, Mac, Linux, Chromebook, iPhone and Android, with no account or sign-up.
A few things to know, which apply to most viewers:
- Messages saved from Drafts or Sent Items have no internet headers. They never arrived over the internet, so there are no
ReceivedorAuthentication-Resultslines to show. - Exchange senders sometimes show up as a long
/O=…/OU=…/CN=…string instead of an email address. That's an internal Exchange (X.500) address. Our viewer hides it rather than showing an address you can't reply to. - Emails forwarded as attachments inside the MSG (nested messages) are stored as embedded Outlook items, not ordinary files. Not every viewer unpacks them yet, ours included.
Using Microsoft Outlook
- Classic Outlook for Windows: double-click the MSG file. It opens in its own message window, where you can reply, forward or save the attachments.
- New Outlook for Windows: recent versions can also open MSG files. If yours doesn't, use classic Outlook or the online viewer.
- Outlook for Mac: recent versions can open MSG files by double-clicking or dragging them into Outlook.
- Outlook on the web: there's no "open file" option for a loose MSG on your disk.
On a Mac Without Outlook
Apple Mail can't read MSG files, and neither can Quick Look's built-in preview. Your options:
- Open the file in the online viewer. Nothing needs installing.
- Convert it to EML (see below), then open it in Apple Mail.
- Ask the sender to forward the email normally, or to save it as EML.
On Linux
Thunderbird doesn't support MSG either. On Linux the usual route is to convert the file to EML with msgconvert, then open the result in Thunderbird, Evolution or any other mail client:
# Debian / Ubuntu
sudo apt install libemail-outlook-message-perl
msgconvert message.msg # writes message.eml next to it
thunderbird message.eml
On iPhone, iPad and Android
Mobile mail apps, including the Outlook mobile app, don't reliably open MSG files sent as attachments. The most dependable method is to save the attachment to Files (iOS) or Downloads (Android), then open the online viewer in your mobile browser and pick the file.
Programmatically
For scripts, triage pipelines and bulk processing, Python has two useful libraries. olefile reads the compound file container directly. It's handy for seeing exactly which property streams a file contains:
import olefile
with olefile.OleFileIO("message.msg") as ole:
for entry in ole.listdir():
print("/".join(entry))
extract-msg understands the MSG format itself and gives you the email fields directly:
import extract_msg
msg = extract_msg.openMsg("message.msg")
print("From: ", msg.sender)
print("To: ", msg.to)
print("Subject:", msg.subject)
print("Date: ", msg.date)
print(msg.body)
for att in msg.attachments:
print("Attachment:", att.longFilename)
msg.close()
In JavaScript, @kenjiuno/msgreader parses MSG files in both Node.js and the browser. It's what powers our online viewer.
How to Create MSG Files
- Classic Outlook for Windows: drag a message from the message list onto your desktop or any folder. Or open the message and go to File > Save As, then choose Outlook Message Format - Unicode (*.msg).
- Forwarding as an attachment: in classic Outlook, select a message and choose More > Forward as Attachment (or press Ctrl+Alt+F). The original is attached as an MSG file.
- New Outlook for Windows, Outlook on the web and Outlook for Mac: these generally save or download messages as EML, not MSG.
- Other email clients: Gmail, Apple Mail and Thunderbird can't produce MSG files. They all save EML, which is usually the better format to share anyway.
How to Convert MSG Files
MSG to PDF
Open the MSG file in the online viewer or in Outlook, then print and pick Save as PDF (or Microsoft Print to PDF on Windows). That gives you a fixed record that opens anywhere, which is good for case files, expense claims and records retention.
MSG to EML
- Linux and macOS:
msgconvert message.msg(from theEmail::Outlook::MessagePerl module, packaged aslibemail-outlook-message-perlon Debian and Ubuntu). - Windows: classic Outlook can't save as EML. You can open the message in the new Outlook or Outlook on the web and download it from there, or use a dedicated converter.
Keep in mind that converting rebuilds the email from its stored properties. You get the same content, but not a byte-for-byte copy of what was originally sent. If the original message had a DKIM signature, it generally won't verify against the converted EML. For evidence-grade work, keep the original MSG alongside any conversions.
MSG to a Shareable Link
If you only need someone else to read the email, a link is often simpler than any file: nothing to download, and it opens on any device. See email forwarding vs. email sharing for when a link makes more sense than an attachment.
Security Considerations When Opening MSG Files
MSG files often reach you because someone thought the email inside was suspicious, so open them with care.
Safety Guidelines
- Treat attachments as untrusted. Attachments inside an MSG file are the original files, byte for byte. Office documents with macros, HTML attachments, archives and shortcuts are all common phishing payloads.
- Don't click links until you've checked them. Hover over them, or read the raw HTML, to see where they actually go.
- Check the headers. For a received message, compare the
Fromaddress with theReturn-Path, read theReceivedhops, and look at the SPF, DKIM and DMARC verdicts inAuthentication-Results. Our viewer shows these for you, and our guide to checking SPF, DKIM and DMARC explains what to look for. - Be careful about opening untrusted MSG files in a fully patched Outlook, and more careful still in an unpatched one. Outlook processes many more properties than a viewer does. In 2023, CVE-2023-23397 showed that a crafted Outlook item could leak a user's Windows (NTLM) credentials with no click at all, by pointing a reminder-sound property at an attacker's server. A browser-based viewer that only reads the subject, body, recipients and attachments doesn't have that kind of exposure.
- Look inside nested messages. Phishing reports are often an MSG containing another email forwarded as an attachment. The interesting content is usually in the innermost message.
- Scan attachments with antivirus software before opening them on a work machine.
Red Flags in a Reported MSG File
- Display name and address don't match: "Microsoft 365 Support" sending from
noreply@m365-secure-login.xyz - Failed or missing authentication:
dmarc=fail,spf=softfail, or no DKIM signature from a sender that always signs - Look-alike domains in links or the sender address (
rnicrosoft.com,paypa1.com) - Attachments that don't fit: an "invoice" that's really an
.html,.iso,.lnkor password-protected.zip - Urgency and pressure: "your mailbox will be deleted today" or "payment overdue, act now"
For background on how sender authentication works, see our guide to SPF, DKIM and DMARC.
Frequently Asked Questions About MSG Files
Can I open an MSG file without Outlook?
Yes. Drop it into our free online MSG viewer. It runs in your browser on any operating system and doesn't upload the file. On Linux or macOS you can also convert it to EML with msgconvert and open it in any mail client.
Why won't Apple Mail or Thunderbird open my MSG file? Neither supports the format. MSG is a Microsoft binary format that only Outlook writes, and other email clients use EML. Convert the file to EML, or use a viewer.
Why doesn't my MSG file show any headers or SPF/DKIM results? Internet headers only exist for messages that were received over SMTP. A message saved from your Drafts or Sent Items never went through that process, so the MSG has no headers to show. Some messages delivered entirely inside one Exchange organization also carry few internet headers.
Why does the sender look like /O=EXCHANGELABS/OU=…/CN=RECIPIENTS/CN=…?
That's an internal Exchange address in X.500 format, used for senders inside the same organization. The real SMTP address is usually stored in a separate property. Good viewers show that one instead.
What's the difference between MSG and EML? EML is a plain-text internet standard that works in nearly every email client. MSG is Outlook's binary format and also stores Outlook-specific properties. Both hold the same email content. EML is the more portable choice for sharing.
Is an MSG file the same as winmail.dat?
No. winmail.dat is TNEF, a different container Outlook uses to attach rich-text formatting to internet emails. MSG viewers generally can't open it.
Can MSG files contain viruses? The MSG file itself isn't an executable, but the attachments and links inside it can be malicious, just like in any email. Open it in a viewer that doesn't run scripts, and treat attachments with caution.
Can I edit an MSG file? Not with a text editor. It's a binary container. Outlook lets you edit some properties (categories, flags, and the body for unsent drafts). Changing a received message breaks its value as evidence, so keep an untouched copy.
How do I convert an MSG file to PDF? Open it in the online viewer or in Outlook, then print it and choose "Save as PDF".
Related Tools
- MSG and EML Viewer: open Outlook MSG and EML files online, privately in your browser
- MBOX Viewer: browse whole mailbox archives from Gmail Takeout or Thunderbird
- DMARC Analyzer: make sense of DMARC aggregate reports for your domain
- DNS Checker: look up a sender's SPF, DKIM and DMARC records
- iCal Viewer: open the calendar invitations that often travel as email attachments
- VCF Viewer: view contact cards without importing them into your address book
Share any email easily with a simple direct link in just one click.
Install EmailShot