What Is an MSG File and What Does It Contain?
An MSG file stores one Outlook item with its properties and attachments inside a single file. Here is what it contains, how it is built and when it is the wrong format.
An MSG file is one Outlook item saved as a file with the .msg extension. It stores a single email, appointment, contact or task together with its properties and attachments.
- It is a Microsoft format built on a compound file, which works like a small file system inside one file.
- Classic Outlook saves it through File, then Save As. The new Outlook added Save as MSG in May 2025.
- It suits single messages. Microsoft advises against it for large standalone archives.
What Is an MSG File?
An MSG file is one Outlook item stored as a file on your disk. Microsoft's specification calls the format the Outlook Item (.msg) File Format and says it represents a message, an appointment, a contact or a task.
Outlook creates the file when you save an item outside the mailbox. The file contains the subject, the sender, the recipients, the body, the dates and every attachment in one place. Copying one file moves one message.
- One item per file. A file stores one email or one calendar entry and never an entire folder.
- Everything inside. Attachments travel inside the file and do not sit beside it.
- Documented by Microsoft. The Library of Congress describes the format as fully documented and proprietary, with no technical protection.
What Does an MSG File Contain?
An MSG file contains whatever the Outlook item had. The Library of Congress states that every property on the item and on its attachments is also present in the file. The number of parts depends on the item type and on how many recipients and attachments it has.
| Part of the file | What it contains | How it is named inside |
|---|---|---|
| The item itself | Subject, sender, dates and body | A property stream plus value streams that start with __substg1.0_ |
| Recipients | One block per person on the To, Cc or Bcc line | __recip_version1.0_#00000000, then #00000001 and so on |
| Attachments | One block per attachment, with its file name | __attach_version1.0_#00000000, then #00000001 and so on |
| Custom property map | Links custom properties to their numbers | __nameid_version1.0 |
How Is an MSG File Built Inside?
An MSG file is a Compound File Binary file. Microsoft's Open Specifications team describes this layout as similar to a FAT file system inside a single file. Everything in it is either a storage, a container that works like a folder, or a stream, a sequence of bytes. Outlook puts each object in a storage and its properties in streams.
The tree below shows the main parts of one message with a single recipient and a single attachment. The streams present depend on the properties set on the message. A real file contains many more.
(root: the message)
+-- __properties_version1.0 list of the message properties
+-- __substg1.0_0C1F001F sender email address
+-- __recip_version1.0_#00000000 first recipient
| +-- __properties_version1.0
+-- __attach_version1.0_#00000000 first attachment
| +-- __properties_version1.0
| +-- __substg1.0_3707001F attachment file name
+-- __nameid_version1.0 map of custom property names
A stream name that starts with __substg1.0_ ends in eight hexadecimal digits. The first four name the property and the last four give its data type. The sender address in the tree is property 0C1F with type 001F, which Microsoft's blog shows as a text string.
Short fixed values live in the property stream itself, up to 8 bytes per value. Text and binary data are too long for that. The property stream therefore stores only their size and the value sits in its own __substg1.0_ stream. The Library of Congress adds that one file must use a single string type, either Unicode or the older 8 bit type and never both.
How Do Attachments and Embedded Emails Work?
Every attachment gets its own storage named __attach_version1.0_# followed by a number that starts at zero. What sits inside depends on the kind of attachment.
- An ordinary file. The storage contains the file's properties and its bytes. The file name is in property 3707001F.
- An attached email. The storage
__substg1.0_3701000Dcontains a full message. Microsoft states it is what you would find in a .msg file of its own. The same structure therefore repeats inside the attachment. - An object from another application. Outlook creates the storage and passes it to the application that made the object, for example Word or Excel. That application stores its own data there and Outlook does not interpret it.
Why Does an MSG File Look Like Nonsense in a Text Editor?
Because an MSG file is binary data and not text. Microsoft's compound file specification requires the same 8 byte signature at the start of every compound file. In hexadecimal it reads D0 CF 11 E0 A1 B1 1A E1 and the first four bytes look like the word DOCFILE to a human eye.
Microsoft states that other Office binary file types are based on the same specification. An MSG file and an older Word document therefore open with the same bytes. The signature names the container and the extension names the content. The wider topic is explained in File Signatures Explained.
Which Software Creates and Opens MSG Files?
- Classic Outlook for Windows. Open the message, select File and then Save As. Microsoft's page on saving a message states that a message can be saved as an .eml or an .msg file. Under File, Options, Mail the setting Use Unicode Format saves messages in a Unicode encoding by default. Microsoft Q&A answers also state that dragging a message from classic Outlook into a File Explorer folder creates an MSG file.
- New Outlook for Windows. Microsoft's what's new page lists Save as and then Save as MSG on the right click menu of a message, under May 2025. That page does not say whether the new Outlook opens MSG files. A separate Microsoft support page states that it does when you drag the file onto the reading pane or use Open with in File Explorer. The same page states that opening MSG and OFT files needs a qualifying Microsoft 365 subscription. Microsoft Q&A answers state that dragging a message out of the new Outlook saves an EML file and not an MSG file. Microsoft Q&A threads from 2024 and 2025 describe size errors and failed opens. The Microsoft pages checked give no size figure. Check the current release notes before you rely on it.
- Other software. The format is documented. Software other than Outlook can therefore open it. OnlinePCApps has an MSG viewer that works in the browser.
Is an MSG File a Good Way to Store Email?
It is a good way to store a few single messages and a poor way to store a mailbox. Microsoft's specification states the format is meant for sharing a single item between clients or message stores that use the file system. It names two poor fits.
- A large standalone archive. Microsoft advises a fuller format that can show views of the mail more efficiently.
- A file sent to someone you do not know. The recipient may not be able to open the format and the file may carry private or irrelevant information along with the message.
The Library of Congress lists MSG as an acceptable format for individual email messages. It also states that the format is fully documented, needs no outside software to interpret and has no technical protection. The Library of Congress states that an EML file follows the RFC 5322 standard and works with most email clients. An MSG file stores the full Outlook item instead, with every property. For an entire mailbox, a PST file is the better container and What Is a PST File explains it. A side by side look at both file types is in EML vs MSG.
Facts checked against Microsoft Learn, Microsoft Support and Library of Congress pages on 3 and 4 December 2026. The file structure comes from Microsoft's documentation and was not tested on a real MSG file.
Questions People Ask About MSG Files
6 questions, answered in full below.What type of file is an MSG file?
A binary file that stores one Outlook item. Its extension is .msg and its MIME type is application/vnd.ms-outlook, which the Library of Congress notes is not registered with IANA.
Can an MSG file hold more than one email?
No. One file holds one Outlook item. It can still contain another message as an attachment, because an attached email is stored as a full message inside the file.
Does an MSG file include attachments?
Yes. Every attachment sits in its own storage inside the file. The attachments therefore travel with the message.
Can an MSG file hold a calendar event or a contact?
Yes. Microsoft states that the format represents messages, appointments, contacts, tasks and other Outlook items.
Is MSG an open format?
Microsoft publishes the full specification as MS-OXMSG, with revision 18.0 dated May 2025. The Library of Congress still describes the format as proprietary.
What is the difference between an MSG file and a PST file?
An MSG file holds one item and a PST file holds an entire mailbox of items in folders. What Is a PST File explains the larger container.
Sources
Where the figures and behavior described above were checked.
- MS-OXMSG: Outlook Item (.msg) File Format Microsoft Learn
- MS-OXMSG 1.5 Applicability Statement Microsoft Learn
- .MSG File Format, Part 1 Microsoft Open Specifications blog
- MS-CFB 2.2 Compound File Header Microsoft Learn
- Determining Office Binary File Format Types Microsoft Open Specifications blog
- Microsoft Outlook Item (MSG) Library of Congress
- Microsoft Compound File Binary File Format, Version 4 Library of Congress
- Save a message as a file Microsoft Support
- Save an Outlook message as a .eml file, a PDF file, or as a draft Microsoft Support
- What's new in new Outlook for Windows Microsoft Support
- Open .eml, .msg, and .oft files in new Outlook and Outlook on the web Microsoft Support
- Electronic Mail Format (EML) Library of Congress
- How can I drag and drop a .msg from the New Outlook Microsoft Q and A
- Emails dragging issue Microsoft Q and A
- New Outlook for Windows cannot open large msg files Microsoft Q and A